Difference between revisions of "Template:Hlist"

From Bearscape Wiki
Jump to: navigation, search
m (Fixing a bug)
 
Line 1: Line 1:
 
{{#fornumargs: number
 
{{#fornumargs: number
 
|value
 
|value
|{{#if:{{#var:value}}|{{#var:applied_sep}}{{#var:value}}{{#vardefine:applied_sep|{{{sep|, }}}}}}}
+
|{{#if:{{#var:value}}|{{#var:applied_sep}}{{#var:value}}{{#vardefine:applied_sep|{{{sep|,&#32;}}}}}}}}}{{#vardefine:applied_sep|}}<noinclude>
}}{{#vardefine:applied_sep|}}
+
A simple horizontal list made out of loop and variable logic. Use the parameter ''sep'' to specify a separator.
<noinclude>A simple horizontal list made out of loop and variable logic. Use the parameter ''sep'' to specify a separator.
 
  
 
==Example==
 
==Example==
Line 11: Line 10:
 
|
 
|
 
|the witch is dead
 
|the witch is dead
}}
+
}}!
 
</noinclude>
 
</noinclude>

Latest revision as of 03:27, 8 April 2016

A simple horizontal list made out of loop and variable logic. Use the parameter sep to specify a separator.

Example[edit]

Ding, dong, the witch is dead!