Template:HTML lists: Difference between revisions

From Frontierpedia, the Microsoft Agent encyclopedia
en>Ahecht
(add flowlist, use consistent formatting)
m (75 revisions imported: importing hlist)
 
(26 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{navbox
{{navbox top
|name=Template:Navbox lists  
|name= HTML lists
|title=HTML lists
|title=HTML lists
|state=<includeonly>collapsed</includeonly>
|state=<includeonly>collapsed</includeonly>
Line 11: Line 11:
| [[WP:WikiProject Lists]]
| [[WP:WikiProject Lists]]
}}
}}
 
}}
| group1=Flat
{| style="width:100%; text-align:left;"
|  list1=<nowiki />
! style="text-align:right;padding-right:0.5em;" | Flat
{{{!}}
| style="vertical-align:top; width:30%"|
{{!}}-
{| style="width:100%"
! class="navbox-group" style="font-weight: normal; width:25em; text-align:center;" {{!}} {{mono|{{tl|hlist}}}}
! style="font-weight: normal; 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}}}}
| {{tlx|hlist |item1&nbsp;|item2&nbsp;|...}}
{{!}}-
|-
{{!}} style="vertical-align: top;" {{!}}
| <hr />
{{tnull|hlist |item1&nbsp;|item2&nbsp;|...}}
{{!}} style="vertical-align: top;" {{!}}
<code style="padding-left: 0;"><nowiki>{{flatlist|</nowiki><br />
<nowiki />* item1<br />
<nowiki />* item2<br />
<nowiki />* ...<br />
<nowiki>}}</nowiki></code>
{{!}}-
{{!}}<hr />
{{hlist |item1 |item2 |...}}
{{hlist |item1 |item2 |...}}
{{!}} style="vertical-align: top;" {{!}}
|}
<hr />
| style="vertical-align:top; width:30%"|
{| style="width:100%"
! style="font-weight: normal; text-align:center;" | {{mono|{{tl|flatlist}}}}
|-
| {{tlx|flatlist|<br />* item1<br />* item2<br />* ...}}
|-
| <hr />
{{flatlist|
{{flatlist|
* item1
* item1
Line 38: Line 35:
* ...
* ...
}}
}}
{{!}}}
|}
| group3 =Bulleted
| style="vertical-align:top; width:30%"|
| list3 ={{{!}}  
{| style="width:100%"
{{!}}-
! style="font-weight: normal; text-align:center;" | {{mono|{{tl|cslist}}}}
! class="navbox-group" style="font-weight: normal; width:25em; text-align:center;" {{!}} {{mono|{{tl|bulleted list}}}}
|-
{{!}}-
| {{tlx|cslist |item1&nbsp;|item2&nbsp;|...}}
{{!}}{{tnull|bulleted list |item1&nbsp;|item2&nbsp;|...}}
|-
{{!}}-
| <hr />
{{!}}<hr />
{{cslist |item1 |item2 |...}}
|-
!style="font-weight: normal; text-align:center;" | {{mono|{{tl|bold list}}}}
|-
| {{tlx|bold list |item1&nbsp;|item2&nbsp;|...}}
|-
| <hr />
{{bold list |item1 |item2 |...}}
|}
|-
! style="text-align:right;padding-right:0.5em;" | Bulleted and Ordered
| style="vertical-align:top;"|
{| style="width:100%"
! style="font-weight: normal; text-align:center;" | {{mono|{{tl|bulleted list}}}}
|-
| {{tlx|bulleted list |item1&nbsp;|item2&nbsp;|...}}
|-
| <hr />
{{bulleted list |item1 |item2 |...}}
{{bulleted list |item1 |item2 |...}}
{{!}}}
|}
 
| style="vertical-align:top;"|
| group5 =Unbulleted
| style="vertical-align:top;"|
| list5 =<nowiki />
{| style="width:100%"
{{{!}}
! style="font-weight: normal; text-align:center;" | {{mono|{{tl|ordered list}}}}
{{!}}-
|-
! class="navbox-group" style="font-weight: normal; width:25em; text-align:center;" {{!}} {{mono|{{tl|unbulleted list}}}}
| {{tlx|Ordered list |list_style_type{{=}}lower-alpha&nbsp;|first&nbsp;|second&nbsp;|...}}
! rowspan=3 style="width:2em; background-color:transparent;" {{!}}
|-
! class="navbox-group" style="font-weight: normal; width:25em; text-align:center;" {{!}} {{mono|{{tl|plainlist}}}}
| <hr />
{{!}}-
{{Ordered list |list_style_type=lower-alpha |first |second |...}}
{{!}} style="vertical-align: top;" {{!}}
|}
{{tnull|unbulleted list |item1&nbsp;|item2&nbsp;|...}}
|-
{{!}} style="vertical-align: top;" {{!}}
! style="text-align:right;padding-right:0.5em;" | Unbulleted
<code style="padding-left: 0;"><nowiki>{{plainlist|</nowiki><br />
| style="vertical-align:top"|
<nowiki />*item1<br />
{| style="width:100%"
<nowiki />*item2<br />
! style="font-weight: normal; text-align:center;" | {{mono|{{tl|unbulleted list}}}}
<nowiki />*...<br />
|-
<nowiki>}}</nowiki></code>
| {{tlx|unbulleted list |item1&nbsp;|item2&nbsp;|...}}
{{!}}-
|-
{{!}}<hr />
| <hr />
{{unbulleted list|item1|item2|...}}
{{unbulleted list|item1|item2|...}}
{{!}} style="vertical-align: top;" {{!}}
|}
<hr />
| style="vertical-align:top"|
{| style="width:100%"
! style="font-weight: normal; text-align:center;" | {{mono|{{tl|plainlist}}}}
|-
| {{tlx|plainlist|<br />* item1<br />* item2<br />* ...}}
|-
| <hr />
{{plainlist|
{{plainlist|
*item1
* item1
*item2
* item2
*...
* ...
}}
}}
{{!}}}
|}
 
| style="vertical-align:top"|
| group7 = Ordered
{| style="width:100%"
| list7 ={{{!}}
! style="font-weight: normal; text-align:center;" | {{mono|{{tl|glossary}}}}<br />([[Wikipedia:Manual of Style/Glossaries|glossary]], description, definition, association)
{{!}}-
|-
! class="navbox-group" style="font-weight: normal; text-align:center;" {{!}} {{mono|{{tl|ordered list}}}}
| {{tlx|glossary}}<br />
{{!}}-
{{tlx|term|first term}} {{tlx|defn|first description}}<br />
{{!}}{{tnull|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}}}}
{{!}}-
{{!}}{{tnull|glossary}}<br />
{{mono|{{tl|term|first term}}}} {{mono|{{tl|defn|first description}}}}<br />
{{tnull|term|second term}} {{tnull|defn|second description}}<br />
{{tnull|term|second term}} {{tnull|defn|second description}}<br />
{{tnull|term|...}} {{tnull|defn|....}}<br />
{{tnull|term|...}} {{tnull|defn|....}}<br />
{{mono|{{tl|glossary end}}}}
{{mono|{{tl|glossary end}}}}
{{!}}-
|-
{{!}}<hr />
| <hr />
{{glossary}}
{{glossary}}
{{term|first term}} {{defn|first description}}
{{term|first term}} {{defn|first description}}
Line 106: Line 113:
{{term|...}} {{defn|....}}
{{term|...}} {{defn|....}}
{{glossary end}}
{{glossary end}}
{{!}}}
|}
 
