Anonymous user
Template:Plainlist/doc: Difference between revisions
m
no edit summary
Richardpruen (talk | contribs) m (1 revision imported) |
imported>Jay D. Easy mNo edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> | ||
{{ | {{High-use}} | ||
{{Uses TemplateStyles|Template:Plainlist/styles.css}} | |||
This template provides a [[Web Content Accessibility Guidelines|WCAG]]/ISO-standards-compliant accessible alternative to <code><nowiki><br /></nowiki></code> separated lists, per [[WP:UBLIST]] and [[WP:PLIST]] | This template provides a [[Web Content Accessibility Guidelines|WCAG]]/ISO-standards-compliant accessible alternative to <code><nowiki><br /></nowiki></code> separated lists, per [[WP:UBLIST]] and [[WP:PLIST]] | ||
==Usage== | == Usage == | ||
{{tl|plainlist}} starts a plain (i.e. unbulleted) list, such as: | {{tl|plainlist}} starts a plain (i.e. unbulleted) list, such as: | ||
Line 21: | Line 21: | ||
This template can be used with or without {{tl|endplainlist}}. It is an alternative to {{tl|unbulleted list}}, which performs the same function in a more concise but less wiki-style manner. Note that {{tl|unbulleted list}} will work inside image captions, whereas {{tl|plainlist}} does not. | This template can be used with or without {{tl|endplainlist}}. It is an alternative to {{tl|unbulleted list}}, which performs the same function in a more concise but less wiki-style manner. Note that {{tl|unbulleted list}} will work inside image captions, whereas {{tl|plainlist}} does not. | ||
==Examples== | == Examples == | ||
{{Markup | {{Markup | ||
|<nowiki> | |<nowiki> | ||
Line 43: | Line 43: | ||
}} | }} | ||
}} | }} | ||
=== Alternative syntax === | === Alternative syntax === | ||
{{Markup | {{Markup | ||
Line 66: | Line 67: | ||
}} | }} | ||
==Parameters== | == Parameters == | ||
{{Format TemplateData|JSON= { | {{Format TemplateData|JSON= { | ||
"params": { | "params": { | ||
Line 100: | Line 101: | ||
Template {{tlx|nbsp}} may be used with {{tlx|wbr}} and {{tlx|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. | Template {{tlx|nbsp}} may be used with {{tlx|wbr}} and {{tlx|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== | == Technical details == | ||
{{tl|Plainlist}} works by constructing a [[span and div|div]] with the [[Cascading Style Sheets|CSS]] class "plainlist" which has the | {{tl|Plainlist}} works by constructing a [[span and div|div]] with the [[Cascading Style Sheets|CSS]] class "plainlist" which has the styles listed in [[Template:Plainlist/styles.css]]. | ||
. | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 143: | Line 134: | ||
|} | |} | ||
==Redirects== | == Redirects == | ||
* {{tl|Startplainlist}} | * {{tl|Startplainlist}} | ||
==See also== | == See also == | ||
* {{tl|unbulleted list}} – essentially the same but uses <code><nowiki>| ... | ... | ...</nowiki></code> instead of <code><nowiki>|* ... * ... * ...</nowiki></code> | * {{tl|unbulleted list}} – essentially the same but uses <code><nowiki>| ... | ... | ...</nowiki></code> instead of <code><nowiki>|* ... * ... * ...</nowiki></code> | ||
* {{tl|flatlist}} and {{tl|hlist}} (replacements for comma- or dash-separated lists) | * {{tl|flatlist}} and {{tl|hlist}} (replacements for comma- or dash-separated lists) | ||
* {{tl|bulleted list}} | * {{tl|bulleted list}} | ||
* {{tl| | * {{tl|indented plainlist}} | ||
* {{tl|ordered list}} | * {{tl|ordered list}} | ||
* {{section link|Template:Infobox person#Inline lists}} for more information on creating lists within the Infobox family of templates, with examples in the following {{section link|Template:Infobox person#Examples|nopage=y}} | * {{section link|Template:Infobox person#Inline lists}} for more information on creating lists within the Infobox family of templates, with examples in the following {{section link|Template:Infobox person#Examples|nopage=y}} |