Difference between revisions of "Template:Ordered List/doc"

From Lojban
Jump to navigation Jump to search
 
m (1 revision)
 
(No difference)

Latest revision as of 11:48, 1 March 2014

Usage

This template creates an ordered list, which is similar to a numbered list but may display other characters, such as roman numbers or alphabet letters, instead of the decimal enumerator.

Syntax

Simple
{{Ordered list|list-style-type=''list style type''|''entry1''|''entry2'' ...|''entry50''}}
With CSS style
{{Ordered list|list-style-type=''list style type''|''entry1''|''entry2'' ...|''entry50''|li_style=''CSS-all''}}
With separate CSS styles for each item
{{Ordered list|list-style-type=''list style type''|''entry1''|''entry2'' ...|''entry50''|li_style1=''CSS1''|li_style2=''CSS2'' ...|li_style50=''CSS50''}}
Parameters' description
Paramter Description
list style 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 following section.

entry1 ... entry50 These unnamed parameters are individual list items that appear as separate lines. They can be words or full sentences. However, all instance of equal sign (=) must be replaced with "{{=}}"; otherwise, the affected line will not appear.
CSS1 ... CSS50 Standard Cascading Style Sheet (CSS) styles that change the look of each line. (User must know CSS syntax.)
CSS-all Standard CSS styles that change the look of all entries. (User must know CSS syntax.) When present, CSS1 through CSS5 are disregarded.

Acceptable list style type values and supported web browsers

See also

References