Difference between revisions of "Template:Common Names"
From PlantUse English
MarcBrugman (Talk | contribs) (Undo revision 143 by Rémy Doyen (talk)) |
|||
(40 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><h2> Names in common use </h2>{{#vardefine: i|1}}{{#vardefine: max|20}}{{#vardefine: Right|}}{{#vardefine: Left|}}{{#while:|{{#ifexpr:{{#var:i}}<={{#var:max}}|true}}|{{#if:{{{group{{#var:i}}|}}}|{{#switch:{{ | + | <includeonly><h2> Names in common use </h2>{{#vardefine: i|1}}{{#vardefine: max|20}}{{#vardefine: Right|}}{{#vardefine: Left|}} |
− | {{#vardefine:i|{{#expr:{{#var:i}}+1}}}} }} | + | {{#while: |
− | == | + | |{{#ifexpr:{{#var:i}}<={{#var:max}}|true}} |
− | * groupX = | + | |{{#if:{{{group{{#var:i}}|}}}|{{#switch:{{IsEven|{{#var:i}} }}|true=<div style="width:50%;clear:right;float:right;"> |
− | * sources = sources category content ( | + | <br /> |
+ | {{{group{{#var:i}}}}}<br /></div>|#default=<div style="width:50%;clear:left;float:left;"> | ||
+ | <br /> | ||
+ | {{{group{{#var:i}}}}}<br /></div>}}|}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | ||
+ | }} | ||
+ | {{#if:{{{sources|}}}| | ||
+ | <br><div style="width:100%;clear:both;"> | ||
+ | <h2> Sources and commentaries </h2> | ||
+ | {{{sources}}} | ||
+ | </div> | ||
+ | |}} | ||
+ | [[category:Common names]] | ||
+ | </includeonly><noinclude> | ||
+ | ==Parametres== | ||
+ | * groupX = language group content (X values from 0 to 20) (mandatory) | ||
+ | * sources = sources category content (optional) | ||
[[fr:Modèle:NomsCommuns]] | [[fr:Modèle:NomsCommuns]] | ||
+ | [[category : Template]] | ||
</noinclude> | </noinclude> |
Latest revision as of 09:39, 22 October 2011
Parametres
- groupX = language group content (X values from 0 to 20) (mandatory)
- sources = sources category content (optional)