:Category:WPSHIPS:Infobox list errors
{{Tracking category}}
class="wikitable floatright"
|+list comparison !unordered list !! plainlist !! ship infobox list |
* item 1
|{{plainlist|* item 1
|{{#invoke:WPSHIPS utilities|unbulleted_list|* item 1
|
plainlist
class and the templates {{tlx|plainlist}} and {{tlx|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 {{tag|br|s}} line break HTML tags and the use of {{tld|plainlist}} and {{tld|unbulleted list}} templates. Problems with these methods are:
- use of {{tag|br|s}} 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 {{tld|plainlist}} and {{tld|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:
class="wikitable"
|+error messages and their meanings | ||
message | meaning | comments |
---|---|---|
list error: <br /> list
|The parameter value is plain text that includes {{tag|br|s}} markup |When creating vertical lists, a common mistake that editors often make is to use line-break tags ({{tag|br|s}}) instead of proper list markup. Vertical lists made with line-break tags should be replaced with proper unordered ( | ||
list error: |The parameter value is plain text that includes {{tlx|clear}} template (or an alias like {{tlx|br}}) |When creating vertical lists, a common mistake that editors often make is to use {{tnull|br}} templates instead of proper list markup. Vertical lists made with {{tnull|br}} should be replaced with proper unordered ( | ||
list error: mixed text and list
|the parameter value is plain text followed by an unordered list |Plain text, commonly marked up as bold, italic, or both, is often used to mimic the 'term' portion of description lists ( | ||
list error: too many * at start of list
|improper first list-item markup: |In the ship infoboxen, the first item of an unordered list is expected to begin with a single | ||
list error: list item missing markup
|the parameter value has a line that does not begin with list-item markup (one or more |Ship infoboxen support only one list per parameter and do not support a mix of list and plain text. Each item of an unordered list is expected to have its own line and to begin with a | ||
list error: empty list item
|the parameter value begins with list-item markup (one or more |The error message occurs when the list item is truly empty (only a | ||
list error: mixed list type
|an unordered list item begins with definition list item markup ( |Ship infoboxen do not support a mix of list types. This error arises when the first non-white-space character following the | ||
list error: too many asterisks
|indent by more than one step: |For proper rendering both inside and outside of ship infoboxen, the number of indents associated with unordered list may only increase by a step of one. Trim the number of |
{{CatAutoTOC}}