Template:If language suffix/doc

From Official Factorio Wiki
< Template:If language suffix
Revision as of 15:42, 24 March 2020 by Bilka (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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".