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