Template:Flatlist/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 58: | Line 58: | ||
:* '''indent''' – adds left indent by a number of em-spaces, particularly handy for inclusion in an indented discussion thread. | :* '''indent''' – adds left indent by a number of em-spaces, particularly handy for inclusion in an indented discussion thread. | ||
:::Example: {{para|<var>indent</var>|<var>2</var>}} | :::Example: {{para|<var>indent</var>|<var>2</var>}} | ||
:* '''style''' – adds CSS style options. Complex styles should not be used in articles but may be acceptable on user, project, and talk pages. | :* '''style''' – adds CSS style options. Complex styles should not be used in articles (per [[wp:deviations]]) but may be acceptable on user, project, and talk pages. | ||
:::Example: {{para|<var>style</var>|<var>border:solid 1px silver; background:lightyellow</var>}} | :::Example: {{para|<var>style</var>|<var>border:solid 1px silver; background:lightyellow</var>}} | ||
Revision as of 22:09, 10 November 2011
![]() | This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
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 using {{navbox}}, 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
- Example:
- style – adds CSS style options. Complex styles should not be used in articles (per wp:deviations) but may be acceptable on user, project, and talk pages.
- Example:
|style=border:solid 1px silver; background:lightyellow
- Example:
See also
- {{endflatlist}}
- {{multi-column numbered list}}
- {{nowrap begin}}/{{nowrap end}}
- {{pagelist}}