Template:Hlist
Jump to navigation
Jump to search
[edit] [ ] File:Template-info.svg.png Template documentation
Template:Tl generates a horizontal bullet-delimited list from its parameters. It works best in situations where wiki lists (using asterisks) may not render correctly, such as image captions.
Want to make a horizontal list from an inline or transcluded wiki list? Don't use Template:Tl. Use Template:Tl or apply the Template:Xt CSS class.
To use horizontal lists in navboxes, see Template:Navbox/doc. To view the Template:Xt class, see MediaWiki:Common.css.
Usage[edit source]
{{hlist | List item 1 | List item 2 | List item 3 | List item 4 ... }}
Template:Tl also takes some optional styling parameters:
- class (optional)
- A CSS class to apply to the entire list, specifically in the Template:Xt that encloses the list.
- indent (optional)
- A numeric value to indent the list. This is multiplied by 1.6 and converted to ems. Default is 0.
- style, ul_style, li_style, li_stylen (optional)
- CSS style attributes applied to the Template:Xt, Template:Xt, all Template:Xt, and per-item Template:Xt tags, respectively.
Example[edit source]
{{hlist | | [[Aroden]] | [[Desna]] | [[Rovagug]] | [[Zyphus]] }}
results in:
For transcluded lists using wiki markup, consider Template:Tl.
The above documentation is transcluded from Template:Hlist/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |