« Modèle:Languages/Lang » : différence entre les versions

De Baripedia
(Page créée avec « <div><includeonly>{{#ifexist: {{#if: {{{2|}}} | {{{2}}} | {{#if: {&#x... »)
 
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<includeonly>{{#ifexist: {{#if: {{{2|}}} | {{{2}}} | {{#if: {{NAMESPACE}} | {{NAMESPACE}}:}}{{BASEPAGENAME}}}}/{{{1}}} | &nbsp;&bull;&#32;<span lang="{{{1}}}">{{#if: {{{2|}}}|[[{{{2}}}/{{{1}}}|{{#language:{{{1}}}}}]]| [[:{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1}}}|{{#language:{{{1}}}}}]]}}</span>|<span></span>}}</includeonly><noinclude>
== Template ==
''This sub-template doesn't display properly when not included.  Please see [[Template:Languages]] for the complete version.''


<div>&lt;includeonly&gt;&#x7B;&#x7B;#ifexist: &#x7B;&#x7B;#if: &#x7B;&#x7B;&#x7B;2|&#x7D;&#x7D;&#x7D; | &#x7B;&#x7B;&#x7B;2&#x7D;&#x7D;&#x7D; | &#x7B;&#x7B;#if: &#x7B;&#x7B;NAMESPACE&#x7D;&#x7D; | &#x7B;&#x7B;NAMESPACE&#x7D;&#x7D;:&#x7D;&#x7D;&#x7B;&#x7B;BASEPAGENAME&#x7D;&#x7D;&#x7D;&#x7D;/&#x7B;&#x7B;&#x7B;1&#x7D;&#x7D;&#x7D; | &nbsp;&bull;&#32;&lt;span lang="&#x7B;&#x7B;&#x7B;1&#x7D;&#x7D;&#x7D;"&gt;&#x7B;&#x7B;#if: &#x7B;&#x7B;&#x7B;2|&#x7D;&#x7D;&#x7D;|&#x5B;&#x5B;&#x7B;&#x7B;&#x7B;2&#x7D;&#x7D;&#x7D;/&#x7B;&#x7B;&#x7B;1&#x7D;&#x7D;&#x7D;|&#x7B;&#x7B;#language:&#x7B;&#x7B;&#x7B;1&#x7D;&#x7D;&#x7D;&#x7D;&#x7D;&#x5D;&#x5D;| &#x5B;&#x5B;:&#x7B;&#x7B;NAMESPACE&#x7D;&#x7D;:&#x7B;&#x7B;BASEPAGENAME&#x7D;&#x7D;/&#x7B;&#x7B;&#x7B;1&#x7D;&#x7D;&#x7D;|&#x7B;&#x7B;#language:&#x7B;&#x7B;&#x7B;1&#x7D;&#x7D;&#x7D;&#x7D;&#x7D;&#x5D;&#x5D;&#x7D;&#x7D;&lt;/span&gt;|&lt;span&gt;&lt;/span&gt;&#x7D;&#x7D;&lt;/includeonly&gt;&lt;noinclude&gt;</div><div>== Template ==</div><div>''This sub-template doesn't display properly when not included. Please see &#x5B;&#x5B;Template:Languages&#x5D;&#x5D; for the complete version.''</div><div><br/></div><div>== Usage ==</div><div><br/></div><div>This template is designed to simplify &#x5B;&#x5B;Template:Languages&#x5D;&#x5D;, by allowing a simpler syntax for adding new languages. Each language is included by calling this template with the following parameters:</div><div><br/></div><div>* '''Language code''' (e.g. fr)</div><div>* (optional) '''Page name''' - if not supplied the page is automatically worked out based on where the language template is included.</div><div><br/></div><div>This template should not be used anywhere except in the Languages template.</div><div>&#x5B;&#x5B;Category:Language templates&#x5D;&#x5D;</div><div>&lt;/noinclude&gt;</div><div><br/></div>
== 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.
[[Category:Language templates]]
</noinclude>

Version du 31 janvier 2013 à 23:56

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.