Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Hlist/doc: Difference between revisions

Template page
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

Destiny · Dan


{{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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

The first list item.

Unknownrequired
22

The second list item.

Unknownrequired
33

The third list item.

Unknownoptional
44

The fourth list item.

Unknownoptional
55

The fifth list item.

Unknownoptional
66

The sixth list item.

Unknownoptional
77

The seventh list item.

Unknownoptional
88

The eighth list item.

Unknownoptional
99

The ninth list item.

Unknownoptional
1010

The tenth list item.

Unknownoptional