Template:LangSuffix: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{#if:{{{1|{{#titleparts:{{PAGENAME}}|1|2}}}}}|/{{{1|{{#titleparts:{{PAGENAME}}|1|2}}}}}|{{{1|{{#titleparts:{{PAGENAME}}|1|2}}}}}}}<noinclude>A shortcut to determine if its a translation subpage. Add a slash if so. [[Category:Utility templates]]</noinclude>
{{#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]]

Revision as of 22:24, 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.