Editing
Template:Ordered list/doc
From Thetacola Wiki
Jump to navigation
Jump to 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!
{{Documentation subpage}} {{High-use}} {{lua|Module:List}} {{Template shortcut|olist}} <!-- Categories and interwikis go at the bottom of this page. --> == Usage == This template creates an ordered list, which is often [[WP:L#Numbered lists|numbered]] but may use other characters, such as letters in alphabetical order. == Syntax == ;Simple:<code><nowiki>{{</nowiki>Ordered list |''entry1'' |''entry2''| ... <nowiki>}}</nowiki></code> ;Offset starting value:<code><nowiki>{{</nowiki>Ordered list |start=''start''|''entry1'' |''entry2'' |... |item1_style=''CSS1'' |item2_style=''CSS2''| ... <nowiki>}}</nowiki></code> ;Changing the symbol style:<code><nowiki>{{</nowiki>Ordered list |list_style_type=''type'' |''entry1'' |''entry2'' |... <nowiki>}}</nowiki></code> ;With CSS style:<code><nowiki>{{</nowiki>Ordered list |item_style=''CSS-all'' |''entry1'' |''entry2'' |... <nowiki>}}</nowiki></code> ;With separate CSS styles for each item:<code><nowiki>{{</nowiki>Ordered list |''entry1'' |item1_style=''CSS1'' |''entry2'' |item2_style=''CSS2'' |... <nowiki>}}</nowiki></code> ;With custom values for each item:<code><nowiki>{{</nowiki>Ordered list |item1_value=''value1'' |''entry1'' |item2_value=''value2'' |''entry2'' |... <nowiki>}}</nowiki></code> {| class="wikitable" |+ Parameters' description |- ! Parameter !! Description |- | <code>list_style_type</code> or<br /><code>type</code> | This parameter indicates the list style type. Popular acceptable parameters include: * <code>decimal (1, 2, 3, 4, ...)</code> * <code>lower-roman (i, ii, iii, iv, ...)</code> * <code>upper-roman (I, II, III, IV, ...)</code> * <code>lower-alpha (a, b, c, d, ...)</code> * <code>upper-alpha (A, B, C, D, ...)</code> For a full list, see the [https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type#values documentation at MDN Web Docs]. |- | Positional parameters {{nowrap|entry1 entry2 ...}} | The contents of each list item, as unnamed or positional parameters. There is no restriction on content, except equal signs (=) must be escaped or replaced with <code><nowiki>{{=}}</nowiki></code>, lest it will be interpreted a named parameter. |- | <code>item''n''_value</code> {{nowrap|value1 value2 ...}} | Ordinal or label for a specific list item; a positive integer. |- | <code>start</code> | Ordinal or label for the first item in the list; a positive integer (default is 1). |- | <code>item''n''_style</code> {{nowrap|CSS1 CSS2 ...}} | [[Cascading Style Sheet]] (CSS) styles that are set on a specific list item. (User must know CSS syntax.) For example, individual labels can be hidden by setting <code>item''n''_style=list-style-type:none;</code> |- | <code>item_style</code> CSS-all | CSS styles that are set on each list item. (User must know CSS syntax.) When present, any <code>item''n''_style</code> are disregarded. |} == See also == {{navbox lists}} == References == {{Reflist}} <includeonly>{{Sandbox other|| <!-- Categories and interwikis go here: --> [[Category:List formatting and function templates]] }}</includeonly> <templatedata> { "params": { "1": { "required": true, "label": "First item to list" }, "2": { "label": "Second item to list" }, "3": { "label": "Third item to list" }, "4": { "label": "Fourth item to list" }, "5": { "label": "Fifth item to list" }, "6": { "label": "Sixth item to list" }, "7": { "label": "Seventh item to list" }, "8": { "label": "Eighth item to list" }, "9": { "label": "Ninth item to list" }, "10": { "label": "Tenth item to list" }, "list_style_type": { "aliases": [ "type" ], "suggestedvalues": [ "none", "disc", "circle", "square", "decimal", "decimal-leading-zero", "lower-roman", "upper-roman", "lower-alpha", "lower-latin", "upper-alpha", "upper-latin", "lower-greek", "armenian", "georgian", "hebrew", "ethiopic-numeric", "cjk-decimal", "cjk-ideographic", "hiragana", "katakana", "hiragana-iroha", "katakana-iroha", "korean-hangul-formal" ], "default": "decimal", "label": "Type of list" }, "start": { "label": "Starting value" }, "item_style": { "label": "CSS style" } }, "description": "Make an ordered list. The default is a numbered list, but you can change it to a list with roman numbers or letters of the English, Greek, Armenian or Georgian alphabets, instead of the decimal enumerator.", "format": "block", "paramOrder": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "list_style_type", "start", "item_style" ] } </templatedata>
Summary:
Please note that all contributions to Thetacola Wiki 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
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Bulleted list
(
edit
)
Template:Category link
(
edit
)
Template:Category link/core
(
edit
)
Template:Cl
(
edit
)
Template:Columns-list
(
edit
)
Template:Cslist
(
edit
)
Template:Cslist/styles.css
(
edit
)
Template:Defn
(
edit
)
Template:Div col
(
edit
)
Template:Div col/styles.css
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Flatlist
(
edit
)
Template:Flowlist
(
edit
)
Template:Flowlist/styles.css
(
edit
)
Template:Glossary
(
edit
)
Template:Glossary/styles.css
(
edit
)
Template:Glossary end
(
edit
)
Template:HTML lists
(
edit
)
Template:High-use
(
edit
)
Template:Hlist
(
edit
)
Template:Hlist/styles.css
(
edit
)
Template:Ifsubst
(
edit
)
Template:Lua
(
edit
)
Template:Main other
(
edit
)
Template:Mbox
(
edit
)
Template:Mono
(
edit
)
Template:Mono/styles.css
(
edit
)
Template:Navbox bottom
(
edit
)
Template:Navbox lists
(
edit
)
Template:Navbox top
(
edit
)
Template:No redirect
(
edit
)
Template:Nowrap
(
edit
)
Template:Ordered list
(
edit
)
Template:Plainlist
(
edit
)
Template:Plainlist/styles.css
(
edit
)
Template:Reflist
(
edit
)
Template:Reflist/styles.css
(
edit
)
Template:Section link
(
edit
)
Template:Strong
(
edit
)
Template:Template link
(
edit
)
Template:Template link expanded
(
edit
)
Template:Template link null
(
edit
)
Template:Template shortcut
(
edit
)
Template:Term
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Tlx
(
edit
)
Template:Tnull
(
edit
)
Template:Unbulleted list
(
edit
)
Template:Yesno
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:Cslist
(
edit
)
Module:Delink
(
edit
)
Module:High-use
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Navbar
(
edit
)
Module:Navbar/configuration
(
edit
)
Module:Navbar/styles.css
(
edit
)
Module:Navbox
(
edit
)
Module:Navbox/configuration
(
edit
)
Module:Navbox/styles.css
(
edit
)
Module:Navbox top and bottom
(
edit
)
Module:Redirect
(
edit
)
Module:Section link
(
edit
)
Module:Shortcut
(
edit
)
Module:Shortcut/config
(
edit
)
Module:Shortcut/styles.css
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)
Module:Template link general
(
edit
)
Module:Template wrapper
(
edit
)
Module:Text
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/O
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Page actions
Template
Discussion
Read
Edit source
History
Page actions
Template
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Random word
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information