Template:Plainlist/doc: Difference between revisions
Template page
More actions
No edit summary |
Fix language-code links to use Wikipedia interwiki prefixes |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 3: | Line 3: | ||
{{Uses TemplateStyles|Template:Plainlist/styles.css}} | {{Uses TemplateStyles|Template:Plainlist/styles.css}} | ||
This template provides a [[ | This template provides a [[w:Web Content Accessibility Guidelines|WCAG]]/ISO-standards-compliant accessible alternative to {{tag|br|s}} separated lists, which should not be used. | ||
== Usage == | == Usage == | ||
{{tld| | {{tld|Plainlist}} starts a plain (i.e. unbulleted) list. <!-- apparently this does not work on the template page at Commons | ||
{{ | {{Plainlist| | ||
* [[cat]] | * [[cat]] | ||
* [[dog]] | * [[dog]] | ||
| Line 14: | Line 14: | ||
* [[sheep]] | * [[sheep]] | ||
* [[pig]] | * [[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 [[ | }}-->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 [[w:WP:UBLIST|WP:UBLIST]]. | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="wikitext"> | ||
{{ | {{Plainlist| | ||
* [[cat]] | * [[cat]] | ||
* [[dog]] | * [[dog]] | ||
| Line 26: | Line 26: | ||
* [[pig]] | * [[pig]] | ||
}} | }} | ||
</ | </syntaxhighlight> | ||
<!--{{ | <!--{{Plainlist| | ||
* [[cat]] | * [[cat]] | ||
* [[dog]] | * [[dog]] | ||