Template:Item list: Difference between revisions

Template page
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 is the preferred way of doing this after march 29th for simplicity.
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.
The parameters are taken as follows. Up to 10 items are supported in this way.
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}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.