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; }}"> realBasePageName ({{#var:realBasePageName}}) exists? {{#ifexist: {{realBasePageName}} | yes | no }} | + | #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; }}"> |
− | realBasePageNameVar ({{#var:realBasePageName}}) exists? {{#ifexist: | + | realBasePageName ({{#var:realBasePageName}}) exists? {{#ifexist: {{realBasePageName}} | yes | no }} |
+ | realBasePageNameVar ({{#var:realBasePageName}}) exists? {{#ifexist: {{#var:realBasePageName}} | yes | no }} | ||
PAGENAME ({{PAGENAME}}) exists? {{#ifexist: {{PAGENAME}} | yes | no }} | PAGENAME ({{PAGENAME}}) exists? {{#ifexist: {{PAGENAME}} | yes | no }} | ||
<!--{{ | <!--{{ |
Revision as of 19:21, 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 realBasePageNameVar (Otherlang) exists? no PAGENAME (Otherlang) exists? no