Template:Hlist/doc: Difference between revisions
More actions
preliminary doc page for Template:hlist |
update doc to reflect 10 parameters, give usage and block format |
||
| Line 1: | Line 1: | ||
The {{tl|Hlist}} template creates a horizontal list that scales with the number of entries within the template. Currently, the list will accept 10 different items, with potential for further expansion as needed. | The {{tl|Hlist}} template creates a horizontal list that scales with the number of entries within the template. Currently, the list will accept 10 different items, with potential for further expansion as needed. | ||
== Useage == | == Useage == | ||
=== In-line format === | |||
<nowiki>{{Hlist}}</nowiki> | <nowiki>{{Hlist}}</nowiki> | ||
<nowiki>{{Hlist|1|2|3|4|5|6|7|8|9|10}}</nowiki> | <nowiki>{{Hlist|1|2|3|4|5|6|7|8|9|10}}</nowiki> | ||
=== Block format === | |||
''Optional but suggested for longer lists.'' | |||
<nowiki>{{hlist | |||
|1=[[Destiny]] | |||
|2=[[Dan]] | |||
|3=[[MrMouton]] | |||
|4=[[Cake]] | |||
|5=[[Honey]] | |||
|6=[[Lycan]] | |||
|7=[[LilyPichu]] | |||
|8=[[Kyle]]}}</nowiki> | |||
=== Examples === | === Examples === | ||
| Line 17: | Line 30: | ||
{{Hlist|[[Destiny]]|[[Dan]]|[[MrMouton]]|[[Cake]]|[[Honey]]}} | {{Hlist|[[Destiny]]|[[Dan]]|[[MrMouton]]|[[Cake]]|[[Honey]]}} | ||
---- | |||
The list can also be set in a block style for better editability. | |||
<nowiki>{{hlist | |||
|1=[[Destiny]] | |||
|2=[[Dan]] | |||
|3=[[MrMouton]] | |||
|4=[[Cake]] | |||
|5=[[Honey]] | |||
|6=[[Lycan]] | |||
|7=[[LilyPichu]] | |||
|8=[[Kyle]]}}</nowiki> | |||
produces | |||
{{hlist | |||
|1=[[Destiny]] | |||
|2=[[Dan]] | |||
|3=[[MrMouton]] | |||
|4=[[Cake]] | |||
|5=[[Honey]] | |||
|6=[[Lycan]] | |||
|7=[[LilyPichu]] | |||
|8=[[Kyle]]}} | |||
== Parameters == | == Parameters == | ||
| Line 43: | Line 79: | ||
"label": "5", | "label": "5", | ||
"description": "The fifth list item." | "description": "The fifth list item." | ||
}, | |||
"6": { | |||
"label": "6", | |||
"description": "The sixth list item." | |||
}, | |||
"7": { | |||
"label": "7", | |||
"description": "The seventh list item." | |||
}, | |||
"8": { | |||
"label": "8", | |||
"description": "The eighth list item." | |||
}, | |||
"9": { | |||
"label": "9", | |||
"description": "The ninth list item." | |||
}, | |||
"10": { | |||
"label": "10", | |||
"description": "The tenth list item." | |||
} | } | ||
}, | }, | ||
Latest revision as of 18:10, 23 November 2024
The {{Hlist}} template creates a horizontal list that scales with the number of entries within the template. Currently, the list will accept 10 different items, with potential for further expansion as needed.
Useage
In-line format
{{Hlist}}
{{Hlist|1|2|3|4|5|6|7|8|9|10}}
Block format
Optional but suggested for longer lists.
{{hlist
|1=[[Destiny]]
|2=[[Dan]]
|3=[[MrMouton]]
|4=[[Cake]]
|5=[[Honey]]
|6=[[Lycan]]
|7=[[LilyPichu]]
|8=[[Kyle]]}}
Examples
{{Hlist|[[Destiny]]|[[Dan]]}}
produces
{{Hlist|[[Destiny]]|[[Dan]]|[[MrMouton]]|[[Cake]]|[[Honey]]}}
produces
Destiny · Dan · MrMouton · Cake · Honey
The list can also be set in a block style for better editability.
{{hlist
|1=[[Destiny]]
|2=[[Dan]]
|3=[[MrMouton]]
|4=[[Cake]]
|5=[[Honey]]
|6=[[Lycan]]
|7=[[LilyPichu]]
|8=[[Kyle]]}}
produces
Destiny · Dan · MrMouton · Cake · Honey · Lycan · LilyPichu · Kyle
Parameters
Creates a horizontal list.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | The first list item. | Unknown | required |
| 2 | 2 | The second list item. | Unknown | required |
| 3 | 3 | The third list item. | Unknown | optional |
| 4 | 4 | The fourth list item. | Unknown | optional |
| 5 | 5 | The fifth list item. | Unknown | optional |
| 6 | 6 | The sixth list item. | Unknown | optional |
| 7 | 7 | The seventh list item. | Unknown | optional |
| 8 | 8 | The eighth list item. | Unknown | optional |
| 9 | 9 | The ninth list item. | Unknown | optional |
| 10 | 10 | The tenth list item. | Unknown | optional |