Template:Flatlist

From Stoneshard wiki
Revision as of 22:07, 21 November 2021 by Psojed (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template-info.png Documentation
{{flatlist}} creates a horizontal list of items separated by bullets ( • ), for example:


Optional parameters

class
Adds a CSS class to the containing div.
style
Adds CSS styling to the containing div. Complex styles should not be used in articles but may be acceptable on user, project and talk pages.
indent
Indents the list by a number of standard indents, one indent being 1.6 em. (Useful in an indented discussion thread.)

Examples

<syntaxhighlight lang="moin">

</syntaxhighlight>

produces:

Using optional parameters

<syntaxhighlight lang="moin">

</syntaxhighlight>

produces:

Technical details

This template uses the .hlist CSS class defined in MediaWiki:Common.css to generate horizontal lists. It causes ordinary html list items to be displayed inline (horizontally), where they would normally display as block elements (vertically). The class also generates the interpuncts between list items and parentheses around nested lists.