"Template:Inline list" redirects here. For a navbox listing templates used within lines of text to mark problems needing attention, seeTemplate:Inline cleanup tags.
This template provides aWCAG/ISO-standards-compliant accessible alternative to comma- or dash- (or other single character-) separated lists, perWP:FLATLIST andMOS:HLIST.
Lists output by{{Flatlist}} and{{Hlist}} are semantically and visually identical, and differ only in the wiki-markup used to create the lists.
If this template is used with no parameters,{{endflatlist}} is required. For navigation boxes using{{navbox}}, one can set|listclass=hlist, and achieve the same styling without using this template. For image captions, list (i.e. asterisk) markup does not work, so consider using{{hlist}} instead.
Adds extra CSS properties to the containing div. Complex styles should not be used in articles (perMOS:DEVIATIONS) but may be acceptable on user, project and talk pages.
{{flatlist|indent=2|style=border:solid 1px silver; background:lightyellow; color:black;|class=nowraplinks|*[[Alpine skiing at the 1936 Winter Olympics]]*[[Alpine skiing at the 1948 Winter Olympics]]*[[Alpine skiing at the 1952 Winter Olympics]]*[[Alpine skiing at the 1956 Winter Olympics]]*[[Alpine skiing at the 1960 Winter Olympics]]*[[Alpine skiing at the 1964 Winter Olympics]]}}
This template uses the.hlistCSS class defined inTemplate:Hlist/styles.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 theinterpuncts between list items and parentheses around nested lists.