Difference between revisions of "Template:Hlist"

From Bearscape Wiki
Jump to: navigation, search
(Trying something...)
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="hlist {{{class|}}}" {{#if:{{{style|}}}{{{indent|}}}|style="{{#if:{{{indent|}}}|margin-left: {{#expr:{{{indent}}}*1.6}}em;}} {{{style|}}}"}}>{{{1}}}</div>
+
{{#fornumargs: number
<noinclude>Testing.
+
|value
 +
|{{#if:{{#var:value}}|{{#var:applied_sep}}{{#var:value}}{{#vardefine:applied_sep|{{{sep|,&#32;}}}}}}}}}{{#vardefine:applied_sep|}}<noinclude>
 +
A simple horizontal list made out of loop and variable logic. Use the parameter ''sep'' to specify a separator.
  
{{Hlist|
+
==Example==
*yama nashi
+
{{Hlist
*oshi nashi
+
|Ding
*imi nashi
+
|dong
}}
+
|
 
+
|the witch is dead
Looks like it'll need [https://www.mediawiki.org/wiki/Snippets/Horizontal_lists this] to work...
+
}}!
 
</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!