PathfinderWiki
Log in

Template:Hlist

From PathfinderWiki
Information icon.svg

This template employs some extremely complicated or esoteric features of template syntax.
Please do not attempt to alter it unless you are certain that you understand the setup and are prepared to repair/revert any consequent collateral damage if the results are unexpected. Any experiments should be conducted in the sandbox or your user space.

Template documentation (for the above template, sometimes hidden or invisible)

Contents

{{hlist}} 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 {{hlist}}. Use {{flatlist}} or apply the .hlist CSS class.

To use horizontal lists in navboxes, see Template:Navbox/doc. To view the .hlist class, see MediaWiki:Common.css.

Usage

{{hlist
| List item 1
| List item 2
| List item 3
| List item 4
...
}}

{{hlist}} also takes some optional styling parameters:

class (optional)
A CSS class to apply to the entire list, specifically in the <div> 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 <div>, <ul>, all <li>, and per-item <li> tags, respectively.

Example

{{hlist |
| [[Aroden]]
| [[Desna]]
| [[Rovagug]]
| [[Zyphus]]
}}

results in:

For transcluded lists using wiki markup, consider {{flatlist}}.


Visit Template:Hlist/doc to edit this text! (How does this work?)