Difference between revisions of "Template:If lang"
m |
(simplify) |
||
Line 1: | Line 1: | ||
− | + | {{#ifeq:{{SUBPAGENAME}}|{{BASEPAGENAME}}|{{{1}}}|{{{2|}}}|}}<noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}<noinclude> | ||
* Provides an output if the page in question is a language subpage. | * Provides an output if the page in question is a language subpage. | ||
− | * | + | * How it works: if the subpagename is equal to the basepagename (which is the case in English pages) then {{tl|if lang}} will output the contents of {{{1}}}. |
− | * | + | ** If this fails to match, {{tl|if lang}} it will output {{{2}}}. |
+ | |||
[[Category:Language templates|If lang]] | [[Category:Language templates|If lang]] | ||
</noinclude> | </noinclude> |