Difference between revisions of "Template:Flatlist/doc"
From RaysBB
(Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === Starts a horizontal list, such as: {{flatlist}} *cat *[[dog]...") |
|||
Line 5: | Line 5: | ||
Starts a horizontal list, such as: | Starts a horizontal list, such as: | ||
{{flatlist}} | {{flatlist}} | ||
− | * | + | *cat |
− | * | + | *dog |
− | * | + | *horse |
− | * | + | *cow |
− | * | + | *sheep |
− | * | + | *pig |
{{endflatlist}} | {{endflatlist}} | ||
The bottom margin is inherited from the current container. Normally this will be 0.5em. | The bottom margin is inherited from the current container. Normally this will be 0.5em. | ||
Line 18: | Line 18: | ||
<pre><nowiki> | <pre><nowiki> | ||
{{flatlist}} | {{flatlist}} | ||
− | * | + | *cat |
− | * | + | *dog |
− | * | + | *horse |
− | * | + | *cow |
− | * | + | *sheep |
− | * | + | *pig |
{{endflatlist}} | {{endflatlist}} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 30: | Line 30: | ||
<pre><nowiki> | <pre><nowiki> | ||
{{flatlist | | {{flatlist | | ||
− | * | + | *cat |
− | * | + | *dog |
− | * | + | *horse |
− | * | + | *cow |
− | * | + | *sheep |
− | * | + | *pig |
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 43: | Line 43: | ||
<pre><nowiki> | <pre><nowiki> | ||
{{flatlist}} | {{flatlist}} | ||
− | # | + | #first |
− | # | + | #second |
− | # | + | #third |
− | # | + | #fourth |
− | # | + | #fifth |
− | # | + | #sixth |
{{endflatlist}} | {{endflatlist}} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 58: | Line 58: | ||
=== Examples === | === Examples === | ||
{{Flatlist | | {{Flatlist | | ||
− | * | + | *cat |
− | * | + | *dog |
− | * | + | *horse |
− | * | + | *cow |
− | * | + | *sheep |
− | * | + | *pig |
}} | }} | ||
{{Flatlist | | {{Flatlist | | ||
− | * | + | *kitten |
− | * | + | *puppy |
− | * | + | *foal |
− | * | + | *calf |
− | * | + | *lamb |
− | * | + | *piglet |
}} | }} | ||
{{flatlist}} | {{flatlist}} | ||
− | # | + | #first |
− | # | + | #second |
− | # | + | #third |
− | # | + | #fourth |
− | # | + | #fifth |
− | # | + | #sixth |
{{endflatlist}} | {{endflatlist}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
</includeonly> | </includeonly> |
Latest revision as of 19:30, 5 June 2011
Usage
Starts a horizontal list, such as:
- cat
- dog
- horse
- cow
- sheep
- pig
The bottom margin is inherited from the current container. Normally this will be 0.5em.
Syntax:
{{flatlist}} *cat *dog *horse *cow *sheep *pig {{endflatlist}}
Alternative syntax:
{{flatlist | *cat *dog *horse *cow *sheep *pig }}
Syntax for ordered lists:
{{flatlist}} #first #second #third #fourth #fifth #sixth {{endflatlist}}
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
Examples
- cat
- dog
- horse
- cow
- sheep
- pig
- kitten
- puppy
- foal
- calf
- lamb
- piglet
- first
- second
- third
- fourth
- fifth
- sixth