Open main menu

Changes

Template:HTML lists

4,392 bytes added, 13:29, 15 December 2018
add cslist
{{navbox
|name=Template:HTML lists
|title=HTML lists
|state=<includeonly>collapsed</includeonly>

|above = More information: {{hlist
| [[Help:List]]
| [[WP:List dos and don'ts]]
| [[WP:Manual of Style/Embedded lists]]
| {{section link|WP:Manual of Style/Accessibility#Lists}}
| [[WP:WikiProject Lists]]
}}

| group1=Flat
| list1=<nowiki />
{{{!}}
{{!}}-
! class="navbox-group" style="font-weight: normal; width:25em; text-align:center;" {{!}} {{mono|{{tl|hlist}}}}
! rowspan=3 style="width:2em; background-color:transparent;" {{!}}
! class="navbox-group" style="font-weight: normal; width:25em; text-align:center;" {{!}} {{mono|{{tl|flatlist}}}}
! rowspan=3 style="width:2em; background-color:transparent;" {{!}}
! class="navbox-group" style="font-weight: normal; width:25em; text-align:center;" {{!}} {{mono|{{tl|cslist}}}}
{{!}}-
{{!}} style="vertical-align: top;" {{!}}
{{tlx|hlist |item1&nbsp;|item2&nbsp;|...}}
{{!}} style="vertical-align: top;" {{!}}
{{tlx|flatlist|<br />
<nowiki />* item1<br />
<nowiki />* item2<br />
<nowiki />* ...<br />
}}
{{!}} style="vertical-align: top;" {{!}}
{{tlx|cslist |item1&nbsp;|item2&nbsp;|...}}
{{!}}-
{{!}}<hr />
{{hlist |item1 |item2 |...}}
{{!}} style="vertical-align: top;" {{!}}
<hr />
{{flatlist|
* item1
* item2
* ...
}}
{{!}}<hr />
{{cslist |item1 |item2 |...}}
{{!}}}
| group3 =Bulleted
| list3 ={{{!}}
{{!}}-
! class="navbox-group" style="font-weight: normal; width:25em; text-align:center;" {{!}} {{mono|{{tl|bulleted list}}}}
{{!}}-
{{!}}{{tlx|bulleted list |item1&nbsp;|item2&nbsp;|...}}
{{!}}-
{{!}}<hr />
{{bulleted list |item1 |item2 |...}}
{{!}}}

| group5 =Unbulleted
| list5 =<nowiki />
{{{!}}
{{!}}-
! class="navbox-group" style="font-weight: normal; width:25em; text-align:center;" {{!}} {{mono|{{tl|unbulleted list}}}}
! rowspan=3 style="width:2em; background-color:transparent;" {{!}}
! class="navbox-group" style="font-weight: normal; width:25em; text-align:center;" {{!}} {{mono|{{tl|plainlist}}}}
{{!}}-
{{!}} style="vertical-align: top;" {{!}}
{{tlx|unbulleted list |item1&nbsp;|item2&nbsp;|...}}
{{!}} style="vertical-align: top;" {{!}}
{{tlx|plainlist|<br />
<nowiki />*item1<br />
<nowiki />*item2<br />
<nowiki />*...<br />
}}
{{!}}-
{{!}}<hr />
{{unbulleted list|item1|item2|...}}
{{!}} style="vertical-align: top;" {{!}}
<hr />
{{plainlist|
*item1
*item2
*...
}}
{{!}}}

| group7 = Ordered
| list7 ={{{!}}
{{!}}-
! class="navbox-group" style="font-weight: normal; text-align:center;" {{!}} {{mono|{{tl|ordered list}}}}
{{!}}-
{{!}}{{tlx|ordered list |list_style_type{{=}}lower-alpha&nbsp;|first&nbsp;|second&nbsp;|...}}
{{!}}-
{{!}}<hr />
{{ordered list|list_style_type=lower-alpha |first |second |...}}
{{!}}}

| group9 = [[Wikipedia:Manual of Style/Glossaries|Glossary]]<br />(description,<br />definition,<br />association)
| list9 ={{{!}}
{{!}}-
! class="navbox-group" style="font-weight: normal; text-align:center;" {{!}} {{mono|{{tl|glossary}}}}
{{!}}-
{{!}}{{tlx|glossary}}<br />
{{tlx|term|first term}} {{tlx|defn|first description}}<br />
{{tnull|term|second term}} {{tnull|defn|second description}}<br />
{{tnull|term|...}} {{tnull|defn|....}}<br />
{{mono|{{tl|glossary end}}}}
{{!}}-
{{!}}<hr />
{{glossary}}
{{term|first term}} {{defn|first description}}
{{term|second term}} {{defn|second description}}
{{term|...}} {{defn|....}}
{{glossary end}}
{{!}}}

| group11 = Floating
| list11={{{!}}
{{!}}-
! class="navbox-group" style="font-weight: normal; text-align:center;" {{!}} {{mono|{{tl|flowlist}}}}
{{!}}-
{{!}}<code><nowiki>[[File:Bad Title Example.png|left|thumb|100px]]</nowiki></code><br />
{{tlx|flowlist|<br />*item1<br />*item2<br />*...<br />}}
{{!}}-
{{!}}<hr />
[[File:Bad Title Example.png|left|thumb|100px]]
{{flowlist|
*item1
*item2
*...
}}
{{!}}}

| group15 = Multi-column
| list15 ={{{!}}
{{!}}-
! class="navbox-group" style="font-weight: normal; text-align:center;" {{!}} {{mono|{{tl|multi-column numbered list}}}}
{{!}}-
{{!}}
{{tlx|multi-column numbered list |first&nbsp;|second&nbsp;|...}}
{{!}}-
{{!}}<hr />
This table-based template does not work nested inside other templates, only in the main body of a page. Do not attempt to use it in [[WP:Manual of Style/Infoboxes|infoboxes]], [[Wikipedia:Categories, lists, and navigation templates#Navigation templates|navboxes]], etc.
{{!}}}

|below = {{cl|List templates}}
}}<!--

--><noinclude>{{documentation}}</noinclude>
Anonymous user