Template:Languages/Sandbox: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Updated to current version of the template Special:Diff/190972)
(prettify)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- 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 }} }} }} }}<!--
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]]}}}}<!--
Line 33: Line 35:
{{Language exist|zh-tw}}
{{Language exist|zh-tw}}
</span>
</span>
</div></indicator><noinclude>
</div></indicator></includeonly><noinclude>
{{documentation}}
{{Documentation}}
[[Category:Localisation templates]] [[Category:Main]]
[[Category:Localisation templates]]
</noinclude>
</noinclude>

Latest revision as of 09:50, 26 April 2024