• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Ordered list

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 5,800 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:List (sandbox)
Shortcut
  • {{olistTemplate:Olist}}

Contents

  • 1 Usage
  • 2 Syntax
  • 3 See also
  • 4 References

Usage

This template creates an ordered list, which is often numbered but may use other characters, such as letters in alphabetical order.

Syntax

Simple
{{Ordered list |entry1 |entry2| ... }}
Offset starting value
{{Ordered list |start=start|entry1 |entry2 |... |item1_style=CSS1 |item2_style=CSS2| ... }}
Changing the symbol style
{{Ordered list |list_style_type=type |entry1 |entry2 |... }}
With CSS style
{{Ordered list |item_style=CSS-all |entry1 |entry2 |... }}
With separate CSS styles for each item
{{Ordered list |entry1 |item1_style=CSS1 |entry2 |item2_style=CSS2 |... }}
With custom values for each item
{{Ordered list |item1_value=value1 |entry1 |item2_value=value2 |entry2 |... }}
Parameters' description
Parameter Description
list_style_type or
type
This parameter indicates the list style type. Popular acceptable parameters include:
  • decimal (1, 2, 3, 4, ...)
  • lower-roman (i, ii, iii, iv, ...)
  • upper-roman (I, II, III, IV, ...)
  • lower-alpha (a, b, c, d, ...)
  • upper-alpha (A, B, C, D, ...)

For a full list, see the documentation at MDN Web Docs.

Positional parameters

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 {{=}}, lest it will be interpreted a named parameter.
itemn_value

value1 value2 ...

Ordinal or label for a specific list item; a positive integer.
start Ordinal or label for the first item in the list; a positive integer (default is 1).
itemn_style

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 itemn_style=list-style-type:none;
item_style

CSS-all

CSS styles that are set on each list item. (User must know CSS syntax.) When present, any itemn_style are disregarded.

See also

  • v
  • t
  • e
HTML lists
More information —
  • Help:List
  • WP:List dos and don'ts
  • WP:Manual of Style/Embedded lists
  • WP:Manual of Style/Accessibility § Lists
  • WP:WikiProject Lists
Horizontal list
{{hlist|item1 |item2 }}
  • item1
  • item2
Horizontal list
{{flatlist|
* item1
* item2}}
  • item1
  • item2
Horizontal list
{{cslist|item1 |item2 }}
  • item1
  • item2
Bulleted list
{{bulleted list|item1 |item2 }}
  • item1
  • item2
Numeric ordered list
{{Ordered list|first |second }}
  1. first
  2. second
Alphabetic ordered list
{{Ordered list|list_style_type=lower-alpha |first |second }}
  1. first
  2. second
Unbulleted list
{{unbulleted list|item1 |item2 }}
  • item1
  • item2
Unbulleted list
{{plainlist|
* item1
* item2}}
  • item1
  • item2
Glossary or definition list
{{glossary}}

{{term|first term}}{{defn|first description}}
{{term|second term}}{{defn|second description}}
{{glossary end}}

first term
first description
second term
second description
Bulleted list to flow around an image
[[File:Bad Title Example.png|left|thumb|100px]]

{{flowlist|
*item1
*item2}}

  • item1
  • item2
Ordered list in columns
{{columns-list|colwidth=5em|
# first
# second}}
  1. first
  2. second
Category:List formatting and function templates

References

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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
First item to list1

no description

Unknownrequired
Second item to list2

no description

Unknownoptional
Third item to list3

no description

Unknownoptional
Fourth item to list4

no description

Unknownoptional
Fifth item to list5

no description

Unknownoptional
Sixth item to list6

no description

Unknownoptional
Seventh item to list7

no description

Unknownoptional
Eighth item to list8

no description

Unknownoptional
Ninth item to list9

no description

Unknownoptional
Tenth item to list10

no description

Unknownoptional
Type of listlist_style_type type

no description

Suggested values
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
Unknownoptional
Starting valuestart

no description

Unknownoptional
CSS styleitem_style

no description

Unknownoptional
The above documentation is transcluded from Template:Ordered list/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Ordered_list&oldid=695189167"
Last edited on 14 December 2015, at 10:30

Languages

    • Afrikaans
    • العربية
    • অসমীয়া
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • भोजपुरी
    • Bosanski
    • Буряад
    • Català
    • Čeština
    • Dansk
    • الدارجة
    • Ελληνικά
    • Esperanto
    • Euskara
    • فارسی
    • Føroyskt
    • Français
    • ગુજરાતી
    • 客家語 / Hak-kâ-ngî
    • 한국어
    • Հայերեն
    • हिन्दी
    • Ilokano
    • Bahasa Indonesia
    • Íslenska
    • Jawa
    • ქართული
    • Kurdî
    • Ladin
    • Lietuvių
    • Magyar
    • मैथिली
    • Македонски
    • മലയാളം
    • मराठी
    • Bahasa Melayu
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Монгол
    • မြန်မာဘာသာ
    • Nederlands
    • नेपाली
    • 日本語
    • Norsk bokmål
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ပအိုဝ်ႏဘာႏသာႏ
    • ភាសាខ្មែរ
    • Português
    • Română
    • Русский
    • Scots
    • Shqip
    • සිංහල
    • Simple English
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Sunda
    • Tagalog
    • தமிழ்
    • တႆး
    • తెలుగు
    • ไทย
    • Türkçe
    • Українська
    • اردو
    • Tiếng Việt
    • 粵語
    • 中文
    • Kadazandusun
    • Jaku Iban
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 14 December 2015, at 10:30 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop