ފަންވަތް:Plainlist/doc
This is a documentation subpage for ފަންވަތް:Plainlist. It contains usage information, categories and other content that is not part of the original ފަންވަތް page. |
ފަންވަތް:Cascade-protected template
This template is used on approximately 405,000 pages, or roughly 3263% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This template uses TemplateStyles: |
This template provides a WCAG/ISO-standards-compliant accessible alternative to <br />
separated lists, per WP:UBLIST and WP:PLIST
Usage
[އުނިއިތުރު ގެންނަވާ]{{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 />
. Detailed reasons for using this template can be found at WP:UBLIST.
{{plainlist}} does not.
Examples
[އުނިއިތުރު ގެންނަވާ]Markup | Renders as |
---|---|
{{plainlist| * [[cat]] * [[dog]] * [[horse]] * [[cow]] * [[sheep]] * [[pig]] }} |
|
Alternative syntax
[އުނިއިތުރު ގެންނަވާ]Markup | Renders as |
---|---|
{{plainlist}} * [[cat]] * [[dog]] * [[horse]] * [[cow]] * [[sheep]] * [[pig]] {{endplainlist}} |
|
Parameters
[އުނިއިތުރު ގެންނަވާ]Controlling line-breaking
[އުނިއިތުރު ގެންނަވާ]{{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 ފަންވަތް:Slink for details.
Technical details
[އުނިއިތުރު ގެންނަވާ]{{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
[އުނިއިތުރު ގެންނަވާ]{{Startplainlist}}
See also
[އުނިއިތުރު ގެންނަވާ]{{unbulleted list}} – essentially the same but uses | ... | ... | ...
instead of |* ... * ... * ...
{{hlist}} (replacements for comma- or dash-separated lists)
{{bulleted list}}
{{ordered list}}
- Template:Infobox person#Inline lists § Notes for more information on creating lists within the Infobox family of templates, with examples in the following § Notes