Difference between revisions of "Template:Plainlist/doc"

From Ephemeral Film Wiki
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} == See Also == * {{Purge}} * Template:Plainlist/styles.css == Template Data ==")
 
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
== See Also ==
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{Uses TemplateStyles|Template:Plainlist/styles.css}}
This template provides a [[:en:Web Content Accessibility Guidelines|WCAG]]/ISO-standards-compliant accessible alternative to {{tag|br|s}} separated lists, which should not be used.
 
== Usage ==
{{tlx|plainlist}} starts a plain (i.e. unbulleted) list. 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 [[:en:WP:UBLIST]].
 
== TemplateData ==
{{TemplateData header}}
<templatedata>
{
"description": "Used to create plain (i.e. unbulleted) lists.",
"format": "inline",
"params": {
"1": {
"label": "Content",
"description": "The list to wrap.",
"suggested": true,
"type": "content"
},
"class": {
"label": "Extra Classes",
"description": "Extra class names to add to the `class` attribute.",
"type": "string"
}
},
"paramOrder": [
"class",
"1"
]
}
</templatedata>
 
== See also ==
* {{tlx|Unbulleted list}} – Uses [[Module:List]]
* {{Purge}}
* {{Purge}}
* [[Template:Plainlist/styles.css]]
* [[Template:Plainlist/styles.css]]
== Template Data ==
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Formatting templates]]
}}</includeonly>

Latest revision as of 15:45, 26 February 2022

- - -

There is a documentation subpage housing the metadata about parent template: Plainlist.

This template provides a WCAG/ISO-standards-compliant accessible alternative to <br /> separated lists, which should not be used.

Usage

{{plainlist}} starts a plain (i.e. unbulleted) list. 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 en:WP:UBLIST.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.

TemplateData for Plainlist

Used to create plain (i.e. unbulleted) lists.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Extra Classesclass

Extra class names to add to the `class` attribute.

Stringoptional
Content1

The list to wrap.

Contentsuggested

See also