Difference between revisions of "Template:Otherlang"
From Tycoon Gaming
m |
m |
||
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="standard-table" |
! Language | ! Language | ||
! Syntax | ! Syntax | ||
Line 43: | Line 25: | ||
|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 |
|de=de:Page_name | |de=de:Page_name | ||
− | | | + | |[[File:De.png]] |
+ | |- id="it" | ||
+ | |Italian | ||
+ | |it=it:Page_name | ||
+ | |[[File:It.png]] | ||
|- id="pl" | |- id="pl" | ||
− | |||
− | |||
|Polish | |Polish | ||
+ | |pl=Page_name:pl | ||
+ | |[[File:Pl.png]] | ||
|- id="es" | |- id="es" | ||
− | | | + | |Spanish |
|es=es:Page_name | |es=es:Page_name | ||
− | | | + | |[[File:Es.png]] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | </noinclude> | + | |
− | + | </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}}}]] }}</div> |
Revision as of 23:27, 11 April 2020
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
Language | Syntax | Result |
---|---|---|
English | en=Page_name | |
Dutch | nl=nl:Page_name | |
French | fr=fr:Page_name | |
German | de=de:Page_name | |
Italian | it=it:Page_name | |
Polish | pl=Page_name:pl | |
Spanish | es=es:Page_name |