Template:If language suffix/doc: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "Gets the language suffix from the pagename, with a <code>/</code> in front. Returns an empty string for no language suffix (English pages). See Template:Get language code...")
 
(category)
 
Line 6: Line 6:


Example 3: Page the template is on: "Infobox:Accumulator/de" -> <nowiki>{{Language suffix}}</nowiki> gives "/de".
Example 3: Page the template is on: "Infobox:Accumulator/de" -> <nowiki>{{Language suffix}}</nowiki> gives "/de".
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 12:12, 27 August 2023

Gets the language suffix from the pagename, with a / in front. Returns an empty string for no language suffix (English pages). See Template:Get language code for removing the / in front and getting "en" pages without a language suffix.

Example 1: Page the template is on: "Infobox:Accumulator" -> {{Language suffix}} gives "".

Example 2: Page the template is on: "Accumulator/de" -> {{Language suffix}} gives "/de".

Example 3: Page the template is on: "Infobox:Accumulator/de" -> {{Language suffix}} gives "/de".