Difference between revisions of "Template:Otherlang"
From Tycoon Gaming
m |
m (troubleshooting ...) |
||
Line 129: | Line 129: | ||
</noinclude> | </noinclude> | ||
− | {{#vardefine: realBasePageName | {{#if: {{{en|}}} | {{{en}}} | {{PAGENAME}} }} }} | + | {{#vardefine: realBasePageName | {{#if: {{{en|}}} | {{{en}}} | {{PAGENAME}} }} }} {{ |
− | {{ | + | #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: {{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|{{{realBasePageName}}}| | [[File:En.png|alt=English|link={{{realBasePageName}}}]] }} }} <!--{{ |
− | #ifexist: {{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|{{{realBasePageName}}}| | [[File:En.png|alt=English|link={{{realBasePageName}}}]] }} }} {{ | ||
#ifexist: DE:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|DE:{{{realBasePageName}}}| | [[File:De.png|alt=German|link=DE:{{{realBasePageName}}}]] }} }} {{ | #ifexist: DE:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|DE:{{{realBasePageName}}}| | [[File:De.png|alt=German|link=DE:{{{realBasePageName}}}]] }} }} {{ | ||
#ifexist: ES:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|ES:{{{realBasePageName}}}| | [[File:Es.png|alt=Spanish|link=ES:{{{realBasePageName}}}]] }} }} {{ | #ifexist: ES:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|ES:{{{realBasePageName}}}| | [[File:Es.png|alt=Spanish|link=ES:{{{realBasePageName}}}]] }} }} {{ | ||
Line 141: | Line 140: | ||
#ifexist: RO:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|RO:{{{realBasePageName}}}| | [[File:Ro.png|alt=Romanian|link=RO:{{{realBasePageName}}}]] }} }} {{ | #ifexist: RO:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|RO:{{{realBasePageName}}}| | [[File:Ro.png|alt=Romanian|link=RO:{{{realBasePageName}}}]] }} }} {{ | ||
#ifexist: PT:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|PT:{{{realBasePageName}}}| | [[File:Pt.png|alt=Portuguese|link=PT:{{{realBasePageName}}}]] }} }} {{ | #ifexist: PT:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|PT:{{{realBasePageName}}}| | [[File:Pt.png|alt=Portuguese|link=PT:{{{realBasePageName}}}]] }} }} {{ | ||
− | #ifexist: PT-BR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}| | + | #ifexist: PT-BR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|PT-BR:{{{realBasePageName}}| | [[File:Pt-br.png|alt=Brazilian Portuguese|link=PT-BR:{{{realBasePageName}}}]] }} }} {{ |
#ifexist: TR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|TR:{{{realBasePageName}}}| | [[File:Tr.png|alt=Turkish|link=TR:{{{realBasePageName}}}]] }} }} {{ | #ifexist: TR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|TR:{{{realBasePageName}}}| | [[File:Tr.png|alt=Turkish|link=TR:{{{realBasePageName}}}]] }} }} {{ | ||
#ifexist: AR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|AR:{{{realBasePageName}}}| | [[File:Ar.png|alt=Arabic|link=AR:{{{realBasePageName}}}]] }} }} {{ | #ifexist: AR:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|AR:{{{realBasePageName}}}| | [[File:Ar.png|alt=Arabic|link=AR:{{{realBasePageName}}}]] }} }} {{ | ||
Line 157: | Line 156: | ||
#ifexist: CY:{{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|CY:{{{realBasePageName}}}| | [[File:Cy.png|alt=Welsh|link=CY:{{{realBasePageName}}}]] }} }} {{ | #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: 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><!-- | + | #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 |
Revision as of 19:06, 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