跳至內容

分類: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.

此分類目前未包含頁面或媒體檔案。