|-
| group11 = Floating
! style="text-align:right;padding-right:0.5em;" | Other
| list11={{{!}}
| style="vertical-align:top"|
{{!}}-
{| style="width:100%"
! class="navbox-group" style="font-weight: normal; text-align:center;" {{!}} {{mono|{{tl|flowlist}}}}
! style="font-weight: normal; text-align:center;" | {{mono|{{tl|flowlist}}}}
{{!}}-
|-
{{!}}<code><nowiki>[[File:Bad Title Example.png|left|thumb|100px]]</nowiki></code><br />
| <code><nowiki>[[File:Bad Title Example.png|left|thumb|100px]]</nowiki></code><br />
{{tnull|flowlist|<br />*item1<br />*item2<br />*...<br />}}
{{tlx|flowlist|<br />*item1<br />*item2<br />*...}}
{{!}}-
|-
{{!}}<hr />
| <hr />
[[File:Bad Title Example.png|left|thumb|100px]]
[[File:Bad Title Example.png|left|thumb|100px]]
{{flowlist|
{{flowlist|
Line 123: Line 130:
*...
*...
}}
}}
{{!}}}
|}
 
| style="vertical-align:top"|
| group15 = Multi-column
{| style="width:100%"
| list15 ={{{!}}
! style="font-weight: normal; text-align:center;" | {{mono|{{tl|columns-list}}}}
{{!}}-
|-
! class="navbox-group" style="font-weight: normal; text-align:center;" {{!}} {{mono|{{tl|multi-column numbered list}}}}
| {{tlx|columns-list|colwidth{{=}}5em|<br /># first<br /># second<br /># third<br /># ...}}
{{!}}-
|-
{{!}}
| <hr />
{{tnull|multi-column numbered list |first&nbsp;|second&nbsp;|...}}
{{columns-list|colwidth=5em|
{{!}}-
# first
{{!}}<hr />
# second
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.
# third
{{!}}}
# ...
 
}}
|below = {{cl|List templates}}
|}
}}<!--
| style="vertical-align:top"|
 
|}
--><noinclude>{{documentation}}</noinclude>
{{navbox bottom
|below = {{cl|List formatting and function templates‎}}
}}<noinclude>
{{documentation}}
<!-- Please add categories to the /doc subpage; interwikis go to Wikidata -->
</noinclude>

Latest revision as of 20:51, 14 October 2022