Difference between revisions of "Template:Linum/doc"

From blackwiki
Jump to navigation Jump to search
imported>SMcCandlish
(→‎Usage: grrrr)
imported>SMcCandlish
(→‎Usage: update)
Line 4: Line 4:
 
Example:
 
Example:
  
{{olist}}
+
{{olist|1=
{{linum|1|2=The first ordered list item}}
+
  {{linum|1|2=The first ordered list item}}
{{linum|2|2=The second ordered list item}}
+
  {{linum|2|2=The second ordered list item}}
{{!olist}}
+
}}
  
 
==Redirects==
 
==Redirects==

Revision as of 11:54, 17 October 2011

Usage

This template, {{linum}} (for "list item, numbered") is part of the system of templates for copy-pasteable lists. It is used inside {{olist}} to provide a number, automatically spaced for you, in front of an item in an ordered list. For complex content, it has a two-part start and end tag version, {{linum-}} and {{!linum}}.

Example:

Template:Olist

Redirects

Tech note

This template uses list-style instead of the more specific list-style-type because of MediaWiki bug 31746. What that's fixed, the template should be, too.

See also

Template:Olist/see-also