Template:LangSuffix: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "{{#if:{{{1|}}}|/{{{1|}}}|{{{1|}}}}}<noinclude>A shortcut to determine if its a translation subpage. Add a slash if so. Category:Utility templates</noinclude>" |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#if:{{{1|}}}|/{{{1|}}} | {{#if:{{{1|}}}|/{{{1|}}}}}<noinclude> | ||
<nowiki>{{LangSuffix|}}</nowiki> | |||
or | |||
<nowiki>{{LS|}}</nowiki> | |||
If the template argument is not empty, the template returns <code>\argument</code>. If the argument is empty, the template returns nothing. This is used to automatically add the subpage's language code to links leading to language subpages, and do not add anything to pages that are not language subpages. [[Category:Utility templates]] | |||
Latest revision as of 22:25, 28 April 2026
{{LangSuffix|}}
or
{{LS|}}
If the template argument is not empty, the template returns \argument. If the argument is empty, the template returns nothing. This is used to automatically add the subpage's language code to links leading to language subpages, and do not add anything to pages that are not language subpages.


