Difference between revisions of "Template:Common Names"
From PlantUse English
MarcBrugman (Talk | contribs) |
MarcBrugman (Talk | contribs) |
||
Line 1: | Line 1: | ||
<includeonly><h2> Names in common use </h2>{{#vardefine: i|1}}{{#vardefine: max|20}}{{#vardefine: Right|}}{{#vardefine: Left|}} | <includeonly><h2> Names in common use </h2>{{#vardefine: i|1}}{{#vardefine: max|20}}{{#vardefine: Right|}}{{#vardefine: Left|}} | ||
{{#while: | {{#while: | ||
− | |{{#ifexpr:{{#var:i}}<={{#var:max}}|true}} | + | |{{#ifexpr:{{#var:i}}<={{#var:max}}|true}}|{{#if:{{{group{{#var:i}}|}}}|{{#switch:{{IsEven|{{#var:i}} }}|true=<div style="width:50%;clear:right;float:right;"><br />{{{group{{#var:i}}}}}<br /><br /></div>|#default=<div style="width:50%;clear:left;float:left;"><br />{{{group{{#var:i}} }}}<br /><br /></div>}}|}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} |
− | |{{#if:{{{group{{#var:i}}|}}}|{{#switch:{{IsEven|{{#var:i}} }}|true=<div style="width:50%;clear:right;float:right;"><br /> | + | |
− | {{{group{{#var:i}}}}}<br /><br /></div>|#default=<div style="width:50%;clear:left;float:left;"><br /> | + | |
− | {{{group{{#var:i}} }}}<br /><br /></div>}}|}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | + | |
}} | }} | ||
<br><div style="width:100%;clear:both;"> | <br><div style="width:100%;clear:both;"> |
Revision as of 15:26, 11 May 2011
Parametres
- groupX = languages group content (X values from 0 to 20) (mendatory)
- sources = sources category content (facultatif)