Template:Languages/Sandbox: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (translate archived page title)
(prettify)
 
Line 1: Line 1:
<includeonly><!-- Translating the title of the page using the DISPLAYTITLE magic word -->
<includeonly><!-- Translating the title of the page using the DISPLAYTITLE magic word
{{#switch: {{NAMESPACE}} | Tutorial | = {{DISPLAYTITLE: {{Translation| {{#titleparts: {{FULLPAGENAME}} | -1 }} }} }} }}<!--
-->{{#switch: {{NAMESPACE}} | Tutorial | = {{DISPLAYTITLE: {{Translation| {{#titleparts: {{FULLPAGENAME}} | -1 }} }} }} }}<!--
-->{{#ifeq: {{NAMESPACE}} | Archive | {{DISPLAYTITLE: {{Translation| {{No language suffix/No namespace}} }} }} }}  
For archived pages, translate the title without the namespace part
-->{{#ifeq: {{NAMESPACE}} | Archive | {{DISPLAYTITLE: {{Translation| {{No language suffix/No namespace}} }} }} }}<!--
Add page to that language's category if the page actually exists, and only if the page is not a category itself
Add page to that language's category if the page actually exists, and only if the page is not a category itself
-->{{#ifexist: {{FULLPAGENAME}} | {{#ifeq: {{NAMESPACE}}|Category||[[Category:{{Get language name}} page]]}}}}<!--
-->{{#ifexist: {{FULLPAGENAME}} | {{#ifeq: {{NAMESPACE}}|Category||[[Category:{{Get language name}} page]]}}}}<!--

Latest revision as of 09:50, 26 April 2024