Difference between revisions of "Template:Languages"

From Worms Knowledge Base

Jump to: navigation, search
(new parameter: title)
(removed tables; changed title text to "In other languages:")
Line 1: Line 1:
{| width="100%" class="toccolours" style="border-collapse: collapse; font-size: 85%; clear: both;"
+
<div style="font-size: 85%; clear: both;">'''{{{title|In other languages:}}}''' <!--
!style="border-right: 1px solid #919aab; padding: 4px 1em;"| {{{title|Language:}}}
+
|style="padding: 4px 1em; width: 99%;"| <!--
+
 
-->{{#if:{{{1|}}}|[[{{{2}}}|{{#language:{{{1}}}}}]] <small>({{{1}}})</small>}}<!--
 
-->{{#if:{{{1|}}}|[[{{{2}}}|{{#language:{{{1}}}}}]] <small>({{{1}}})</small>}}<!--
 
-->{{#if:{{{3|}}}|&nbsp;• [[{{{4}}}|{{#language:{{{3}}}}}]] <small>({{{3}}})</small>}}<!--
 
-->{{#if:{{{3|}}}|&nbsp;• [[{{{4}}}|{{#language:{{{3}}}}}]] <small>({{{3}}})</small>}}<!--
Line 12: Line 10:
 
-->{{#if:{{{17|}}}|&nbsp;• [[{{{18}}}|{{#language:{{{17}}}}}]] <small>({{{17}}})</small>}}<!--
 
-->{{#if:{{{17|}}}|&nbsp;• [[{{{18}}}|{{#language:{{{17}}}}}]] <small>({{{17}}})</small>}}<!--
 
-->{{#if:{{{19|}}}|&nbsp;• [[{{{20}}}|{{#language:{{{19}}}}}]] <small>({{{19}}})</small>}}
 
-->{{#if:{{{19|}}}|&nbsp;• [[{{{20}}}|{{#language:{{{19}}}}}]] <small>({{{19}}})</small>}}
|}<noinclude>
+
</div><noinclude>
 
----
 
----
 
==Usage==
 
==Usage==

Revision as of 15:52, 11 February 2010

In other languages:

Usage

{{Languages|language code|link to the page|language code2|link2|...|...}}

An optional parameter title can change the text at the table header.

Example

Example 1

{{Languages
|en|Worms Armageddon ReadMe (English)|fr|Worms Armageddon ReadMe (French)|es|Worms Armageddon ReadMe (Spanish)}}
In other languages: English (en) • français (fr) • español (es) • +/-

Example 2 (for Spanish articles)

{{Languages|title=Idioma:
|en|Worms Armageddon ReadMe (English)|fr|Worms Armageddon ReadMe (French)|es|Worms Armageddon ReadMe (Spanish)}}
Idioma: English (en) • français (fr) • español (es) • +/-

Personal tools