Difference between revisions of "Template:Linum/doc"
Jump to navigation
Jump to search
imported>He7d3r (→Tech note: {{outdated}}: phab:T33746 is "Closed, Invalid") |
imported>SMcCandlish (update with parameter docs) |
||
| Line 1: | Line 1: | ||
==Usage== | ==Usage== | ||
| − | This template, {{tlx|linum}} (for "list item, numbered") is part of the '''system of templates for copy-pasteable lists'''. It is used inside {{tlx|unbulleted list}} to provide a number, automatically spaced for you, in front of an item in an ordered list. | + | This template, {{tlx|linum}} (for "list item, numbered") is part of the '''system of templates for copy-pasteable lists'''. It is used inside {{tlx|unbulleted list}} to provide a number, automatically spaced for you, in front of an item in an ordered list. It can be used to layout complicated outlines (e.g. "I) ... A) ... 1) ... i) ..." and other formats). |
Example: | Example: | ||
| Line 8: | Line 8: | ||
| {{linum|2|2=The second ordered list item}} | | {{linum|2|2=The second ordered list item}} | ||
}} | }} | ||
| + | |||
| + | ===Parameters=== | ||
| + | |||
| + | * {{para|1}} or first unnumbered parameter – the number, letter or other designation of the line item (e.g. <code>1</code>, <code>A</code>, <code>xiv<code>, <code>physics</code>, etc.). This can have wikimarkup (e.g. style, even a link) applied to it. | ||
| + | * {{para|2}} or second unnumbered - text of the item (can contain wikilinks and other markup like normal). | ||
| + | * {{para|punct}} – the punctuation after the number or other designation (e.g. <code>)</code>, <code>:</code>, <code>&nbsp;–</code>; defaults to <code>.</code> like our default list <code>#</code>-formatted wikicode list style's output). No trailing space is needed; the template will provide that. | ||
| + | * {{para|color}} – a <code>#{{var|XXXXXX}}</code> color code or [[Web color]] name for the color of the text (not its background), for unusual cases in which this is needed. This should not normally be used in mainspace {{crossref|(see [[MOS:COLOR]])}}. | ||
==Tech note== | ==Tech note== | ||
| − | {{outdated}} | + | {{outdated}}<!-- Fix in progress as of 2016-09-05. – SMcCandlish --> |
This template uses <code>list-style</code> instead of the more specific <code>list-style-type</code> because of [[phab:T33746|MediaWiki task T33746]]. What that's fixed, the template should be, too. | This template uses <code>list-style</code> instead of the more specific <code>list-style-type</code> because of [[phab:T33746|MediaWiki task T33746]]. What that's fixed, the template should be, too. | ||
Revision as of 10:23, 5 September 2016
Contents
Usage
This template, {{linum}} (for "list item, numbered") is part of the system of templates for copy-pasteable lists. It is used inside {{unbulleted list}} to provide a number, automatically spaced for you, in front of an item in an ordered list. It can be used to layout complicated outlines (e.g. "I) ... A) ... 1) ... i) ..." and other formats).
Example:
- 1. The first ordered list item
- 2. The second ordered list item
Parameters
|1=or first unnumbered parameter – the number, letter or other designation of the line item (e.g.1,A,xiv,physics, etc.). This can have wikimarkup (e.g. style, even a link) applied to it.|2=or second unnumbered - text of the item (can contain wikilinks and other markup like normal).|punct=– the punctuation after the number or other designation (e.g.),:, –; defaults to.like our default list#-formatted wikicode list style's output). No trailing space is needed; the template will provide that.|color=– a#XXXXXXcolor code or Web color name for the color of the text (not its background), for unusual cases in which this is needed. This should not normally be used in mainspace .
Tech note
Template:Outdated
This template uses list-style instead of the more specific list-style-type because of MediaWiki task T33746. What that's fixed, the template should be, too.
See also