Template:Languages/Sandbox: Difference between revisions
Jump to navigation
Jump to search
(Try displaytitle in archive namespace) |
m (translate archived page title) |
||
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 }} }} }} }}<!-- | ||
-->{{#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]]}}}}<!-- |