Difference between revisions of "Template:Common Names"

From PlantUse English
Jump to: navigation, search
m (Protected "Template:Common Names" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
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}}
+
|{{#if:{{{group{{#var:i}}|}}}|{{#switch:{{IsEven|{{#var:i}}}}|true=<div style="width:50%;clear:right;float:right;">
{{{group{{#var:i}}}}}<br><br>}}|{{#vardefine:Left|{{#var:Left}}
+
{{{group{{#var:i}}}}}<br><br>}}</div>|#default=<div style="width:50%;clear:left;float:left;">
{{{group{{#var:i}}}}}<br><br>}}}}|}}
+
{{{group{{#var:i}}}}}<br><br>}}</div>}}|}}
 
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}  
 
{{#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|}}}|
 
 
<br><div style="width:100%;clear:both;">
 
<br><div style="width:100%;clear:both;">
 
<h2> Sources and commentaries </h2>
 
<h2> Sources and commentaries </h2>
Line 19: Line 12:
 
</div>
 
</div>
 
|}}
 
|}}
 
 
 
[[category:Common Names]]
 
[[category:Common Names]]
 
</includeonly>
 
</includeonly>

Revision as of 15:19, 11 May 2011


Parametres

  • groupX = languages group content (X values from 0 to 20) (mendatory)
  • sources = sources category content (facultatif)