跳转到内容

Category:WPSHIPS:Infobox list errors

维基百科,自由的百科全书

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:

错误信息和含义
报错信息 含义 注解
list error: <br /> list 参数值是包含<br />标记的纯文本 在编辑垂直列表时,编辑经常犯的一个错误就是使用换行标签(<br />)而不是合适的标记列表。由换行标记构成的垂直列表应该替换为适当的无序(*)或描述(;:)列表。Line-break tags are also used for aesthetic purposes. This too is discouraged because tailoring an infobox parameter to suit your display device may not produce the same results on other readers' devices. Consider rewriting the parameter content as a single sentence or as a list of sentences. Consider using {{no wrap}} or the HTML entity &nbsp; to control when a sentence wraps to the next line.
list error: mixed text and list 参数值是跟有一个无序列表的纯文本 Plain text, commonly marked up as bold, italic, or both, is often used to mimic the 'term' portion of description lists (;: markup). When this is the case, the whole parameter value should be converted to one or more description lists. To override the bold styling normal to the 'term' portion of a description list, wrap the term in {{nobold}}.
list error: too many * at start of list improper first list-item markup: ** item text instead of * item text 在ship infoboxen中,无序列表的第一项应该以单个*开头,就像infoboxen之外的列表一样。
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 *. This error message arises when a line in the parameter does not begin with * as the first non-white-space character. Remove blank lines and add unordered list markup (*) as appropriate or convert to description list (;:).
list error: empty list item the parameter value begins with list-item markup (one or more *) but has no item text The error message occurs when the list item is truly empty (only a *) and also when all of the list item content except the * is hidden inside HTML comment markup ((<!-- -->). Remove the line, remove the comment markup, or add list item content.
list error: mixed list type an unordered list item begins with definition list item markup (*;or *:) Ship infoboxen do not support a mix of list types. This error arises when the first non-white-space character following the * is ; or :. Often used to indent a list item, : should be replaced with a * (so that the number of * at the beginning of the line is no more than one more than the preceding line). Alternately, convert the list to a description list.
list error: too many asterisks indent by more than one step: * item text followed by *** item text for example 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 * at the start of the offending list item.
这个分类中尚未包含任何页面或媒体文件。