Difference between revisions of "Template:Languages"

From Worms Knowledge Base

Jump to: navigation, search
(+note about sub-templates)
 
(8 intermediate revisions by the same user not shown)
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;"| Languages:
+
-->{{#if:{{{1|}}}|[[{{{2}}}|{{#language:{{{1}}}}}]] <small>({{{1}}})</small>}}<!--
|style="padding: 4px 1em; width: 99%;"| <!--
+
-->{{#if:{{{3|}}}|&nbsp;• [[{{{4}}}|{{#language:{{{3}}}}}]] <small>({{{3}}})</small>}}<!--
-->{{#if:{{{1|}}}|[[{{{2}}}|{{#language:{{{1}}}}}]]}}<!--
+
-->{{#if:{{{5|}}}|&nbsp;• [[{{{6}}}|{{#language:{{{5}}}}}]] <small>({{{5}}})</small>}}<!--
-->{{#if:{{{3|}}}|&nbsp;• [[{{{4}}}|{{#language:{{{3}}}}}]]}}<!--
+
-->{{#if:{{{7|}}}|&nbsp;• [[{{{8}}}|{{#language:{{{7}}}}}]] <small>({{{7}}})</small>}}<!--
-->{{#if:{{{5|}}}|&nbsp;• [[{{{6}}}|{{#language:{{{5}}}}}]]}}<!--
+
-->{{#if:{{{9|}}}|&nbsp;• [[{{{10}}}|{{#language:{{{9}}}}}]] <small>({{{9}}})</small>}}<!--
-->{{#if:{{{7|}}}|&nbsp;• [[{{{8}}}|{{#language:{{{7}}}}}]]}}<!--
+
-->{{#if:{{{11|}}}|&nbsp;• [[{{{12}}}|{{#language:{{{11}}}}}]] <small>({{{11}}})</small>}}<!--
-->{{#if:{{{9|}}}|&nbsp;• [[{{{10}}}|{{#language:{{{9}}}}}]]}}<!--
+
-->{{#if:{{{13|}}}|&nbsp;• [[{{{14}}}|{{#language:{{{13}}}}}]] <small>({{{13}}})</small>}}<!--
-->{{#if:{{{11|}}}|&nbsp;• [[{{{12}}}|{{#language:{{{11}}}}}]]}}<!--
+
-->{{#if:{{{15|}}}|&nbsp;• [[{{{16}}}|{{#language:{{{15}}}}}]] <small>({{{15}}})</small>}}<!--
-->{{#if:{{{13|}}}|&nbsp;• [[{{{14}}}|{{#language:{{{13}}}}}]]}}<!--
+
-->{{#if:{{{17|}}}|&nbsp;• [[{{{18}}}|{{#language:{{{17}}}}}]] <small>({{{17}}})</small>}}<!--
-->{{#if:{{{15|}}}|&nbsp;• [[{{{16}}}|{{#language:{{{15}}}}}]]}}<!--
+
-->{{#if:{{{19|}}}|&nbsp;• [[{{{20}}}|{{#language:{{{19}}}}}]] <small>({{{19}}})</small>}}<!--
-->{{#if:{{{17|}}}|&nbsp;• [[{{{18}}}|{{#language:{{{17}}}}}]]}}<!--
+
-->&nbsp;• <span class="plainlinks">[{{fullurl:{{{pagename|{{FULLPAGENAME}}}}}|action=edit}} +/-]</span></div><noinclude>
-->{{#if:{{{19|}}}|&nbsp;• [[{{{20}}}|{{#language:{{{19}}}}}]]}}
+
|}<noinclude>
+
 
----
 
----
 
==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>
 +
;Optional parameters
 +
:'''title''': The text at the table header.
 +
:'''pagename''': Which page the edit link "+/-" links to. Defaults to the current page <nowiki>({{FULLPAGENAME}})</nowiki>.
 +
 
===Example===
 
===Example===
<nowiki>{{Languages|en|Worms Armageddon ReadMe (English)|fr|Worms Armageddon ReadMe (French)}}</nowiki>
+
Example 1
{{Languages|en|Worms Armageddon ReadMe (English)|fr|Worms Armageddon ReadMe (French)}}
+
<pre><nowiki>{{Languages
 +
|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)}}
 +
 
 +
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)}}
 +
 
 +
==Notes==
 +
If a page has been translated in too many languages, it is recommended to make a sub-template for it.
 +
 
 +
[{{fullurl:Special:PrefixIndex|prefix=Languages/&namespace=10}} Examples can be found here]
 +
 
 
</noinclude>
 
</noinclude>

Latest revision as of 11:26, 31 August 2011

In other languages:  • +/-

Usage

{{Languages|language code|link to the page|language code2|link2|...|...}}
Optional parameters
title: The text at the table header.
pagename: Which page the edit link "+/-" links to. Defaults to the current page ({{FULLPAGENAME}}).

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) • +/-

Notes

If a page has been translated in too many languages, it is recommended to make a sub-template for it.

Examples can be found here


Personal tools