Difference between revisions of "Template:Otherlang"
From Tycoon Gaming
m (Added Korean) |
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 all 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'''. | ||
Line 9: | Line 9: | ||
{{otherlang | {{otherlang | ||
| noborder=true (OPTIONAL) | | noborder=true (OPTIONAL) | ||
− | | | + | | en=PageName |
− | | | + | | title=Alternative Title |
− | |||
}} | }} | ||
</pre> | </pre> | ||
− | + | <!-- | |
'''Warning: Do not include the language of the current page. This will only confuse readers.''' | '''Warning: Do not include the language of the current page. This will only confuse readers.''' | ||
− | + | --> | |
== Available Languages == | == Available Languages == | ||
{| class="article-table" | {| class="article-table" | ||
Line 129: | Line 128: | ||
− | </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: {{{title|}}} | {{DISPLAYTITLE:{{{title}}}}} }}<div style="display:flex; flex-direction:row; gap:5px; 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; }}">{{ | ||
+ | #ifexist: {{{en}}} | {{#ifeq: {{PAGENAME}}|{{{en}}}| | [[File:En.png|alt=English|link={{{en}}}]] }} }} {{ | ||
+ | #ifexist: DE:{{{en}}} | {{#ifeq: {{PAGENAME}}|DE:{{{en}}}| | [[File:De.png|alt=German|link=DE:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: ES:{{{en}}} | {{#ifeq: {{PAGENAME}}|ES:{{{en}}}| | [[File:Es.png|alt=Spanish|link=ES:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: FR:{{{en}}} | {{#ifeq: {{PAGENAME}}|FR:{{{en}}}| | [[File:Fr.png|alt=French|link=FR:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: IT:{{{en}}} | {{#ifeq: {{PAGENAME}}|IT:{{{en}}}| | [[File:It.png|alt=Italian|link=IT:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: NL:{{{en}}} | {{#ifeq: {{PAGENAME}}|NL:{{{en}}}| | [[File:Nl.png|alt=Dutch|link=NL:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: PL:{{{en}}} | {{#ifeq: {{PAGENAME}}|PL:{{{en}}}| | [[File:Pl.png|alt=Polish|link=PL:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: RO:{{{en}}} | {{#ifeq: {{PAGENAME}}|RO:{{{en}}}| | [[File:Ro.png|alt=Romanian|link=RO:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: PT:{{{en}}} | {{#ifeq: {{PAGENAME}}|PT:{{{en}}}| | [[File:Pt.png|alt=Portuguese|link=PT:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: PT-BR:{{{en}}} | {{#ifeq: {{PAGENAME}}|PT_BR:{{{en}}}| | [[File:Pt-br.png|alt=Brazilian Portuguese|link=PT-BR:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: TR:{{{en}}} | {{#ifeq: {{PAGENAME}}|TR:{{{en}}}| | [[File:Tr.png|alt=Turkish|link=TR:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: AR:{{{en}}} | {{#ifeq: {{PAGENAME}}|AR:{{{en}}}| | [[File:Ar.png|alt=Arabic|link=AR:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: DK:{{{en}}} | {{#ifeq: {{PAGENAME}}|DK:{{{en}}}| | [[File:Dk.png|alt=Danish|link=DK:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: CS:{{{en}}} | {{#ifeq: {{PAGENAME}}|CS:{{{en}}}| | [[File:Cs.png|alt=Czech|link=CS:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: RU:{{{en}}} | {{#ifeq: {{PAGENAME}}|RU:{{{en}}}| | [[File:Ru.png|alt=Russian|link=RU:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: HU:{{{en}}} | {{#ifeq: {{PAGENAME}}|HU:{{{en}}}| | [[File:Hu.png|alt=Hungarian|link=HU:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: SK:{{{en}}} | {{#ifeq: {{PAGENAME}}|SK:{{{en}}}| | [[File:Sk.png|alt=Slovak|link=SK:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: ZH-CN:{{{en}}} | {{#ifeq: {{PAGENAME}}|ZH-CN:{{{en}}}| | [[File:Zh-cn.png|alt=Chinese (Simplified)|link=ZH-CN:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: EE:{{{en}}} | {{#ifeq: {{PAGENAME}}|EE:{{{en}}}| | [[File:Ee.png|alt=Estonian|link=EE:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: ID:{{{en}}} | {{#ifeq: {{PAGENAME}}|ID:{{{en}}}| | [[File:Id.png|alt=Indonesian|link=ID:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: LV:{{{en}}} | {{#ifeq: {{PAGENAME}}|LV:{{{en}}}| | [[File:Lv.png|alt=Latvian|link=LV:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: HI:{{{en}}} | {{#ifeq: {{PAGENAME}}|HI:{{{en}}}| | [[File:Hi.png|alt=Hindi|link=HI:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: BG:{{{en}}} | {{#ifeq: {{PAGENAME}}|BG:{{{en}}}| | [[File:Bg.png|alt=Bulgarian|link=BG:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: CY:{{{en}}} | {{#ifeq: {{PAGENAME}}|CY:{{{en}}}| | [[File:Cy.png|alt=Welsh|link=CY:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: JA:{{{en}}} | {{#ifeq: {{PAGENAME}}|JA:{{{en}}}| | [[File:Ja.png|alt=Japanese|link=JA:{{{en}}}]] }} }} {{ | ||
+ | #ifexist: KR:{{{en}}} | {{#ifeq: {{PAGENAME}}|HR:{{{en}}}| | [[File:Kr.png|alt=Korean|link=KR:{{{en}}}]] }} }}</div><!-- | ||
+ | {{ | ||
+ | #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: {{{en|}}} | '''[[File:En.png|alt=English|link={{{en}}}]]''' }} {{ | ||
#if: {{{de|}}} | [[File:De.png|alt=Deutsch|link={{{de}}}]] }} {{ | #if: {{{de|}}} | [[File:De.png|alt=Deutsch|link={{{de}}}]] }} {{ | ||
Line 156: | Line 185: | ||
#if: {{{cy|}}} | [[File:Cy.png|alt=Welsh|link={{{cy}}}]] }} {{ | #if: {{{cy|}}} | [[File:Cy.png|alt=Welsh|link={{{cy}}}]] }} {{ | ||
#if: {{{ja|}}} | [[File:Ja.png|alt=Japanese|link={{{ja}}}]] }} {{ | #if: {{{ja|}}} | [[File:Ja.png|alt=Japanese|link={{{ja}}}]] }} {{ | ||
− | #if: {{{kr|}}} | [[File:Kr.png|alt=Korean|link={{{kr}}}]] }}</div> | + | #if: {{{kr|}}} | [[File:Kr.png|alt=Korean|link={{{kr}}}]] }}</div>--> |
Revision as of 03:37, 23 November 2023
This template adds all 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) | en=PageName | title=Alternative Title }}
Available Languages