Difference between revisions of "Template:Languages"

From Worms Knowledge Base

Jump to: navigation, search
(code edit)
(new parameter: title)
Line 1: Line 1:
 
{| width="100%" class="toccolours" style="border-collapse: collapse; font-size: 85%; clear: both;"
 
{| width="100%" class="toccolours" style="border-collapse: collapse; font-size: 85%; clear: both;"
!style="border-right: 1px solid #919aab; padding: 4px 1em;"| Language:
+
!style="border-right: 1px solid #919aab; padding: 4px 1em;"| {{{title|Language:}}}
 
|style="padding: 4px 1em; width: 99%;"| <!--
 
|style="padding: 4px 1em; width: 99%;"| <!--
 
-->{{#if:{{{1|}}}|[[{{{2}}}|{{#language:{{{1}}}}}]] <small>({{{1}}})</small>}}<!--
 
-->{{#if:{{{1|}}}|[[{{{2}}}|{{#language:{{{1}}}}}]] <small>({{{1}}})</small>}}<!--
Line 16: Line 16:
 
==Usage==
 
==Usage==
 
  <nowiki>{{Languages|language code|link to the page|language code2|link2|...|...}}</nowiki>
 
  <nowiki>{{Languages|language code|link to the page|language code2|link2|...|...}}</nowiki>
 +
An optional parameter <tt>title</tt> can change the text at the table header.
 
===Example===
 
===Example===
 +
Example 1
 
<pre><nowiki>{{Languages
 
<pre><nowiki>{{Languages
 
|en|Worms Armageddon ReadMe (English)|fr|Worms Armageddon ReadMe (French)|es|Worms Armageddon ReadMe (Spanish)}}</nowiki></pre>
 
|en|Worms Armageddon ReadMe (English)|fr|Worms Armageddon ReadMe (French)|es|Worms Armageddon ReadMe (Spanish)}}</nowiki></pre>
 
{{Languages|en|Worms Armageddon ReadMe (English)|fr|Worms Armageddon ReadMe (French)|es|Worms Armageddon ReadMe (Spanish)}}
 
{{Languages|en|Worms Armageddon ReadMe (English)|fr|Worms Armageddon ReadMe (French)|es|Worms Armageddon ReadMe (Spanish)}}
 +
 +
Example 2 (for Spanish articles)
 +
<pre><nowiki>{{Languages|title=Idioma:
 +
|en|Worms Armageddon ReadMe (English)|fr|Worms Armageddon ReadMe (French)|es|Worms Armageddon ReadMe (Spanish)}}</nowiki></pre>
 +
{{Languages|title=Idioma:|en|Worms Armageddon ReadMe (English)|fr|Worms Armageddon ReadMe (French)|es|Worms Armageddon ReadMe (Spanish)}}
 
----
 
----
 
</noinclude>
 
</noinclude>

Revision as of 07:21, 26 January 2010

Language:

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