Difference between revisions of "Template:Otherlang"
From Tycoon Gaming
m |
m |
||
Line 131: | Line 131: | ||
{{ | {{ | ||
#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; }}">{{ | ||
− | # | + | #vardefine: realBasePageName | {{#if: {{{en|}}} | {{{en}}} | {{PAGENAME}} }} |
− | #ifexist: DE:{{{ | + | }}{{ |
− | #ifexist: ES:{{{ | + | #ifexist: {{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|{{{realBasePageName }}}| | [[File:En.png|alt=English|link={{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: FR:{{{ | + | #ifexist: DE:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|DE:{{{realBasePageName }}}| | [[File:De.png|alt=German|link=DE:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: IT:{{{ | + | #ifexist: ES:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|ES:{{{realBasePageName }}}| | [[File:Es.png|alt=Spanish|link=ES:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: NL:{{{ | + | #ifexist: FR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|FR:{{{realBasePageName }}}| | [[File:Fr.png|alt=French|link=FR:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: PL:{{{ | + | #ifexist: IT:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|IT:{{{realBasePageName }}}| | [[File:It.png|alt=Italian|link=IT:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: RO:{{{ | + | #ifexist: NL:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|NL:{{{realBasePageName }}}| | [[File:Nl.png|alt=Dutch|link=NL:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: PT:{{{ | + | #ifexist: PL:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|PL:{{{realBasePageName }}}| | [[File:Pl.png|alt=Polish|link=PL:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: PT-BR:{{{ | + | #ifexist: RO:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|RO:{{{realBasePageName }}}| | [[File:Ro.png|alt=Romanian|link=RO:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: TR:{{{ | + | #ifexist: PT:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|PT:{{{realBasePageName }}}| | [[File:Pt.png|alt=Portuguese|link=PT:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: AR:{{{ | + | #ifexist: PT-BR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|PT_BR:{{{realBasePageName }}}| | [[File:Pt-br.png|alt=Brazilian Portuguese|link=PT-BR:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: DK:{{{ | + | #ifexist: TR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|TR:{{{realBasePageName}}}| | [[File:Tr.png|alt=Turkish|link=TR:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: CS:{{{ | + | #ifexist: AR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|AR:{{{realBasePageName}}}| | [[File:Ar.png|alt=Arabic|link=AR:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: RU:{{{ | + | #ifexist: DK:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|DK:{{{realBasePageName}}}| | [[File:Dk.png|alt=Danish|link=DK:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: HU:{{{ | + | #ifexist: CS:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|CS:{{{realBasePageName}}}| | [[File:Cs.png|alt=Czech|link=CS:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: SK:{{{ | + | #ifexist: RU:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|RU:{{{realBasePageName}}}| | [[File:Ru.png|alt=Russian|link=RU:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: ZH-CN:{{{ | + | #ifexist: HU:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|HU:{{{realBasePageName}}}| | [[File:Hu.png|alt=Hungarian|link=HU:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: EE:{{{ | + | #ifexist: SK:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|SK:{{{realBasePageName}}}| | [[File:Sk.png|alt=Slovak|link=SK:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: ID:{{{ | + | #ifexist: ZH-CN:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|ZH-CN:{{{realBasePageName}}}| | [[File:Zh-cn.png|alt=Chinese (Simplified)|link=ZH-CN:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: LV:{{{ | + | #ifexist: EE:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|EE:{{{realBasePageName}}}| | [[File:Ee.png|alt=Estonian|link=EE:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: HI:{{{ | + | #ifexist: ID:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|ID:{{{realBasePageName}}}| | [[File:Id.png|alt=Indonesian|link=ID:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: BG:{{{ | + | #ifexist: LV:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|LV:{{{realBasePageName}}}| | [[File:Lv.png|alt=Latvian|link=LV:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: CY:{{{ | + | #ifexist: HI:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|HI:{{{realBasePageName}}}| | [[File:Hi.png|alt=Hindi|link=HI:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: JA:{{{ | + | #ifexist: BG:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|BG:{{{realBasePageName}}}| | [[File:Bg.png|alt=Bulgarian|link=BG:{{{realBasePageName}}}]] }} }} {{ |
− | #ifexist: KR:{{{ | + | #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={{{ | + | #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 03:51, 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