Difference between revisions of "Template:Hlist"

From Bearscape Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{
 
{{
 
   #fornumargs: number
 
   #fornumargs: number
   | value
+
   |value
   | {{#var:applied_sep}} {{#var:value}}{{#vardefine:applied_sep|{{{sep|,}}}}}
+
   |{{#if:{{#var:value}}|{{#var:applied_sep}} {{#var:value}}{{#vardefine:applied_sep|{{{sep|,}}}}}}}
 
}}
 
}}
 
<noinclude>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.
Line 10: Line 10:
 
|Ding
 
|Ding
 
|dong
 
|dong
 +
|
 
|the witch is dead
 
|the witch is dead
 
|sep=,
 
|sep=,
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Revision as of 04:41, 13 January 2016

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

Example

Ding,dong,the witch is dead