Difference between revisions of "Template:Otherlang"

From Tycoon Gaming
m
m
Line 126: Line 126:
 
|[[File:Kr.png]]
 
|[[File:Kr.png]]
 
|}
 
|}
<!--{{
+
<!-- Waiting for Variables Extension-->
#vardefine: en | {{#if: {{{en|}}} | {{{en}}} | {{PAGENAME}} }}
 
}} Waiting for Variables Extension-->
 
  
 
</noinclude>
 
</noinclude>
 
{{
 
{{
 
#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; }}">{{
 
#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}}}]] }} }} {{
+
#vardefine: realBasePageName | {{#if: {{{en|}}} | {{{en}}} | {{PAGENAME}} }}
#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: {{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|{{{realBasePageName}}}| | [[File:En.png|alt=English|link={{{realBasePageName}}}]] }} }} {{
#ifexist: FR:{{{en}}} | {{#ifeq: {{PAGENAME}}|FR:{{{en }}}| | [[File:Fr.png|alt=French|link=FR:{{{en}}}]] }} }} {{
+
#ifexist: DE:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|DE:{{{realBasePageName}}}| | [[File:De.png|alt=German|link=DE:{{{realBasePageName}}}]] }} }} {{
#ifexist: IT:{{{en}}} | {{#ifeq: {{PAGENAME}}|IT:{{{en }}}| | [[File:It.png|alt=Italian|link=IT:{{{en}}}]] }} }} {{
+
#ifexist: ES:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|ES:{{{en }}}| | [[File:Es.png|alt=Spanish|link=ES:{{{realBasePageName}}}]] }} }} {{
#ifexist: NL:{{{en}}} | {{#ifeq: {{PAGENAME}}|NL:{{{en }}}| | [[File:Nl.png|alt=Dutch|link=NL:{{{en}}}]] }} }} {{
+
#ifexist: FR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|FR:{{{en }}}| | [[File:Fr.png|alt=French|link=FR:{{{realBasePageName}}}]] }} }} {{
#ifexist: PL:{{{en}}} | {{#ifeq: {{PAGENAME}}|PL:{{{en }}}| | [[File:Pl.png|alt=Polish|link=PL:{{{en}}}]] }} }} {{
+
#ifexist: IT:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|IT:{{{en }}}| | [[File:It.png|alt=Italian|link=IT:{{{realBasePageName}}}]] }} }} {{
#ifexist: RO:{{{en}}} | {{#ifeq: {{PAGENAME}}|RO:{{{en }}}| | [[File:Ro.png|alt=Romanian|link=RO:{{{en}}}]] }} }} {{
+
#ifexist: NL:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|NL:{{{en }}}| | [[File:Nl.png|alt=Dutch|link=NL:{{{realBasePageName}}}]] }} }} {{
#ifexist: PT:{{{en}}} | {{#ifeq: {{PAGENAME}}|PT:{{{en }}}| | [[File:Pt.png|alt=Portuguese|link=PT:{{{en}}}]] }} }} {{
+
#ifexist: PL:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|PL:{{{en }}}| | [[File:Pl.png|alt=Polish|link=PL:{{{realBasePageName}}}]] }} }} {{
#ifexist: PT-BR:{{{en}}} | {{#ifeq: {{PAGENAME}}|PT_BR:{{{en }}}| | [[File:Pt-br.png|alt=Brazilian Portuguese|link=PT-BR:{{{en}}}]] }} }} {{
+
#ifexist: RO:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|RO:{{{en }}}| | [[File:Ro.png|alt=Romanian|link=RO:{{{realBasePageName}}}]] }} }} {{
#ifexist: TR:{{{en}}} | {{#ifeq: {{PAGENAME}}|TR:{{{en}}}| | [[File:Tr.png|alt=Turkish|link=TR:{{{en}}}]] }} }} {{
+
#ifexist: PT:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|PT:{{{en }}}| | [[File:Pt.png|alt=Portuguese|link=PT:{{{realBasePageName}}}]] }} }} {{
#ifexist: AR:{{{en}}} | {{#ifeq: {{PAGENAME}}|AR:{{{en}}}| | [[File:Ar.png|alt=Arabic|link=AR:{{{en}}}]] }} }} {{
+
#ifexist: PT-BR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|PT_BR:{{{en }}}| | [[File:Pt-br.png|alt=Brazilian Portuguese|link=PT-BR:{{{realBasePageName}}}]] }} }} {{
#ifexist: DK:{{{en}}} | {{#ifeq: {{PAGENAME}}|DK:{{{en}}}| | [[File:Dk.png|alt=Danish|link=DK:{{{en}}}]] }} }} {{
+
#ifexist: TR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|TR:{{{realBasePageName}}}| | [[File:Tr.png|alt=Turkish|link=TR:{{{realBasePageName}}}]] }} }} {{
#ifexist: CS:{{{en}}} | {{#ifeq: {{PAGENAME}}|CS:{{{en}}}| | [[File:Cs.png|alt=Czech|link=CS:{{{en}}}]] }} }} {{
+
#ifexist: AR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|AR:{{{realBasePageName}}}| | [[File:Ar.png|alt=Arabic|link=AR:{{{realBasePageName}}}]] }} }} {{
#ifexist: RU:{{{en}}} | {{#ifeq: {{PAGENAME}}|RU:{{{en}}}| | [[File:Ru.png|alt=Russian|link=RU:{{{en}}}]] }} }} {{
+
#ifexist: DK:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|DK:{{{realBasePageName}}}| | [[File:Dk.png|alt=Danish|link=DK:{{{realBasePageName}}}]] }} }} {{
#ifexist: HU:{{{en}}} | {{#ifeq: {{PAGENAME}}|HU:{{{en}}}| | [[File:Hu.png|alt=Hungarian|link=HU:{{{en}}}]] }} }} {{
+
#ifexist: CS:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|CS:{{{realBasePageName}}}| | [[File:Cs.png|alt=Czech|link=CS:{{{realBasePageName}}}]] }} }} {{
#ifexist: SK:{{{en}}} | {{#ifeq: {{PAGENAME}}|SK:{{{en}}}| | [[File:Sk.png|alt=Slovak|link=SK:{{{en}}}]] }} }} {{
+
#ifexist: RU:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|RU:{{{realBasePageName}}}| | [[File:Ru.png|alt=Russian|link=RU:{{{realBasePageName}}}]] }} }} {{
#ifexist: ZH-CN:{{{en}}} | {{#ifeq: {{PAGENAME}}|ZH-CN:{{{en}}}| | [[File:Zh-cn.png|alt=Chinese (Simplified)|link=ZH-CN:{{{en}}}]] }} }} {{
+
#ifexist: HU:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|HU:{{{realBasePageName}}}| | [[File:Hu.png|alt=Hungarian|link=HU:{{{realBasePageName}}}]] }} }} {{
#ifexist: EE:{{{en}}} | {{#ifeq: {{PAGENAME}}|EE:{{{en}}}| | [[File:Ee.png|alt=Estonian|link=EE:{{{en}}}]] }} }} {{
+
#ifexist: SK:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|SK:{{{realBasePageName}}}| | [[File:Sk.png|alt=Slovak|link=SK:{{{realBasePageName}}}]] }} }} {{
#ifexist: ID:{{{en}}} | {{#ifeq: {{PAGENAME}}|ID:{{{en}}}| | [[File:Id.png|alt=Indonesian|link=ID:{{{en}}}]] }} }} {{
+
#ifexist: ZH-CN:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|ZH-CN:{{{realBasePageName}}}| | [[File:Zh-cn.png|alt=Chinese (Simplified)|link=ZH-CN:{{{realBasePageName}}}]] }} }} {{
#ifexist: LV:{{{en}}} | {{#ifeq: {{PAGENAME}}|LV:{{{en}}}| | [[File:Lv.png|alt=Latvian|link=LV:{{{en}}}]] }} }} {{
+
#ifexist: EE:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|EE:{{{realBasePageName}}}| | [[File:Ee.png|alt=Estonian|link=EE:{{{realBasePageName}}}]] }} }} {{
#ifexist: HI:{{{en}}} | {{#ifeq: {{PAGENAME}}|HI:{{{en}}}| | [[File:Hi.png|alt=Hindi|link=HI:{{{en}}}]] }} }} {{
+
#ifexist: ID:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|ID:{{{realBasePageName}}}| | [[File:Id.png|alt=Indonesian|link=ID:{{{realBasePageName}}}]] }} }} {{
#ifexist: BG:{{{en}}} | {{#ifeq: {{PAGENAME}}|BG:{{{en}}}| | [[File:Bg.png|alt=Bulgarian|link=BG:{{{en}}}]] }} }} {{
+
#ifexist: LV:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|LV:{{{realBasePageName}}}| | [[File:Lv.png|alt=Latvian|link=LV:{{{realBasePageName}}}]] }} }} {{
#ifexist: CY:{{{en}}} | {{#ifeq: {{PAGENAME}}|CY:{{{en}}}| | [[File:Cy.png|alt=Welsh|link=CY:{{{en}}}]] }} }} {{
+
#ifexist: HI:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|HI:{{{realBasePageName}}}| | [[File:Hi.png|alt=Hindi|link=HI:{{{realBasePageName}}}]] }} }} {{
#ifexist: JA:{{{en}}} | {{#ifeq: {{PAGENAME}}|JA:{{{en}}}| | [[File:Ja.png|alt=Japanese|link=JA:{{{en}}}]] }} }} {{
+
#ifexist: BG:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|BG:{{{realBasePageName}}}| | [[File:Bg.png|alt=Bulgarian|link=BG:{{{realBasePageName}}}]] }} }} {{
#ifexist: KR:{{{en}}} | {{#ifeq: {{PAGENAME}}|HR:{{{en}}}| | [[File:Kr.png|alt=Korean|link=KR:{{{en}}}]] }} }}</div><!--
+
#ifexist: CY:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|CY:{{{realBasePageName}}}| | [[File:Cy.png|alt=Welsh|link=CY:{{{realBasePageName}}}]] }} }} {{
 +
#ifexist: JA:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|JA:{{{realBasePageName}}}| | [[File:Ja.png|alt=Japanese|link=JA:{{{realBasePageName}}}]] }} }} {{
 +
#ifexist: KR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|HR:{{{realBasePageName}}}| | [[File:Kr.png|alt=Korean|link=KR:{{{realBasePageName}}}]] }} }}</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
 
#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;}}">{{
 
#65635F;border-bottom:0;}}">{{
#if: {{{en|}}} | '''[[File:En.png|alt=English|link={{{en}}}]]''' }} {{
+
#if: {{{en|}}} | '''[[File:En.png|alt=English|link={{{realBasePageName}}}]]''' }} {{
 
#if: {{{de|}}} | [[File:De.png|alt=Deutsch|link={{{de}}}]] }} {{
 
#if: {{{de|}}} | [[File:De.png|alt=Deutsch|link={{{de}}}]] }} {{
 
#if: {{{es|}}} | [[File:Es.png|alt=Español|link={{{es}}}]] }} {{
 
#if: {{{es|}}} | [[File:Es.png|alt=Español|link={{{es}}}]] }} {{

Revision as of 18:48, 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

Language Syntax Flag
English en=Page_name En.png
Dutch nl=NL:Page_name Nl.png
French fr=FR:Page_name Fr.png
German de=DE:Page_name De.png
Italian it=IT:Page_name It.png
Polish pl=PL:Page_name Pl.png
Spanish es=ES:Page_name Es.png
Romanian ro=RO:Page_name Ro.png
Portuguese pt=PT:Page_name Pt.png
Brazilian Portuguese pt-br=PT-BR:Page_name Pt-br.png
Turkish tr=TR:Page_name Tr.png
Arabic ar=AR:Page_name Ar.png
Danish dk=DK:Page_name Dk.png
Czech cs=CS:Page_name Cs.png
Russian ru=RU:Page_name Ru.png
Hungarian hu=HU:Page_name Hu.png
Slovak sk=SK:Page_name Sk.png
Chinese (Simplified) zh-cn=ZH-CN:Page_name Zh-cn.png
Estonian ee=EE:Page_name Ee.png
Indonesian id=ID:Page_name Id.png
Latvian lv=LV:Page_name Lv.png
Hindi hi=HI:Page_name Hi.png
Bulgarian bg=BG:Page_name Bg.png
Welsh cy=CY:Page_name Cy.png
Japanese ja=JA:Page_name Ja.png
Korean kr=KR:Page_name Kr.png