Template:HTML lists: Difference between revisions
en>SMcCandlish ("listing" for "list" isn't idiomatic in English) |
en>SMcCandlish (Overhaul) |
||
Line 2: | Line 2: | ||
|name=Template:Navbox lists | |name=Template:Navbox lists | ||
|title=HTML lists | |title=HTML lists | ||
|state= | |state=collapsed | ||
|above = {{hlist | |above = More information: {{hlist | ||
| [[Help:List]] | | [[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= | | group1=Flat | ||
| list1= <code><nowiki>{{flatlist| | | list1=<nowiki /> | ||
* item1 | {{{!}} | ||
* item2 | {{!}}- | ||
* ... | ! style="background: #D8D8FD; text-align: center; font-weight: normal;" {{!}} {{mono|{{tl|hlist}}}} | ||
}}</nowiki></code> | ! style="background: #D8D8FD; text-align: center; font-weight: normal;" {{!}} {{mono|{{tl|flatlist}}}} | ||
{{!}}- | |||
{{!}} style="vertical-align: top;" {{!}} | |||
{{tlx|hlist |item1 |item2 |...}} | |||
{{!}} style="padding-left: 2em; padding-right: 2em;" {{!}} | |||
<code style="padding-left: 0;"><nowiki>{{flatlist|</nowiki><br /> | |||
<nowiki />* item1<br /> | |||
<nowiki />* item2<br /> | |||
<nowiki />* ...<br /> | |||
<nowiki>}}</nowiki></code> | |||
{{!}}- | |||
{{!}}<hr /> | |||
{{hlist |item1 |item2 |...}} | |||
{{!}} style="padding-left: 2em; padding-right: 2em;" {{!}} | |||
<hr /> | |||
{{flatlist| | {{flatlist| | ||
* item1 | * item1 | ||
Line 25: | Line 37: | ||
* ... | * ... | ||
}} | }} | ||
{{!}}} | |||
| group3 =Bulleted | | group3 =Bulleted | ||
| list3 = | | list3 = | ||
{{tlx|bulleted list |item1 |item2 |...}}<hr /> | |||
{{bulleted list |item1 |item2 |...}} | {{bulleted list |item1 |item2 |...}} | ||
| group5 =Unbulleted | | group5 =Unbulleted | ||
| list5 = | | list5 =<nowiki /> | ||
<code><nowiki>{{ | {{{!}} | ||
{{!}}- | |||
! style="background: #D8D8FD; text-align: center; font-weight: normal;" {{!}} {{mono|{{tl|unbulleted list}}}} | |||
! style="background: #D8D8FD; text-align: center; font-weight: normal;" {{!}} {{mono|{{tl|plainlist}}}} | |||
{{!}}- | |||
{{!}} style="vertical-align: top;" {{!}} | |||
{{tnull|unbulleted list |item1 |item2 |...}} | |||
{{!}} style="padding-left: 2em; padding-right: 2em;" {{!}} | |||
<code style="padding-left: 0;"><nowiki>{{plainlist|</nowiki><br /> | |||
<nowiki />*item1<br /> | |||
<nowiki />*item2<br /> | |||
<nowiki />*...<br /> | |||
<nowiki>}}</nowiki></code> | |||
{{!}}- | |||
{{!}}<hr /> | |||
{{unbulleted list|item1|item2|...}} | {{unbulleted list|item1|item2|...}} | ||
{{!}} style="padding-left: 2em; padding-right: 2em;" {{!}} | |||
<hr /> | |||
{{plainlist| | |||
*item1 | |||
*item2 | |||
*... | |||
}} | |||
{{!}}} | |||
| group7 = Ordered | | group7 = Ordered | ||
| list7 = | | list7 ={{tlx|ordered list |list_style_type{{=}}lower-alpha |first |second |...}}<hr /> | ||
{{ordered list|list_style_type=lower-alpha|first|second|...}} | {{ordered list|list_style_type=lower-alpha |first |second |...}} | ||
| group9 = | | group9 = [[Wikipedia:Manual of Style/Glossaries|Glossary]]<br />(description,<br />definition,<br />association) | ||
| list9 = | | list9 = | ||
< | {{tlx|glossary}}<br /> | ||
</ | {{tlx|term|first term}} {{tlx|defn|first description}}<br /> | ||
{{multi-column numbered list| | {{tnull|term|second term}} {{tnull|defn|second description}}<br /> | ||
{{tnull|term|...}} {{tnull|defn|....}}<br /> | |||
{{tlx|glossary end}}<hr /> | |||
{{glossary}} | |||
{{term|first term}} {{defn|first description}} | |||
{{term|second term}} {{defn|second description}} | |||
{{term|...}} {{defn|....}} | |||
{{glossary end}} | |||
| group15 = Multi-column | |||
| list15 = | |||
{{tlx|multi-column numbered list |first |second |...}}<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}} | |below = {{cl|List templates}} |
Revision as of 12:49, 20 December 2017
File:Test Template Info-Icon - Version (2).svg Template documentation[create] [purge]