User:DR/common.js: Difference between revisions
From Test Wiki
Content deleted Content added
ce Tag: Reverted |
ce Tag: Reverted |
||
| Line 109: | Line 109: | ||
if (missing) { |
if (missing) { |
||
statusText += " |
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 += ", |
statusText += ", account" + userf + " created <a href='" + mw.config.get("wgScriptPath") + |
||
"/index.php?title=Special:Log&type=newusers&dir=prev&limit=1&user=" + |
"/index.php?title=Special:Log&type=newusers&dir=prev&limit=1&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 = " |
statusText = "An" + userf + " " + statusText; |
||
} else { |
} else { |
||
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 |
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. |
||