Difference between revisions of "Template:Otherlang"
From Tycoon Gaming
m (troubleshooting ...) |
m |
||
Line 130: | Line 130: | ||
</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; }}"> {{#ifexists: {{{realBasePageName}}} | foo | bar }} |
− | #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}}}]] }} }} {{ |
Revision as of 19:08, 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
{{#ifexists: {{{realBasePageName}}} | foo | bar }}