Difference between revisions of "Template:Linum"
imported>SMcCandlish (saving template) |
imported>SMcCandlish (bug fix) |
||
| Line 1: | Line 1: | ||
| − | <li class="cplist-oli" style="list-style | + | <li class="cplist-oli" style="list-style:{{{type|none}}};" value="{{{value|}}}">{{lino |
|1={{{2}}} | |1={{{2}}} | ||
|color={{{color|inherit}}} | |color={{{color|inherit}}} | ||
| Line 18: | Line 18: | ||
*{{tl|li number}} | *{{tl|li number}} | ||
*{{tl|lix}} | *{{tl|lix}} | ||
| + | |||
| + | ==Tech note== | ||
| + | This template uses <code>list-style</code> instead of the more specific <code>list-style-type</code> because of [[bugzilla:31746|MediaWiki bug 31746]]. What that's fixed, the template should be, too. | ||
==See also== | ==See also== | ||
Revision as of 08:04, 17 October 2011
Contents
- 1 Usage
- 2 Usage
- 3 Redirects
- 4 Tech note
- 5 See also
- 6 Usage
- 7 Redirects
- 8 Tech note
- 9 See also
- 10 Usage
- 11 Redirects
- 12 Tech note
- 13 See also
- 14 Usage
- 15 Redirects
- 16 Tech note
- 17 See also
- 18 Usage
- 19 Redirects
- 20 Tech note
- 21 See also
- 22 Usage
- 23 Redirects
- 24 Tech note
- 25 See also
- 26 Usage
- 27 Redirects
- 28 Tech note
- 29 See also
- 30 Usage
- 31 Redirects
- 32 Tech note
- 33 See also
- 34 Usage
- 35 Redirects
- 36 Tech note
- 37 See also
- 38 Usage
- 39 Redirects
- 40 Tech note
- 41 See also
- 42 Tech note
- 43 See also
- 44 Usage
- 45 Usage
- 46 Tech note
- 47 See also
- 48 Usage
- 49 Redirects
- 50 Tech note
- 51 See also
- 52 Usage
- 53 Tech note
- 54 See also
- 55 Usage
- 56 Redirects
- 57 Tech note
- 58 See also
- 59 Redirects
- 60 Tech note
- 61 See also
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.
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|text=or|content=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 text (not background) color of the designation supplied in|1=, for unusual cases in which this is needed. This should not normally be used in mainspace .
Examples
- Basic copy-pasteable list:
{{unbulleted list
| {{linum|1|The first ordered list item}}
| {{linum|2|The second ordered list item}}
}}
- The first ordered list item. 1 </noinclude>
- The second ordered list item. 2 </noinclude> Template loop detected: Template:Documentation
Template loop detected: Template:Documentation
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 Template loop detected: Template:Linum Template loop detected: Template:Linum 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
</noinclude>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 Template loop detected: Template:Linum Template loop detected: Template:Linum 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
</noinclude>
Compare bare wikimarkup, with non-copy-pasteable numbers:
# The first ordered list item # The second ordered list item
- The first ordered list item
- The second ordered list item
The style of this can be matched more closely with a parameter on the wrapper template:
{{unbulleted list |style=margin-left: 2em
| {{linum|1|The first ordered list item}}
| {{linum|2|The second ordered list item}}
}}
- The first ordered list item. 1 </noinclude>
- The second ordered list item. 2 </noinclude> Template loop detected: Template:Documentation
Template loop detected: Template:Documentation
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 Template loop detected: Template:Linum Template loop detected: Template:Linum 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
</noinclude>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 Template loop detected: Template:Linum Template loop detected: Template:Linum 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
</noinclude>
- Outline style:
{{unbulleted list |style=margin-left: 1.5em
| {{linum|A |punct=) |text=The first ordered list item}}
| {{linum|B |punct=) |text=The second ordered list item <!-- leave item open for nested list -->
{{unbulleted list |style=margin-left: 1.5em
| {{linum|1 |punct=) |text=A nested sub-item}}
}} <!-- close nested list -->
}} <!-- close open item -->
}} <!-- close main list -->
- {{{2}}}) A </noinclude>
- {{{2}}}) B </noinclude> Template loop detected: Template:Documentation
Template loop detected: Template:Documentation
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 Template loop detected: Template:Linum Template loop detected: Template:Linum 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
</noinclude>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 Template loop detected: Template:Linum Template loop detected: Template:Linum 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
</noinclude>
- As a compact alternative to description lists:
This kind of usage should be in some clear order (alphabetical, chronological, etc.); otherwise use an unordered list.
Plural 'you' constructions:
{{unbulleted list |style=margin-left: 1em
| {{linum|English |punct=: |text=you all (informal), y'all (colloquial), yous (colloq.), yins (colloq.), ye (obsolete)}}
| {{linum|French |punct=: |text=''{{lang|es|vous}}''}}
| {{linum|Mandarin |punct=: |text=''nǐmen'' {{lang|zh|你们}} }}
| {{linum|Spanish |punct=: |text=''{{lang|es|tus}}'' (informal), ''{{lang|es|ustedes}}'' (formal)}}
}}
Plural 'you' constructions:
- {{{2}}}: English </noinclude>
- {{{2}}}: French </noinclude> Template loop detected: Template:Documentation
- {{{2}}}: Mandarin </noinclude> Template loop detected: Template:Documentation
- {{{2}}}: Spanish </noinclude> Template loop detected: Template:Documentation
Template loop detected: Template:Documentation
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 Template loop detected: Template:Linum Template loop detected: Template:Linum 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
</noinclude>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 Template loop detected: Template:Linum Template loop detected: Template:Linum 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
</noinclude>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 Template loop detected: Template:Linum Template loop detected: Template:Linum 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
</noinclude>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 Template loop detected: Template:Linum Template loop detected: Template:Linum 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
</noinclude>Tech note
This template uses list-style-type: none and value="" to suppress the automated number generation of ordered lists, then replaces them with a copy-pasteable (and scalable!) value provided by the editor (it is passed to and generated by the {{lino}} meta-template).
See also
| The above documentation is transcluded from Template:Linum/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
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
</noinclude>
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.
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|text=or|content=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 text (not background) color of the designation supplied in|1=, for unusual cases in which this is needed. This should not normally be used in mainspace .
Examples
- Basic copy-pasteable list:
{{unbulleted list
| {{linum|1|The first ordered list item}}
| {{linum|2|The second ordered list item}}
}}
- Template loop detected: Template:Linum
- Template loop detected: Template:Linum
Compare bare wikimarkup, with non-copy-pasteable numbers:
# The first ordered list item # The second ordered list item
- The first ordered list item
- The second ordered list item
The style of this can be matched more closely with a parameter on the wrapper template:
{{unbulleted list |style=margin-left: 2em
| {{linum|1|The first ordered list item}}
| {{linum|2|The second ordered list item}}
}}
- Template loop detected: Template:Linum
- Template loop detected: Template:Linum
- Outline style:
{{unbulleted list |style=margin-left: 1.5em
| {{linum|A |punct=) |text=The first ordered list item}}
| {{linum|B |punct=) |text=The second ordered list item <!-- leave item open for nested list -->
{{unbulleted list |style=margin-left: 1.5em
| {{linum|1 |punct=) |text=A nested sub-item}}
}} <!-- close nested list -->
}} <!-- close open item -->
}} <!-- close main list -->
- Template loop detected: Template:Linum
- Template loop detected: Template:Linum
- As a compact alternative to description lists:
This kind of usage should be in some clear order (alphabetical, chronological, etc.); otherwise use an unordered list.
Plural 'you' constructions:
{{unbulleted list |style=margin-left: 1em
| {{linum|English |punct=: |text=you all (informal), y'all (colloquial), yous (colloq.), yins (colloq.), ye (obsolete)}}
| {{linum|French |punct=: |text=''{{lang|es|vous}}''}}
| {{linum|Mandarin |punct=: |text=''nǐmen'' {{lang|zh|你们}} }}
| {{linum|Spanish |punct=: |text=''{{lang|es|tus}}'' (informal), ''{{lang|es|ustedes}}'' (formal)}}
}}
Plural 'you' constructions:
- Template loop detected: Template:Linum
- Template loop detected: Template:Linum
- Template loop detected: Template:Linum
- Template loop detected: Template:Linum
Tech note
This template uses list-style-type: none and value="" to suppress the automated number generation of ordered lists, then replaces them with a copy-pasteable (and scalable!) value provided by the editor (it is passed to and generated by the {{lino}} meta-template).
See also
| The above documentation is transcluded from Template:Linum/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
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 Template loop detected: Template:Linum Template loop detected: Template:Linum 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
</noinclude>
</noinclude>
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.
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|text=or|content=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 text (not background) color of the designation supplied in|1=, for unusual cases in which this is needed. This should not normally be used in mainspace .
Examples
- Basic copy-pasteable list:
{{unbulleted list
| {{linum|1|The first ordered list item}}
| {{linum|2|The second ordered list item}}
}}
- Template loop detected: Template:Linum
- Template loop detected: Template:Linum
Compare bare wikimarkup, with non-copy-pasteable numbers:
# The first ordered list item # The second ordered list item
- The first ordered list item
- The second ordered list item
The style of this can be matched more closely with a parameter on the wrapper template:
{{unbulleted list |style=margin-left: 2em
| {{linum|1|The first ordered list item}}
| {{linum|2|The second ordered list item}}
}}
- Template loop detected: Template:Linum
- Template loop detected: Template:Linum
- Outline style:
{{unbulleted list |style=margin-left: 1.5em
| {{linum|A |punct=) |text=The first ordered list item}}
| {{linum|B |punct=) |text=The second ordered list item <!-- leave item open for nested list -->
{{unbulleted list |style=margin-left: 1.5em
| {{linum|1 |punct=) |text=A nested sub-item}}
}} <!-- close nested list -->
}} <!-- close open item -->
}} <!-- close main list -->
- Template loop detected: Template:Linum
- Template loop detected: Template:Linum
- As a compact alternative to description lists:
This kind of usage should be in some clear order (alphabetical, chronological, etc.); otherwise use an unordered list.
Plural 'you' constructions:
{{unbulleted list |style=margin-left: 1em
| {{linum|English |punct=: |text=you all (informal), y'all (colloquial), yous (colloq.), yins (colloq.), ye (obsolete)}}
| {{linum|French |punct=: |text=''{{lang|es|vous}}''}}
| {{linum|Mandarin |punct=: |text=''nǐmen'' {{lang|zh|你们}} }}
| {{linum|Spanish |punct=: |text=''{{lang|es|tus}}'' (informal), ''{{lang|es|ustedes}}'' (formal)}}
}}
Plural 'you' constructions:
- Template loop detected: Template:Linum
- Template loop detected: Template:Linum
- Template loop detected: Template:Linum
- Template loop detected: Template:Linum
Tech note
This template uses list-style-type: none and value="" to suppress the automated number generation of ordered lists, then replaces them with a copy-pasteable (and scalable!) value provided by the editor (it is passed to and generated by the {{lino}} meta-template).
See also
| The above documentation is transcluded from Template:Linum/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
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 Template loop detected: Template:Linum Template loop detected: Template:Linum 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
</noinclude> 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