Template:Flatlist/doc: Difference between revisions

From escforumwiki
Jump to navigation Jump to search
Line 13: Line 13:
{{endflatlist}}
{{endflatlist}}
The bottom margin is inherited from the current container. Normally this will be 0.5em. This template can be used with or without {{tl|endflatlist}}.
The bottom margin is inherited from the current container. Normally this will be 0.5em. This template can be used with or without {{tl|endflatlist}}.
For navigation boxes, one can set {{para|listclass | hlist}}, and achieve the same styling without using this template.


===Parameters===
===Parameters===

Revision as of 22:08, 10 November 2011

Usage

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

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

For navigation boxes, one can set |listclass = hlist, and achieve the same styling without using this template.

Parameters

Syntax:

{{flatlist |
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
}}

Alternative syntax:

{{flatlist}}
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
{{endflatlist}}

Syntax for ordered lists:

{{flatlist |
# [[first]]
# [[second]]
# [[third]]
# [[fourth]]
# [[fifth]]
# [[sixth]]
}}

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