Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





Template:Plainlist





Template  

Talk  



Language  

Watch  

View source  





Shortcut

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]]
    }}
    
  • dog
  • horse
  • cow
  • sheep
  • pig
  • Alternative syntax

    Markup Renders as
    {{plainlist}}
    * [[cat]]
    * [[dog]]
    * [[horse]]
    * [[cow]]
    * [[sheep]]
    * [[pig]]
    {{endplainlist}}
    
  • dog
  • 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"
     



    Last edited on 17 February 2024, at 04:49  


    Languages

     


    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

    ייִדיש


     
     

    Wikipedia


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

    Content is available under CC BY-SA 4.0 unless otherwise noted.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Terms of Use

    Desktop