Template:Plainlist/doc: Difference between revisions
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
Line 1:
{{Documentation subpage
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
{{#ifeq:{{FULLPAGENAME}} | Template:Plainlist | {{high-risk
{{Commons Import}}
This template provides a [[Wikipedia:Web Content Accessibility Guidelines|WCAG]]/ISO-standards-compliant accessible alternative to <code><nowiki><br /></nowiki></code> separated lists, per [[Wikipedia:WP:UBLIST]] and [[Wikipedia:WP:PLIST]]
==Usage==
Line 9 ⟶ 10:
{{plainlist|
* [[Wikipedia:cat|cat]]
* [[Wikipedia:dog|dog]]
* [[Wikipedia:horse|horse]]
* [[Wikipedia:cow|cow]]
* [[Wikipedia:sheep|sheep]]
* [[Wikipedia:pig
}}
It uses proper HTML list markup, which is more standards-compliant and more accessible than separating list items with {{tag|br|s}}. Detailed reasons for using this template can be found at [[Wikipedia:WP:UBLIST]].
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.
Line 35 ⟶ 36:
|
{{plainlist|
* [[Wikipedia:cat|cat]]
* [[Wikipedia:dog|dog]]
* [[Wikipedia:horse|horse]]
* [[Wikipedia:cow|cow]]
* [[Wikipedia:sheep|sheep]]
* [[Wikipedia:pig|pig]]
}}
}}
Line 57 ⟶ 58:
|
{{plainlist}}
* [[Wikipedia:cat|cat]]
* [[Wikipedia:dog|dog]]
* [[Wikipedia:horse|horse]]
* [[Wikipedia:cow|cow]]
* [[Wikipedia:sheep|sheep]]
* [[Wikipedia:pig|pig]]
{{endplainlist}}
}}
Line 83 ⟶ 84:
"style": {
"label": "Custom CSS",
"description": "Adds CSS style options. Complex styles should not be used in articles (per [[Wikipedia:WP:Deviations]]) but may be acceptable on user, project, and talk pages.",
"example": "border:solid 1px silver; background:lightyellow"
},
Line 93 ⟶ 94:
}
},
"description": "This template provides a WCAG/ISO-standards-compliant accessible alternative to <br /> separated lists, per [[Wikipedia:WP:UBLIST]] and [[Wikipedia:WP:PLIST]]. It uses proper HTML list markup, which is more standards-compliant and more accessible than separating list items with <br />. Detailed reasons for using this template can be found at WP:UBLIST."
} }}
Line 100 ⟶ 101:
==Technical details==
{{tl|Plainlist}} works by constructing a [[span and div|div]] with the [[Wikipedia:Cascading Style Sheets|CSS]] class "plainlist" which has the following style (see [[MediaWiki:Common.css]]):
<syntaxhighlight lang="css">
.plainlist ul {
| |||