Difference between revisions of "Template:Hlist"

From Bearscape Wiki
Jump to: navigation, search
(Trying something...)
 
Line 1: Line 1:
<div class="hlist {{{class|}}}" {{#if:{{{style|}}}{{{indent|}}}|style="{{#if:{{{indent|}}}|margin-left: {{#expr:{{{indent}}}*1.6}}em;}} {{{style|}}}"}}>{{{1}}}</div>
+
{{
<noinclude>Testing.
+
  #fornumargs: number
 +
  | 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.
  
{{Hlist|
+
==Example==
*yama nashi
+
{{Hlist
*oshi nashi
+
|Ding
*imi nashi
+
|dong
 +
|the witch is dead
 +
|sep=,
 
}}
 
}}
 
Looks like it'll need [https://www.mediawiki.org/wiki/Snippets/Horizontal_lists this] to work...
 
 
</noinclude>
 
</noinclude>

Revision as of 04:35, 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