This template provides a WCAG/ISO-standards-compliant accessible alternative to comma- or dash- (or other single character-) separated lists, per WP:FLATLIST and WP:HLIST.
{{flatlist}} starts a horizontal list, such as:
This template can be used with or without {{endflatlist}}. 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.
{{flatlist| * [[kucing]] * [[asu]] * [[jaran]] * [[sapi]] * [[wedhus gembel]] * [[babi]] }}
produces:
{{startflatlist}} * [[kucing]] * [[asu]] * [[jaran]] * [[sapi]] * [[wedhus gembel]] * [[babi]] {{endflatlist}}
produces:
{{flatlist| # [[first]] # [[second]] # [[third]] # [[fourth]] # [[fifth]] # [[sixth]] }}
produces:
|style=border:solid 1px silver; background:lightyellow
|indent=2
This template uses the .hlist
CSS class defined in 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. Some of the CSS used is not compatible with all browsers, notably Internet Explorer 6 and 7.
Dhokumèntasi ing ndhuwur katranklusi saka Cithakan:Flatlist/doc. (besut | sujarah) Pambesut bisa njajal-jajal ing kaca bak wedhi (gawé | turunan) lan testcases (gawé) cithakan iki. Mangga tambahana kategori nyang anak kaca /doc. Anak kaca cithakan iki. |