Template:Lang: Difference between revisions
(fgfdgfdgfdgf) |
(FIX FOR REAL IT'S BIG FINISHED) |
||
Line 1: | Line 1: | ||
<noinclude><div style="position:relative;top:-32px;margin-bottom: -40px;float:right;text-align:right;padding:2px;line-height:11px;background:#262626;">{{#ifexist: Template:Lang:cs | <noinclude><div style="position:relative;top:-32px;margin-bottom: -40px;float:right;text-align:right;padding:2px;line-height:11px;background:#262626;"><!-- | ||
-->{{#ifexist: Template:Lang:cs | [[File:cs.png|alt=Čeština|link=Template:Lang:cs]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:de | [[File:de.png|alt=Deutsch|link=Template:Lang:de]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:es | [[File:es.png|alt=Español|link=Template:Lang:es]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:fr | [[File:fr.png|alt=Français|link=Template:Lang:fr]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:hu | [[File:hu.png|alt=Magyar|link=Template:Lang:hu]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:it | [[File:it.png|alt=Italiano|link=Template:Lang:it]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:nl | [[File:nl.png|alt=Nederlands|link=Template:Lang:nl]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:no | [[File:no.png|alt=Norsk|link=Template:Lang:no]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:pl | [[File:pl.png|alt=Polski|link=Template:Lang:pl]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:pt | [[File:pt.png|alt=Português|link=Template:Lang:pt]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:pt-br | [[File:pt-br.png|alt=Português-Brasileiro|link=Template:Lang:pt-br]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:ru | [[File:ru.png|alt=Русский|link=Template:Lang:ru]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:ua | [[File:ua.png|alt=Українська|link=Template:Lang:ua]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:sv | [[File:sv.png|alt=Svenska|link=Template:Lang:sv]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:tr | [[File:tr.png|alt=Türkçe|link=Template:Lang:tr]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:jp | [[File:jp.png|alt=日本語|link=Template:Lang:jp]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:zh-cn | [[File:zh-cn.png|alt=简体中文|link=Template:Lang:zh-cn]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:zh-tw | [[File:tw.png|alt=简体中文|link=Template:Lang:zh-tw]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:ko | [[File:ko.png|alt=한국어|link=Template:Lang:ko]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:ka | [[File:ka.png|alt=ქართული ენა|link=Template:Lang:ka]] | }}<!-- | |||
-->{{#ifexist: Template:Lang:he | [[File:he.png|alt=עִברִית|link=Template:Lang:he]] | }}</div> | |||
This template is an improved version of [[:Template:Otherlang2]]. It retains all the functionality, adds Hebrew properly, and ''automatically'' detects which languages a page has been translated into (provided those pages follow the wiki's standard page title method). It works on English and non-English pages, with or without namespaces. | This template is an improved version of [[:Template:Otherlang2]]. It retains all the functionality, adds Hebrew properly, and ''automatically'' detects which languages a page has been translated into (provided those pages follow the wiki's standard page title method). It works on English and non-English pages, with or without namespaces. | ||
Revision as of 04:10, 20 August 2018
This template is an improved version of Template:Otherlang2. It retains all the functionality, adds Hebrew properly, and automatically detects which languages a page has been translated into (provided those pages follow the wiki's standard page title method). It works on English and non-English pages, with or without namespaces.
Unlike otherlang2, this template requires an unnamed parameter to be defined to work. The contents of it should be the full name of the page the template is being applied on, including namespaces such as Help:. It should not include any language suffixes, however, such as :ru.
The title
parameter can be used to change the text of the page titlebar (logically, into the text that should be displayed for the language of the page).
The noborder
parameter can be set to 1
to hide the border around icons. If you don't plan on using it, don't bother defining it.
Here's an example for a hypothetical Spanish page called Category:Hello:es:
{{lang |Category:Hello |title=Categoría:Hola |noborder=1 }}
This will add icons for all the versions of this page in different languages. It will also change the displayed title to a Spanish version of the name, and hide the icon borders.
Currently supported languages:
For information on how the template detects other languages, view this page's source code.