Jump to content

Category:WPSHIPS:Infobox list errors

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Trappist the monk (talk | contribs) at 13:06, 28 September 2015 (Create;). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
list comparison
unordered list plainlist ship infobox list
  • item 1
    • item 1a
  • item 2
    • item 2a
      • item 2a1
  • item 1
    • item 1a
  • item 2
    • item 2a
      • item 2a1
  • item 1
    • item 1a
  • item 2
    • item 2a
      • item 2a1

This is a tracking category for list errors in WP:SHIPS infoboxes. Lists in the various infobox templates use the common unordered list (*) markup. The templates read the list markup and produce the correct HTML for unbulleted lists. This overcomes limitations that exist in the Mediawiki:Common.css plainlist class and the templates {{plainlist}} and {{unbulleted list}}.

In the past, the WP:SHIPS infobox usage guide required unbulleted lists for reasons of limited available space and for aesthetics. Editors used a variety of other methods to create lists in infoboxes. These included <br /> line break HTML tags and the use of {{plainlist}} and {{unbulleted list}} templates. Problems with these methods are:

  • use of <br /> makes visually 'correct' lists that are not correct for those who use screen readers. See MOS:ACCESS §Vertical lists.
  • limitations in Mediawiki:Common.css, prevent {{plainlist}} and {{unbulleted list}} from correctly rendering multi-level lists

The WP:SHIPS infobox templates can detect certain list formatting errors. When those errors are detected, the page is added to this category. In some cases, an error message is rendered in place of the list. The error conditions are:

  • the parameter value is plain text that includes <br /> markup
  • improper first list-item markup: ** item text instead of * item text
  • the parameter value has a line that does not begin with list-item markup (one or more *)
  • indent by more than one step: * item text followed by *** item text for example