Template:No language suffix/No namespace: Difference between revisions

From Space Exploration
Jump to navigation Jump to search
imported>Ahopefulhobbit
trying to get infoboxes working
 
imported>Ahopefulhobbit
mNo edit summary
Line 1: Line 1:
<!--This template is adapted from the Factorio Wiki [https://wiki.factorio.com/Template:No_language_suffix]-->
{{#switch: {{#titleparts: {{PAGENAME}} | | -1 }}
{{#switch: {{#titleparts: {{PAGENAME}} | | -1 }}
| cs | da | de | es | fr | hu | it | ja | ko | ms | nl | pl | pt-br | pt-pt | ru | sv | tr | uk | vi | zh = {{#titleparts: {{PAGENAME}} | -1 }}
| cs | da | de | es | fr | hu | it | ja | ko | ms | nl | pl | pt-br | pt-pt | ru | sv | tr | uk | vi | zh = {{#titleparts: {{PAGENAME}} | -1 }}

Revision as of 02:40, 7 December 2021

No language suffix/No namespace

[View] [Edit] [Page history]

Documentation

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

Strips both namespace and language suffix from the page name.

For use in templates.

Example 1: Page the template is on: "Infobox:Accumulator" -> {{No language suffix/No namespace}} gives "Accumulator".

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

Example 3: Page the template is on: "Infobox:Accumulator/de" -> {{No language suffix/No namespace}} gives "Accumulator".
List of all templates