User:DR/common.js: Difference between revisions

From Test Wiki
Content deleted Content added
DR (talk | contribs)
ce
Tag: Reverted
DR (talk | contribs)
ce
Tag: Reverted
Line 109: Line 109:


if (missing) {
if (missing) {
statusText += "nom d'utilisateur non enregistré";
statusText += "unregistered username";
} else if (invalid) {
} else if (invalid) {
ipv4User = mw.util.isIPv4Address(user.name);
ipv4User = mw.util.isIPv4Address(user.name);
Line 207: Line 207:
var firstLoggedUser = new Date("17:42, 22 January 2008"); // When the [[Special:Log/newusers]] was first activated
var firstLoggedUser = new Date("17:42, 22 January 2008"); // When the [[Special:Log/newusers]] was first activated
if(registration >= firstLoggedUser) {
if(registration >= firstLoggedUser) {
statusText += ", registered" + userf + " ago <a href='" + mw.config.get("wgScriptPath") +
statusText += ", account" + userf + " created <a href='" + mw.config.get("wgScriptPath") +
"/index.php?title=Special:Log&amp;type=newusers&amp;dir=prev&amp;limit=1&amp;user=" +
"/index.php?title=Special:Log&amp;type=newusers&amp;dir=prev&amp;limit=1&amp;user=" +
et + "'>" + UserinfoJsFormatDateRel(registration) + "</a>";
et + "'>" + UserinfoJsFormatDateRel(registration) + "</a>";
Line 227: Line 227:
// Déterminant
// Déterminant
if("AEIOaeio".indexOf(statusText.charAt(statusText.indexOf('>')+1)) >= 0) {
if("AEIOaeio".indexOf(statusText.charAt(statusText.indexOf('>')+1)) >= 0) {
statusText = "a" + userf + " " + statusText;
statusText = "An" + userf + " " + statusText;
} else {
} else {
statusText = "an" + userf + " " + statusText;
statusText = "A" + userf + " " + statusText;
}
}
Line 240: Line 240:
// Ajout d'un lien à la page de contributions --PS 3.07.201
// Ajout d'un lien à la page de contributions --PS 3.07.201
if(lastEdited) {
if(lastEdited) {
statusText += " Last modification ago <a href=\"" + mw.config.get("wgArticlePath").replace("$1", "Spécial:Contributions/" + encodeURIComponent(user.name)) + "\">" + UserinfoJsFormatDateRel(lastEdited) + "</a>";
statusText += " Last edited <a href=\"" + mw.config.get("wgArticlePath").replace("$1", "Spécial:Contributions/" + encodeURIComponent(user.name)) + "\">" + UserinfoJsFormatDateRel(lastEdited) + "</a>";
};
};
// Ajouter le symbole de genre correct.
// Ajouter le symbole de genre correct.