Modèle:Languages/Lang : Différence entre versions

De VlmWiki
m (catégorisation)
 
(11 révisions intermédiaires par un autre utilisateur non affichées)
Ligne 1 : Ligne 1 :
<includeonly><div class="LanguageLinks">
+
<includeonly>{{#ifexist: {{#if: {{{2|}}} | {{{2}}} | {{#if: {{NAMESPACE}} | {{NAMESPACE}}:}}{{BASEPAGENAME}}}}/{{{1}}} | &nbsp;&bull;&nbsp;<span lang="{{{1}}}">{{#if: {{{2|}}}|[[{{{2}}}/{{{1}}}|{{#language:{{{1}}}}}]]| [[:{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1}}}|{{#language:{{{1}}}}}]]}}</span>|<span></span>}}</includeonly><noinclude>
<table width="100%">
+
== Template ==
<tr valign="top" style="background: #EEF3E2">
+
''This sub-template doesn't display properly when not included.  Please see [[Template:Languages]] for the complete version.''
<td style="width: 25px; padding-left: 0.5em;">[[Image:Geographylogo.png|25px|Languages|link=]]</td>
+
 
<td style="white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;">'''[[Project:Language policy|{{Languages/Title|{{SUBPAGENAME}}}}]]'''&nbsp;</td><td style="width: 99%; padding: 1px 1em 0; background: #F6F9ED;">
+
== Usage ==
'''[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|Français]]'''
+
 
{{Languages/Lang|en|{{{1|}}}}}
+
This template is designed to simplify [[Template:Languages]], by allowing a simpler syntax for adding new languages.  Each language is included by calling this template with the following parameters:
{{Languages/Lang|af|{{{1|}}}}}
+
 
{{Languages/Lang|ar|{{{1|}}}}}
+
* '''Language code''' (e.g. fr)
{{Languages/Lang|az|{{{1|}}}}}
+
* (optional) '''Page name''' - if not supplied the page is automatically worked out based on where the language template is included.
{{Languages/Lang|bcc|{{{1|}}}}}
+
 
{{Languages/Lang|bg|{{{1|}}}}}
+
This template should not be used anywhere except in the Languages template.
{{Languages/Lang|br|{{{1|}}}}}
+
[[Catégorie:Modèle]]
{{Languages/Lang|ca|{{{1|}}}}}
+
</noinclude>
{{Languages/Lang|cs|{{{1|}}}}}
 
{{Languages/Lang|da|{{{1|}}}}}
 
{{Languages/Lang|de|{{{1|}}}}}
 
{{Languages/Lang|el|{{{1|}}}}}
 
{{Languages/Lang|es|{{{1|}}}}}
 
{{Languages/Lang|fa|{{{1|}}}}}
 
{{Languages/Lang|fi|{{{1|}}}}}
 
{{Languages/Lang|gl|{{{1|}}}}}
 
{{Languages/Lang|gu|{{{1|}}}}}
 
{{Languages/Lang|he|{{{1|}}}}}
 
{{Languages/Lang|hu|{{{1|}}}}}
 
{{Languages/Lang|id|{{{1|}}}}}
 
{{Languages/Lang|it|{{{1|}}}}}
 
{{Languages/Lang|ja|{{{1|}}}}}
 
{{Languages/Lang|ka|{{{1|}}}}}
 
{{Languages/Lang|ko|{{{1|}}}}}
 
{{Languages/Lang|ksh|{{{1|}}}}}
 
{{Languages/Lang|kw|{{{1|}}}}}
 
{{Languages/Lang|mk|{{{1|}}}}}
 
{{Languages/Lang|ml|{{{1|}}}}}
 
{{Languages/Lang|mr|{{{1|}}}}}
 
{{Languages/Lang|ms|{{{1|}}}}}
 
{{Languages/Lang|nl|{{{1|}}}}}
 
{{Languages/Lang|no|{{{1|}}}}}
 
{{Languages/Lang|oc|{{{1|}}}}}
 
{{Languages/Lang|pl|{{{1|}}}}}
 
{{Languages/Lang|pt|{{{1|}}}}}
 
{{Languages/Lang|pt-br|{{{1|}}}}}
 
{{Languages/Lang|ro|{{{1|}}}}}
 
{{Languages/Lang|ru|{{{1|}}}}}
 
{{Languages/Lang|si|{{{1|}}}}}
 
{{Languages/Lang|sk|{{{1|}}}}}
 
{{Languages/Lang|sq|{{{1|}}}}}
 
{{Languages/Lang|sr|{{{1|}}}}}
 
{{Languages/Lang|sv|{{{1|}}}}}
 
{{Languages/Lang|ta|{{{1|}}}}}
 
{{Languages/Lang|th|{{{1|}}}}}
 
{{Languages/Lang|tr|{{{1|}}}}}
 
{{Languages/Lang|uk|{{{1|}}}}}
 
{{Languages/Lang|vi|{{{1|}}}}}
 
{{Languages/Lang|yue|{{{1|}}}}}
 
{{Languages/Lang|zh|{{{1|}}}}}
 
{{Languages/Lang|zh-hans|{{{1|}}}}}
 
{{Languages/Lang|zh-hant|{{{1|}}}}}
 
{{Languages/Lang|zh-tw|{{{1|}}}}}
 
</td></tr></table></div></includeonly>
 

Version actuelle datée du 19 mars 2010 à 20:10

Template

This sub-template doesn't display properly when not included. Please see Template:Languages for the complete version.

Usage

This template is designed to simplify Template:Languages, by allowing a simpler syntax for adding new languages. Each language is included by calling this template with the following parameters:

  • Language code (e.g. fr)
  • (optional) Page name - if not supplied the page is automatically worked out based on where the language template is included.

This template should not be used anywhere except in the Languages template.