Snippets/Horizontal lists

Description
Enables the use of horizontal lists, inline formatted, semantically valid HTML lists using the   class.

Use
Using horizontal lists only requires adding the  class to a container element that holds a HTML list. Lists may be in both HTML and wiki markup. List items are non-wrapping by default, but can be allowed to wrap by adding the  class.

Note
hlist formatting will break if the resulting HTML lacks a breakable character between list items. This happens when the following conditions are true: In such cases, building lists with  using HTML instead of wiki markup will work around this problem. See also 39617.
 * 1) The list is made using wiki markup (where HTML is built by parser.php)
 * 2) HTMLTidy is disabled or unavailable (such as on Special: pages)

Code
Place the folowing code in :

Ensure something like the following exists in :

Then add (or ensure is present) the following code in :