Log in

Forum:Hlist template is bad

From PathfinderWiki
Revision as of 10:38, 8 March 2015 by Oznogon (talk | contribs) (Moving tangent to workshop)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Forums: Workshop > Hlist template is bad

From Forum:Inline indexes?:
it seems our documentation for HLIST is wrong, which is partly why I ended up hating it (above). Our documentation says "pass the whole list", but the actual documentation is "pass the list items as parameters, not the list". The fact that it works in the wiki currently (where we're passing a complete list as "the first list item") is luck - the generated output on, say, Portal:Fiction is "an html list with one item, which itself is an html list" which is "wrong".

When I use the WP documentation for hlist (passed piped items instead of passing a whole list), the generated markup is better/acceptable:

  — User:Morbus Iff

Context: The horizontal list is already a CSS class (.hlist in MediaWiki:Common.css) and can be used without a template. The {{hlist}} template was pulled from the last version on WP before they switched theirs to Lua. Documentation was probably partially copied from a different version and partially due to me not interpreting the code correctly.

Updating the hlist template documentation now. I think a properly functioning and well-documented {{hlist}} template could be useful, but if we want to axe the template and replace it with some other workflow, we can.