Template:Flatlist/doc

From Stoneshard wiki
< Template:Flatlist
Revision as of 18:29, 20 June 2021 by old>Realpsojed (Created page with "{{doc/start}}__NOTOC__'''<nowiki>{{flatlist}}</nowiki>''' creates a horizontal list of items separated by bullets ( • ), for example: {{flatlist| * NPCs * Factions...")
(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.