Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Examples  



2.1  Alternative syntax  







3 Parameters  



3.1  Controlling line-breaking  







4 Technical details  





5 Redirects  





6 See also  














Template:Plainlist






Afrikaans
Anarâškielâ
ि
Аԥсшәа
العربية
Asturianu
Avañe'
Авар
Azərbaycanca
تۆرکجه
Basa Bali
Bamanankan

 / Bân-lâm-gú
Беларуская
Беларуская (тарашкевіца)

Български
Bosanski
Brezhoneg
Буряад
Català
Cebuano
Čeština
Chi-Chewa
ChiShona
ChiTumbuka
Dansk
الدارجة

Eesti
Ελληνικά
Español
Esperanto
Euskara
فارسی
Føroyskt
Français
Galego
ГӀалгӀай

/Hak-kâ-ngî

Hausa
Հայերեն
Hrvatski
Bahasa Hulontalo
Igbo
Ilokano
Bahasa Indonesia
Ирон
IsiZulu
Íslenska
Jawa

Қазақша
Kiswahili
Kurdî
Ladin

Latviešu
Lietuvių
Magyar
ि
Македонски
Māori


مصرى

Bahasa Melayu
 / Mìng-dĕ̤ng-nḡ
Mirandés
Монгол

Nederlands


Norsk bokmål
Norsk nynorsk
ି
Oʻzbekcha / ўзбекча

Pangasinan
پښتو

Português
Română
Русский


Scots
Shqip

Simple English
سنڌي
Slovenčina
Slovenščina
Soomaaliga
کوردی
Српски / srpski
Srpskohrvatski / српскохрватски
Sunda
Suomi
Svenska
Tagalog
ி
Taqbaylit
Татарча / tatarça
 


Türkçe
Tyap
Українська
اردو
Tiếng Vit
Wayuunaiki

ייִדיש


 
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
MediaWiki
Meta-Wiki
Wikibooks
Wikidata
Wikifunctions
Wikisource
Wikiversity
Wikivoyage
Wiktionary
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Startplainlist)

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:

  • dog
  • horse
  • cow
  • sheep
  • pig
  • 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.

    This template can be used with or without {{endplainlist}}. It is an alternative to {{unbulleted list}}, which performs the same function in a more concise but less wiki-style manner. Note that {{unbulleted list}} will work inside image captions, whereas {{plainlist}} does not.

    Examples

    Markup Renders as
    {{plainlist|
    * [[cat]]
    * [[dog]]
    * [[horse]]
    * [[cow]]
    * [[sheep]]
    * [[pig]]
    }}
    
  • horse
  • cow
  • sheep
  • pig
  • Alternative syntax

    Markup Renders as
    {{plainlist}}
    * [[cat]]
    * [[dog]]
    * [[horse]]
    * [[cow]]
    * [[sheep]]
    * [[pig]]
    {{endplainlist}}
    
  • horse
  • cow
  • sheep
  • pig
  • Parameters

    This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Plainlist in articles based on its TemplateData.

    TemplateData for Plainlist

    This template provides a WCAG/ISO standards–compliant accessible alternative to <br />-separated lists, per WP:UBLIST and WP:PLIST. 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.
    List content1

    If supplied, the list, as a normal bulleted list. (Every line should start with an asterisk. No blank lines between lines.) See template page for how this works otherwise.

    CSS classesclass

    Adds a CSS class to the containing div.

    Default
    The class "plainlist" is always applied.
    Custom CSSstyle

    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
    border:solid 1px silver; background:lightyellow
    Indent levelindent

    Indents the list by a number of standard indents (one indent being 1.6em), particularly handy for inclusion in an indented discussion thread.

    Example
    2

    This template provides a WCAG/ISO standards–compliant accessible alternative to <br />-separated lists, per WP:UBLIST and WP:PLIST. 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.

    Template parameters

    ParameterDescriptionTypeStatus
    List content1

    If supplied, the list, as a normal bulleted list. (Every line should start with an asterisk. No blank lines between lines.) See template page for how this works otherwise.

    Contentsuggested
    CSS classesclass

    Adds a CSS class to the containing div.

    Default
    The class "plainlist" is always applied.
    Stringoptional
    Custom CSSstyle

    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
    border:solid 1px silver; background:lightyellow
    Stringoptional
    Indent levelindent

    Indents the list by a number of standard indents (one indent being 1.6em), particularly handy for inclusion in an indented discussion thread.

    Example
    2
    Numberoptional

    Controlling line-breaking

    Template {{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 Template:Wbr/doc § Controlling line-breaking in infoboxes 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
    }}
    
    '"`UNIQ--templatestyles-00000015-QINU`"'<div class="plainlist " >
    * Example 1
    * Example 2
    * Example 3
    
    </div>
    
    <div class="plainlist">
    <ul>
    <li>Example 1</li>
    <li>Example 2</li>
    <li>Example 3</li>
    </ul>
    </div>
    

    Redirects

    See also


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Plainlist&oldid=1208348731"

    Categories: 
    Templates using TemplateStyles
    List formatting and function templates
    Semantic markup templates
    Typing-aid templates
    Hidden categories: 
    Wikipedia fully protected templates
    Templates using TemplateData
    Navigational boxes without horizontal lists
     



    This page was last edited on 17 February 2024, at 04:49 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki