Template:Otherlang: Difference between revisions
From Sita's Adventures
(Created page with "=== Example === On a page called Template:Otherlang: {{otherlang | title=Template:Otherlang | ru=Category:Programming:ru }}") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
| ru=Category:Programming:ru | | ru=Category:Programming:ru | ||
}} | }} | ||
== Available Languages == | |||
{| class="table table-bordered" border="2" cellpadding="7" | |||
! Language | |||
! Syntax | |||
! Result | |||
|- id="en" | |||
|English | |||
|en=Page_name | |||
|[[File:Epic.png]] | |||
|- id="ru" | |||
|French | |||
|ru=Page_name:fr | |||
|[[File:Emerald.png]] | |||
|} | |||
{{#if: {{{title|}}} | {{DISPLAYTITLE:{{{title}}}}} }}{{#if: {{{en|}}} | '''[[File:Epic.png|alt=English|link={{{en}}}]]''' }} {{#if: {{{ru|}}} | [[File:Emerald.png|alt=Русский|link={{{ru}}}]] }} |
Latest revision as of 09:26, 20 June 2024
Example
On a page called Template:Otherlang:
Example
On a page called Template:Otherlang: Template loop detected: Template:Otherlang
Available Languages
Language | Syntax | Result |
---|---|---|
English | en=Page_name | |
French | ru=Page_name:fr |
{{#if: Template:Otherlang | }}{{#if: | }} {{#if: Category:Programming:ru | }}
Available Languages
Language | Syntax | Result |
---|---|---|
English | en=Page_name | |
French | ru=Page_name:fr |
{{#if: | }}{{#if: | }} {{#if: | }}