跳至內容

模板:Plainlist

Chók-cê̤ṳ Wikipedia
[káng] [gāi] [sṳ̄] [purge] Documentation icon 模板其說明文檔

模板:High-use

This template provides a WCAG/ISO-standards-compliant accessible alternative to <br /> separated lists, per WP:UBLIST and WP:PLIST

{{plainlist}} starts a plain (i.e. unbulleted) list, such as:

It uses proper HTML list markup, which is more standards-compliant and more accessible than separating list items with @Br and S:. Detailed reasons for using this template can be found at WP:UBLIST.

This template can be used with or without {{endplainlist}}. It is an alternative to {{unbulleted list}}, which performs the same function in a more concise but less wiki-style manner. Note that {{unbulleted list}} will work inside image captions, whereas {{plainlist}} does not.

Markup Renders as
{{plainlist|
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
}}

Alternative syntax

[Gāi nguòng-mā]
Markup Renders as
{{plainlist}}
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
{{endplainlist}}

Parameters

[Gāi nguòng-mā]

模板:Format TemplateData

Controlling line-breaking

[Gāi nguòng-mā]

Template {{nbsp}} may be used with {{wbr}} and {{nowrap}} to control line-breaking in bulletless lists, to prevent wrapped long entries from being confused with multiple entries. See Template:Wbr/doc#Controlling line-breaking in infoboxes for details.

Technical details

[Gāi nguòng-mā]

{{Plainlist}} works by constructing a div with the CSS class "plainlist" which has the styles listed in Template:Plainlist/styles.css.

Wikitext Expanded template HTML
{{Plainlist|
* Example 1
* Example 2
* Example 3
}}
模板:Nowiki2
<div class="plainlist">
<ul>
<li>Example 1</li>
<li>Example 2</li>
<li>Example 3</li>
</ul>
</div>

Redirects

[Gāi nguòng-mā]

模板:Navbox top

Horizontal list
{{hlist}}
{{hlist |item1 |item2 |...}}
  • item1
  • item2
  • ...
Horizontal list
{{flatlist}}
{{flatlist|
* item1
* item2
* ...}}
  • item1
  • item2
  • ...
Horizontal list
{{cslist}}
{{cslist |item1 |item2 |...}}

模板:Cslist

{{bold list}}
{{bold list |item1 |item2 |...}}

模板:Bold list

Bulleted list
{{bulleted list}}
{{bulleted list |item1 |item2 |...}}
  • item1
  • item2
  • ...
Numeric ordered list
{{ordered list}}
{{Ordered list |first |second |...}}
  1. first
  2. second
  3. ...
Alphabetic ordered list
{{ordered list}}
{{Ordered list |list_style_type=lower-alpha |first |second |...}}
  1. first
  2. second
  3. ...
Unbulleted list
{{unbulleted list}}
{{unbulleted list |item1 |item2 |...}}
  • item1
  • item2
  • ...
Unbulleted list
{{plainlist}}
{{plainlist|
* item1
* item2
* ...}}
  • item1
  • item2
  • ...
Glossary or definition list
{{glossary}}
(glossary, description, definition, association)
{{glossary}}

{{term|first term}}{{defn|first description}}
模板:Tnull模板:Tnull
模板:Tnull模板:Tnull
{{glossary end}}

模板:Glossary 模板:Term模板:Defn 模板:Term模板:Defn 模板:Term模板:Defn 模板:Glossary end

Bulleted list to flow around an image
{{flowlist}}
[[File:Bad Title Example.png|left|thumb|100px]]

{{flowlist|
*item1
*item2
*...}}

  • item1
  • item2
  • ...
Ordered list in columns
{{columns-list}}
{{columns-list|colwidth=5em|
# first
# second
# third
# ...}}
  1. first
  2. second
  3. third
  4. ...

模板:Navbox bottom 模板:Sandbox other