Difference between revisions of "Template:If localize"
Jump to navigation
Jump to search
Mediawiki>The Anonymouse (appears to be fixed) |
Joelmartin (talk | contribs) m (1 revision imported) |
(No difference)
|
Latest revision as of 02:17, 1 December 2019
This template will check if the current page is a localize (non english-base) page, by cheking if the sub page is a valid language code or not.
Example
{{if localize|x|y}}
will return "x" if the page is a localize page, else return "y". When transcluded in,
- "Page" yield "y"
- "Page name/sub" yield "y"
- "Page name/en" yield "x"
- "Page name/fr" yield "x"
- "Page name/ja" yield "x"
- "Page name/th" yield "x"