MediaWiki:Gadget-I18n-js.js: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
m
match MW's usage documentation for gender
(support for "gender" parser fn. usage in messages) |
m (match MW's usage documentation for gender) |
||
Line 406: | Line 406: | ||
// {{PLURAL:count|singluar|plural}} -> {{PLURAL:$1|$2}} | // {{PLURAL:count|singluar|plural}} -> {{PLURAL:$1|$2}} | ||
pluralRgx = /\{\{PLURAL:(\d+)\|(.+?)\}\}/gi, | pluralRgx = /\{\{PLURAL:(\d+)\|(.+?)\}\}/gi, | ||
// {{GENDER:gender|masculine|feminine| | // {{GENDER:gender|masculine|feminine|neutral}} -> {{GENDER:$1|$2}} | ||
genderRgx = /\{\{GENDER:([^|]+)\|(.+?)\}\}/gi; | genderRgx = /\{\{GENDER:([^|]+)\|(.+?)\}\}/gi; | ||