MediaWiki:Gadget-I18n-js.js: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
m
spelling
m (match MW's usage documentation for gender) |
m (spelling) |
||
Line 404: | Line 404: | ||
// [[pagename|text]] -> [[$1|$2]] | // [[pagename|text]] -> [[$1|$2]] | ||
pageWithTextRgx = /\[\[(.+?)\|(.+?)\]\]/g, | pageWithTextRgx = /\[\[(.+?)\|(.+?)\]\]/g, | ||
// {{PLURAL:count| | // {{PLURAL:count|singular|plural}} -> {{PLURAL:$1|$2}} | ||
pluralRgx = /\{\{PLURAL:(\d+)\|(.+?)\}\}/gi, | pluralRgx = /\{\{PLURAL:(\d+)\|(.+?)\}\}/gi, | ||
// {{GENDER:gender|masculine|feminine|neutral}} -> {{GENDER:$1|$2}} | // {{GENDER:gender|masculine|feminine|neutral}} -> {{GENDER:$1|$2}} |