Template:Languages/Sandbox: Difference between revisions
Jump to navigation
Jump to search
(added inlcudeonly tags. removed unnecessary category) |
(Try displaytitle in archive namespace) |
||
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 | Archive | = {{DISPLAYTITLE: {{Translation| {{#titleparts: {{FULLPAGENAME}} | -1 }} }} }} }}<!-- | ||
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]]}}}}<!-- |