Template:No language suffix: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(Added Chinese Traditional language support)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch:{{Language suffix}}
{{#switch:{{Language suffix}}
| cs | de | es | fr | it | nl | pl | pt-br | ru | sv | uk | zh | infobox = {{#titleparts: {{#replace:{{FULLPAGENAME}}|(research)|}} | -1 }}
| cs | da | de | es | fr | hu | it | ja | ko | ms | nl | pl | pt-br | pt-pt | ru | sv | tr | uk | vi | zh | zh-tw = {{#titleparts: {{FULLPAGENAME}} | -1 }}
| #default = {{#replace:{{FULLPAGENAME}}|(research)|}}
| #default = {{FULLPAGENAME}}
}}
}}<noinclude>
{{documentation}}
[[Category:Localisation templates]]
</noinclude>

Latest revision as of 16:38, 7 March 2023

Template:No language suffix

[View] [Edit] [Page history]

Documentation

Strips the language suffix from the link, if there is one.

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

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

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