Difference between revisions of "Template:Otherlang"
From Tycoon Gaming
Notlawjosh (talk | contribs) m (Bulgarian language support) |
|||
(31 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
+ | |||
This template adds available translations for the page to the top through the use of flags. | This template adds available translations for the page to the top through the use of flags. | ||
To prevent issues, this template must be placed '''at the very beginning of a page'''. | To prevent issues, this template must be placed '''at the very beginning of a page'''. | ||
− | |||
− | |||
== Syntax == | == Syntax == | ||
<pre> | <pre> | ||
− | + | {{otherlang | |
− | + | | noborder=true (OPTIONAL) | |
− | + | | lang=page:lang | |
− | + | | lang2=page:lang2 | |
− | + | | etc... | |
− | + | }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− | + | '''Warning: Do not include the language of the current page. This will only confuse readers.''' | |
− | |||
− | |||
− | |||
− | |||
== Available Languages == | == Available Languages == | ||
− | {| class="table | + | {| class="article-table" |
− | + | ! style="width: 48%" | Language | |
− | + | ! style="width: 48%" | Syntax | |
− | ! | + | ! style="width: 4%" | Flag |
|- id="en" | |- id="en" | ||
|English | |English | ||
|en=Page_name | |en=Page_name | ||
− | | | + | |[[File:En.png]] |
+ | |- id="nl" | ||
+ | |Dutch | ||
+ | |nl=NL:Page_name | ||
+ | |[[File:nl.png]] | ||
+ | |- id="fr" | ||
+ | |French | ||
+ | |fr=FR:Page_name | ||
+ | |[[File:Fr.png]] | ||
|- id="de" | |- id="de" | ||
− | |||
− | |||
|German | |German | ||
+ | |de=DE:Page_name | ||
+ | |[[File:De.png]] | ||
+ | |- id="it" | ||
+ | |Italian | ||
+ | |it=IT:Page_name | ||
+ | |[[File:It.png]] | ||
|- id="pl" | |- id="pl" | ||
− | |||
− | |||
|Polish | |Polish | ||
+ | |pl=PL:Page_name | ||
+ | |[[File:Pl.png]] | ||
|- id="es" | |- id="es" | ||
− | |||
− | |||
|Spanish | |Spanish | ||
− | |- id=" | + | |es=ES:Page_name |
− | | | + | |[[File:Es.png]] |
− | | | + | |- id="ro" |
− | | | + | |Romanian |
+ | |ro=RO:Page_name | ||
+ | |[[File:Ro.png]] | ||
+ | |- id="pt" | ||
+ | |Portuguese | ||
+ | |pt=PT:Page_name | ||
+ | |[[File:Pt.png]] | ||
+ | |- id="pt-br" | ||
+ | |Brazilian Portuguese | ||
+ | |pt-br=PT-BR:Page_name | ||
+ | |[[File:Pt-br.png]] | ||
+ | |- id="tr" | ||
+ | |Turkish | ||
+ | |tr=TR:Page_name | ||
+ | |[[File:Tr.png]] | ||
+ | |- id="ar" | ||
+ | |Arabic | ||
+ | |ar=AR:Page_name | ||
+ | |[[File:Ar.png]] | ||
+ | |- id="dk" | ||
+ | |Danish | ||
+ | |dk=DK:Page_name | ||
+ | |[[File:Dk.png]] | ||
+ | |- id="cs" | ||
+ | |Czech | ||
+ | |cs=CS:Page_name | ||
+ | |[[File:Cs.png]] | ||
+ | |- id="ru" | ||
+ | |Russian | ||
+ | |ru=RU:Page_name | ||
+ | |[[File:Ru.png]] | ||
+ | |- id="hu" | ||
+ | |Hungarian | ||
+ | |hu=HU:Page_name | ||
+ | |[[File:Hu.png]] | ||
+ | |- id="sk" | ||
+ | |Slovak | ||
+ | |sk=SK:Page_name | ||
+ | |[[File:Sk.png]] | ||
+ | |- id="zh-cn" | ||
+ | |Chinese (Simplified) | ||
+ | |zh-cn=ZH-CN:Page_name | ||
+ | |[[File:Zh-cn.png]] | ||
+ | |- id="ee" | ||
+ | |Estonian | ||
+ | |ee=EE:Page_name | ||
+ | |[[File:Ee.png]] | ||
+ | |- id="id" | ||
+ | |Indonesian | ||
+ | |id=ID:Page_name | ||
+ | |[[File:Id.png]] | ||
+ | |- id="lv" | ||
+ | |Latvian | ||
+ | |lv=LV:Page_name | ||
+ | |[[File:Lv.png]] | ||
+ | |- id="hi" | ||
+ | |Hindi | ||
+ | |hi=HI:Page_name | ||
+ | |[[File:Hi.png]] | ||
+ | |- id="bg" | ||
+ | |Bulgarian | ||
+ | |bg=BG:Page_name | ||
+ | |[[File:Bg.png]] | ||
|} | |} | ||
− | </noinclude> | + | |
− | {{#if:{{{en|}}}|'''[[English|{{{en}}}]'''}}{{#if:{{{de|}}}| | + | |
+ | </noinclude>{{ | ||
+ | #if: {{{title|}}} | {{DISPLAYTITLE:{{{title}}}}} }}<div style="position:relative;top:-32px;margin-bottom: -40px;float:right;text-align:right;padding:2px;line-height:11px;background:#262626;{{#if: {{{noborder|}}} | margin-top:5px;border:0; | border:1px solid #65635F;border-bottom:0;}}">{{ | ||
+ | #if: {{{en|}}} | '''[[File:En.png|alt=English|link={{{en}}}]]''' }} {{ | ||
+ | #if: {{{de|}}} | [[File:De.png|alt=Deutsch|link={{{de}}}]] }} {{ | ||
+ | #if: {{{es|}}} | [[File:Es.png|alt=Español|link={{{es}}}]] }} {{ | ||
+ | #if: {{{fr|}}} | [[File:Fr.png|alt=Français|link={{{fr}}}]] }} {{ | ||
+ | #if: {{{it|}}} | [[File:It.png|alt=Italiano|link={{{it}}}]] }} {{ | ||
+ | #if: {{{nl|}}} | [[File:Nl.png|alt=Nederlands|link={{{nl}}}]] }} {{ | ||
+ | #if: {{{pl|}}} | [[File:Pl.png|alt=Polski|link={{{pl}}}]] }} {{ | ||
+ | #if: {{{ro|}}} | [[File:Ro.png|alt=Romanian|link={{{ro}}}]] }} {{ | ||
+ | #if: {{{pt|}}} | [[File:Pt.png|alt=Portuguese|link={{{pt}}}]] }} {{ | ||
+ | #if: {{{pt-br|}}} | [[File:Pt-br.png|alt=Portuguese|link={{{pt-br}}}]] }} {{ | ||
+ | #if: {{{tr|}}} | [[File:Tr.png|alt=Turkish|link={{{tr}}}]] }} {{ | ||
+ | #if: {{{ar|}}} | [[File:Ar.png|alt=Arabic|link={{{ar}}}]] }} {{ | ||
+ | #if: {{{dk|}}} | [[File:Dk.png|alt=Danish|link={{{dk}}}]] }} {{ | ||
+ | #if: {{{cs|}}} | [[File:Cs.png|alt=Czech|link={{{cs}}}]] }} {{ | ||
+ | #if: {{{ru|}}} | [[File:Ru.png|alt=Russian|link={{{ru}}}]] }} {{ | ||
+ | #if: {{{hu|}}} | [[File:Hu.png|alt=Hungarian|link={{{hu}}}]] }} {{ | ||
+ | #if: {{{sk|}}} | [[File:Sk.png|alt=Slovak|link={{{sk}}}]] }} {{ | ||
+ | #if: {{{zh-cn|}}} | [[File:Zh-cn.png|alt=Chinese (Simplified)|link={{{zh-cn}}}]] }} {{ | ||
+ | #if: {{{ee|}}} | [[File:Ee.png|alt=Estonian|link={{{ee}}}]] }} {{ | ||
+ | #if: {{{id|}}} | [[File:Id.png|alt=Indonesian|link={{{id}}}]] }} {{ | ||
+ | #if: {{{lv|}}} | [[File:Lv.png|alt=Latvian|link={{{lv}}}]] }} {{ | ||
+ | #if: {{{hi|}}} | [[File:Hi.png|alt=Hindi|link={{{hi}}}]] }} {{ | ||
+ | #if: {{{bg|}}} | [[File:Bg.png|alt=Bulgarian|link={{{bg}}}]] }}</div> |
Revision as of 20:06, 13 October 2021
This template adds available translations for the page to the top through the use of flags.
To prevent issues, this template must be placed at the very beginning of a page.
Syntax
{{otherlang | noborder=true (OPTIONAL) | lang=page:lang | lang2=page:lang2 | etc... }}
Warning: Do not include the language of the current page. This will only confuse readers.
Available Languages