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|unspecified}} -> {{GENDER:$1|$2}}
             // {{GENDER:gender|masculine|feminine|neutral}} -> {{GENDER:$1|$2}}
             genderRgx = /\{\{GENDER:([^|]+)\|(.+?)\}\}/gi;
             genderRgx = /\{\{GENDER:([^|]+)\|(.+?)\}\}/gi;


Cookies help us deliver our services. By using our services, you agree to our use of cookies.