Skip to content
Aa
Reading appearance
Browse
Browse the wiki
Books
Characters
Houses
Places
History
Culture
More topics
Images
Television
Chapters
Timeline
Random Article
Community
Community Portal
Recent Changes
Our Sites
Westeros
Forum of Ice and Fire
Blood of Dragons MUSH
Login
Talk
Interact
Interact
Edit source
View history
More page tools
What links here
Related changes
Page information
Special pages
Editing
Template
:
Hlist/doc
Jump to:
navigation
,
search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
This template creates horizontal lists using {{tl|hlist}}. Each item in the list may be individually styled with CSS. == Usage == ===Basic usage=== <pre>{{hlist|''first item''|''second item''|''third item''|...}}</pre> ===All parameters=== <pre> {{hlist |''first item''|''second item''|''third item''|... |class = ''class for div tag'' |style = ''style for div tag'' |list_style = ''style for ul tag'' |item_style = ''style for all li tags'' |item1_style = ''style for first li tag'' |item2_style = ''style for second li tag'' |... |indent = ''the number of tabs to indent'' }} </pre> == Parameters == * Positional parameters (<code>1</code>, <code>2</code>, <code>3</code>...): these are the list items. If no list items are present, the module will output nothing. * <code>class</code>: a custom class for the <code><nowiki><div>...</div></nowiki></code> tags surrounding the list. Set to <code>inline</code> when using {{tl|hlist}} inside text. * <code>style</code>: a custom CSS style for the <code><nowiki><div>...</div></nowiki></code> tags surrounding the list, e.g. <code>font-size: 90%;</code>. * <code>list_style</code>: a custom CSS style for the <code><nowiki><ul>...</ul></nowiki></code> tags around the list. The format is the same as for the <code>|style=</code> parameter. * <code>item_style</code>: a custom CSS style for all of the list items (the <code><nowiki><li>...</li></nowiki></code> tags). The format is the same as for the <code>|style=</code> parameter. * <code>item1_style</code>, <code>item2_style</code>, <code>item3_style</code>...: custom CSS styles for each of the list items. The format is the same as for the <code>|style=</code> parameter. * <code>indent</code>: the number of tabs to indent the list. Default value is 0. == Examples == {| class=wikitable width=100% |- | <nowiki>{{hlist|entry1|entry2|entry3|entry4|entry5|entry6|entry7|entry8|entry9}}</nowiki> | {{hlist|entry1|entry2|entry3|entry4|entry5|entry6|entry7|entry8|entry9}} |- | <nowiki>Giant planets ({{hlist|[[Jupiter|J]]|[[Saturn|S]]|[[Uranus|U]]|[[Neptune|N]]}}).</nowiki> | Giant planets ({{hlist|[[Jupiter|J]]|[[Saturn|S]]|[[Uranus|U]]|[[Neptune|N]]}}). |- | <nowiki>Giant planets ({{hlist|class=inline|[[Jupiter|J]]|[[Saturn|S]]|[[Uranus|U]]|[[Neptune|N]]}}).</nowiki> | Giant planets ({{hlist|class=inline|[[Jupiter|J]]|[[Saturn|S]]|[[Uranus|U]]|[[Neptune|N]]}}). |- | <nowiki>{{hlist|Winner|Runner-up|Third place|indent=2}}</nowiki> | {{hlist|Winner|Runner-up|Third place|indent=2}} |- | <nowiki>{{hlist|Winner|Runner-up|Third place|item_style=color:blue;}}</nowiki> | {{hlist|Winner|Runner-up|Third place|item_style=color:blue;}} |- | <nowiki>{{hlist|Winner|Runner-up|Third place|item1_style=background-color:yellow;|item2_style=background-color:silver;}}</nowiki> | {{hlist|Winner|Runner-up|Third place|item1_style=background-color:yellow;|item2_style=background-color:silver;}} |} <includeonly>[[Category:List templates]]</includeonly>
Summary:
Please note that all contributions to A Wiki of Ice and Fire may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
A Wiki of Ice and Fire:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Pages included on this page:
Template:Hlist
(
edit
)
Template:Hlist/styles.css
(
edit
)
Template:Tl
(
edit
)
Module:Arguments
(
edit
)
Module:List
(
edit
)
Module:TableTools
(
edit
)
Module:Tl
(
edit
)