Template:Flatlist

From Call of Duty Esports Wiki
Revision as of 21:42, 12 December 2014 by Dan1691 (talk | contribs) (Created page with "<div class="hlist" style="margin-left:{{{indent|0}}}em;{{{style|}}}">{{#if:{{{1|}}}|<nowiki /> {{{1}}} </div>}}<noinclude></div> {{documentation}} </noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

(view - edit)

Documentation

Usage

{{Flatlist}} starts a horizontal list, such as:

  • kitten
  • dog
  • horse
  • cow
  • sheep
  • pig

The bottom margin is inherited from the current container. Normally this will be 0.5em. This template can be used in tandem with {{endflatlist}}.

Parameters

Syntax:

{{flatlist}}
* kitten
* 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

  • indent – adds left indent by a number of em-spaces, particularly handy for inclusion in an indented discussion thread.
Example: |indent=2
  • style – adds CSS style options. Complex styles should not be used in articles but may be acceptable on user, project, and talk pages.
Example: |style=border:solid 1px silver; background:lightyellow

See also

Adapted from Liquipedia