m (document nesting better) |
mNo edit summary |
||
Line 29: | Line 29: | ||
{{#if:{{{nested|}}}|**|*}}{{{20}}} {{Icon link|{{{19}}}}}}}}}<templatestyles src="Template:Item list/styles.css" /></includeonly><noinclude> | {{#if:{{{nested|}}}|**|*}}{{{20}}} {{Icon link|{{{19}}}}}}}}}<templatestyles src="Template:Item list/styles.css" /></includeonly><noinclude> | ||
== Usage == | == Usage == | ||
This template adds a simple list of items to a page | This template adds a simple list of items to a page. | ||
It is also possible to have the list be nested one level deep. To do this, add the <code>nested=yes</code> parameter anywhere. When nesting make sure that the template is on the same line as the parent list, otherwise it will not look right. | |||
It is also possible to have the list be nested one level deep. To do this, add the <code>nested=yes</code> parameter anywhere. | |||
=== Format === | === Format === |
Latest revision as of 15:08, 1 June 2023
Usage
This template adds a simple list of items to a page.
It is also possible to have the list be nested one level deep. To do this, add the nested=yes
parameter anywhere. When nesting make sure that the template is on the same line as the parent list, otherwise it will not look right.
Format
{{Item list|Item 1|Qty of 1|Item 2|Qty of 2}}
Example
{{Item list|Hardened Metals|2|Abyss Alloy|19}}
Creates
With nesting:
{{Item list|Hardened Metals|2|Abyss Alloy|19|nested=yes}}
- I want it to look like it is part of this list!