Difference between revisions of "Template:Flatlist/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Edokter
(no effect)
imported>Droll
(test)
Line 1: Line 1:
<div class="hlist" style="margin:{{{margin|inherit}}}; margin-left:{{{indent|0}}}em;{{{style|}}}">{{#if:{{{1|}}}|<nowiki />
+
<div class="hlist" style="margin-left:{{{indent|0}}}em;{{{style|}}}">{{#if:{{{1|}}}|<nowiki />
 
{{{1}}}
 
{{{1}}}
</div>}}<noinclude>{{endflatlist/sandbox}}
+
</div>}}<noinclude>{{template sandbox notice}}</noinclude>
 
 
=== Usage ===
 
Starts a horizontal list, such as:
 
 
 
{{flatlist/sandbox}}
 
*[[cat]]
 
*[[dog]]
 
*[[horse]]
 
*[[cow]]
 
*[[sheep]]
 
*[[pig]]
 
{{endflatlist/sandbox}}
 
{{flatlist/sandbox|
 
*[[cat]]
 
*[[dog]]
 
*[[horse]]
 
*[[cow]]
 
*[[sheep]]
 
*[[pig]]
 
}}
 
 
 
Syntax:
 
 
 
<pre><nowiki>
 
{{flatlist}}
 
*[[cat]]
 
*[[dog]]
 
*[[horse]]
 
*[[cow]]
 
*[[sheep]]
 
*[[pig]]
 
{{endflatlist}}
 
{{flatlist|
 
*[[cat]]
 
*[[dog]]
 
*[[horse]]
 
*[[cow]]
 
*[[sheep]]
 
*[[pig]]
 
}}
 
</nowiki></pre>
 
 
 
===Optional parameters===
 
* ''style'', additional CSS style options. Example: ''style = border:solid 1px silver; background:lightyellow'' (complex styles should not be used in articles but may be acceptable on user, project and talk pages)
 
* ''indent'', add left indent by a number of em-spaces, particularly handy for inclusion in an indented discussion thread. Example: ''indent = 2''
 
{{template sandbox notice}}
 
 
 
=== Examples ===
 
Normal spacing, indent 2:
 
{{flatlist/sandbox|indent=2}}
 
*[[cat]]
 
*[[dog]]
 
*[[horse]]
 
*[[cow]]
 
*[[sheep]]
 
*[[pig]]
 
{{endflatlist/sandbox}}
 
{{flatlist/sandbox|indent=2|
 
*[[cat]]
 
*[[dog]]
 
*[[horse]]
 
*[[cow]]
 
*[[sheep]]
 
*[[pig]]
 
}}
 
 
 
 
 
Compact:
 
{{flatlist/sandbox |style=margin:0em;}}
 
*[[cat]]
 
*[[dog]]
 
*[[horse]]
 
*[[cow]]
 
*[[sheep]]
 
*[[pig]]
 
{{endflatlist/sandbox}}
 
{{flatlist/sandbox|style=margin:0em;|
 
*[[cat]]
 
*[[dog]]
 
*[[horse]]
 
*[[cow]]
 
*[[sheep]]
 
*[[pig]]
 
}}
 
</noinclude>
 

Revision as of 20:12, 8 August 2011