Changes

Jump to: navigation, search

Template:Plainlist/doc

1,806 bytes added, 02:35, 3 February 2022
Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> ===Usage=== <nowiki>{{</nowiki>Plainlist<nowiki>|}}</nowiki> starts a plain..."
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

===Usage===
<nowiki>{{</nowiki>Plainlist<nowiki>|}}</nowiki> starts a plain, or unbulleted, list, such as:

{{Plainlist|
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
}}

It uses proper HTML list markup, which is more standards-compliant and more accessible then separating list items with {{tag|br|s}}.

This template can be used with or without {{tl|endplainlist}}. It is intended to replace {{Tl|Unbulleted list}}, which performs the same function, but in a more cumbersome manner.

===Examples===
<pre><nowiki>
{{plainlist |
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
}}
</nowiki></pre>

{{plainlist |
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
}}

;Alternative syntax:
<pre><nowiki>
{{plainlist}}
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
{{endplainlist}}
</nowiki></pre>

{{plainlist}}
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
{{endplainlist}}

===Parameters===
* '''indent''' – indents the list by a number of standard indents (one indent being 1.6em), particularly handy for inclusion in an indented discussion thread.
::Example: {{para|<var>indent</var>|<var>2</var>}}
* '''style''' – adds CSS style options. Complex styles should not be used in articles (per [[wp:deviations]]) but may be acceptable on user, project, and talk pages.
::Example: {{para|<var>style</var>|<var>border:solid 1px silver; background:lightyellow</var>}}

===Related pages===
* {{tl|endplainlist}}
* {{tl|flatlist}}

== See also ==
{{Navbox lists}}

<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Typing-aid templates]]
[[Category:Wikipedia list formatting templates‎]]
</includeonly>

Navigation menu

MediaWiki spam blocked by CleanTalk.