Template:If language suffix: Difference between revisions

From Space Exploration
Jump to navigation Jump to search
imported>Ahopefulhobbit
mNo edit summary
imported>Ahopefulhobbit
mNo edit summary
 
Line 3: Line 3:
}}<noinclude>
}}<noinclude>
{{documentation}}
{{documentation}}
[[Category:Localisation templates]]<!--This template is adapted from the Factorio Wiki [https://wiki.factorio.com/Template:If_language_suffix]-->
[[Category:Localisation templates]]<!--This template is adapted from the Factorio Wiki [https://wiki.factorio.com/Template:If_language_suffix] and is licensed under CC BY-NC-SA 3.0.-->


</noinclude>
</noinclude>

Latest revision as of 16:51, 14 December 2021

[View] [Edit] [Page history]

Documentation

This template is adapted from the Factorio Wiki and is licensed under CC BY-NC-SA 3.0.

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".
List of all templates