Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Plainlist/doc: Difference between revisions

Template page
m Add more information.
m Convert note to regular text. Change external link to Interwiki link.
Line 1: Line 1:
; Description
; Description
: This template is used as an accessible alternative to {{tag|br|o}} or {{tag|br|s}} separated lists, which should not be used<ref group=note>Alternatively the class "plainlist" could be applied directly to [[Wikipedia:HTML element#Block elements|block-level elements]].</ref>.  
: This template is used as an accessible alternative to {{tag|br|o}} or {{tag|br|s}} separated lists, which should not be used.
 
: Alternatively the class "plainlist" could be applied directly to [[Wikipedia:HTML element#Block elements|block-level elements]].


; Dependencies:
; Dependencies:
Line 55: Line 57:
; Technical details
; Technical details
: {{T|Plainlist}} works by constructing a [[:Wikipedia:div and span|div]] with the [[:Wikipedia:CSS|CSS]] class "plainlist" which has the styles listed in [[MediaWiki:Common.css]].
: {{T|Plainlist}} works by constructing a [[:Wikipedia:div and span|div]] with the [[:Wikipedia:CSS|CSS]] class "plainlist" which has the styles listed in [[MediaWiki:Common.css]].
; Notes
<references group=note />


; See also:
; See also:
:* [[Template:Sidebar]]
:* [[Template:Sidebar]]
:* [https://www.mediawiki.org/wiki/Template:Plainlist Mediawiki Plainlist]
:* [[:Mediawikiwiki:Template:Plainlist|Mediawiki Plainlist]]
:* [https://en.wikipedia.org/wiki/Template:Plainlist Wikipedia Plainlist]
:* [[:Wikipedia:Template:Plainlist|Wikipedia Plainlist]]


<includeonly>[[Category:Formatting templates]]</includeonly>
<includeonly>[[Category:Formatting templates]]</includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 08:48, 12 August 2023

Description
This template is used as an accessible alternative to <br> or <br /> separated lists, which should not be used.
Alternatively the class "plainlist" could be applied directly to block-level elements.
Dependencies
Uses
plainlist class in Common.css
Used by
Syntax
{{Plainlist|<list>|<class= class>}}
Parameters
list
A wiki-markup list.
class
Additional class(es), beside the built in class "plainlist", to apply to list.
Sample output
{{plainlist| * [[Cormorant]] * [[Stratios]] * [[Astero]] * [[Paladin]] }}
gives ...
Technical details
{{Plainlist}} works by constructing a div with the CSS class "plainlist" which has the styles listed in MediaWiki:Common.css.
See also