Difference between revisions of "Template:Linum/doc"

From blackwiki
Jump to navigation Jump to search
imported>SMcCandlish
(test)
imported>SMcCandlish
(TEST)
Line 5: Line 5:
  
 
{{olist}}
 
{{olist}}
{{linum|1=The first ordered list item|2=1}}
+
{{linum|1=The first ordered list item|1}}
{{linum|1=The second ordered list item|2=2}}
+
{{linum|The second ordered list item|2}}
 
{{!olist}}
 
{{!olist}}
  

Revision as of 11:13, 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

  • 1.  {{{2}}}
  • The second ordered list item.  2 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