Template:Languages/Sandbox: Difference between revisions
Jump to navigation
Jump to search
(Try displaytitle in archive namespace) |
(prettify) |
||
(One intermediate revision by the same user not shown) | |||
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 | -->{{#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]]}}}}<!-- |