Template:Languages: Difference between revisions
Jump to navigation
Jump to search
m (irrelevant whitespace change) |
(Displaytitle translation without namespace in Archive namespace) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- Translating the title of the page using the DISPLAYTITLE magic word --> | <!-- Translating the title of the page using the DISPLAYTITLE magic word | ||
{{# | -->{{#switch: {{NAMESPACE}} | Tutorial | = {{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 | 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 | |||
-->{{#ifexist: {{FULLPAGENAME}} | {{#ifeq: {{NAMESPACE}}|Category||[[Category:{{Get language name}} page]]}}}}<!-- | -->{{#ifexist: {{FULLPAGENAME}} | {{#ifeq: {{NAMESPACE}}|Category||[[Category:{{Get language name}} page]]}}}}<!-- | ||
Automatically show flags of other language's versions of this page | Automatically show flags of other language's versions of this page | ||
Line 31: | Line 33: | ||
{{Language exist|vi}} | {{Language exist|vi}} | ||
{{Language exist|zh}} | {{Language exist|zh}} | ||
{{Language exist|zh-tw}} | |||
</span> | </span> | ||
</div></indicator><noinclude> | </div></indicator><noinclude> |
Latest revision as of 09:54, 26 April 2024
[View] [Edit] [Page history]
DocumentationThis template has a Sandbox for testing new features at Template:Languages/Sandbox.
This template will display a bar with links to international versions of the same page. List of all templates