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; }}"> {{#ifexists: {{{realBasePageName}}} | foo | bar }}
+
#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}}} | 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}}}]] }} }} {{

Revision as of 19: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

Language Syntax Flag
English en=Page_name En.png
Dutch nl=NL:Page_name Nl.png
French fr=FR:Page_name Fr.png
German de=DE:Page_name De.png
Italian it=IT:Page_name It.png
Polish pl=PL:Page_name Pl.png
Spanish es=ES:Page_name Es.png
Romanian ro=RO:Page_name Ro.png
Portuguese pt=PT:Page_name Pt.png
Brazilian Portuguese pt-br=PT-BR:Page_name Pt-br.png
Turkish tr=TR:Page_name Tr.png
Arabic ar=AR:Page_name Ar.png
Danish dk=DK:Page_name Dk.png
Czech cs=CS:Page_name Cs.png
Russian ru=RU:Page_name Ru.png
Hungarian hu=HU:Page_name Hu.png
Slovak sk=SK:Page_name Sk.png
Chinese (Simplified) zh-cn=ZH-CN:Page_name Zh-cn.png
Estonian ee=EE:Page_name Ee.png
Indonesian id=ID:Page_name Id.png
Latvian lv=LV:Page_name Lv.png
Hindi hi=HI:Page_name Hi.png
Bulgarian bg=BG:Page_name Bg.png
Welsh cy=CY:Page_name Cy.png
Japanese ja=JA:Page_name Ja.png
Korean kr=KR:Page_name Kr.png


bar