Difference between revisions of "Template:Flatlist/doc"

From Stoneshard wiki
Jump to navigation Jump to search
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...")
 
m (1 revision imported)
 
(No difference)

Latest revision as of 22:07, 21 November 2021

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.