Difference between revisions of "Template:Otherlang"
From Tycoon Gaming
m |
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; }}"> {{#ifexist: {{{realBasePageName}}} | | + | #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; }}"> realBasePageName ({{#var:realBasePageName}}) exists? {{#ifexist: {{{realBasePageName}}} | yes | no }} |
+ | PAGENAME ({{#var:PAGENAME}}) exists? {{#ifexist: {{{PAGENAME}}} | yes | no }} | ||
<!--{{ | <!--{{ | ||
#ifexist: {{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|{{{realBasePageName}}}| | [[File:En.png|alt=English|link={{{realBasePageName}}}]] }} }} {{ | #ifexist: {{{realBasePageName}}} | {{#ifeq: {{PAGENAME}}|{{{realBasePageName}}}| | [[File:En.png|alt=English|link={{{realBasePageName}}}]] }} }} {{ |
Revision as of 19:14, 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
realBasePageName (Otherlang) exists? no
PAGENAME () exists? no