Difference between revisions of "Template:Common Names"

From PlantUse English
Jump to: navigation, search
 
(31 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
{{#while:
 
{{#while:
 
|{{#ifexpr:{{#var:i}}<={{#var:max}}|true}}
 
|{{#ifexpr:{{#var:i}}<={{#var:max}}|true}}
|{{#if:{{{group{{#var:i}}|}}}|{{#switch:{{IsEven|{{#var:i}}}}|true={{#vardefine:Right|{{#var:Right}}{{{group{{#var:i}}}}}<br><br>}}|{{#vardefine:Left|{{#var:Left}}{{{group{{#var:i}}}}}<br><br>}}}}|}}
+
|{{#if:{{{group{{#var:i}}|}}}|{{#switch:{{IsEven|{{#var:i}} }}|true=<div style="width:50%;clear:right;float:right;">
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}  
+
<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}}}}  
 
}}
 
}}
<div style="width:50%;clear:right;float:right;">
 
{{#var:Right}}
 
</div>
 
<div style="width:50%;clear:left;float:left;">
 
{{#var:Left}}
 
</div>
 
 
{{#if:{{{sources|}}}|
 
{{#if:{{{sources|}}}|
 
<br><div style="width:100%;clear:both;">
 
<br><div style="width:100%;clear:both;">
Line 17: Line 14:
 
</div>
 
</div>
 
|}}
 
|}}
[[category:Common Names]]
+
[[category:Common names]]
</includeonly>
+
</includeonly><noinclude>
<noinclude>
+
 
==Parametres==
 
==Parametres==
* groupX = languages group content (X values from 0 to 20) (mendatory)
+
* groupX = language group content (X values from 0 to 20) (mandatory)
* sources = sources category content (facultatif)
+
* 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)