Template:Item list: Difference between revisions

Template page
m (add testing (WIP))
m (document nesting better)
Line 32: Line 32:


The parameters are taken as follows. Up to 10 items are supported in this way.
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 ===
<code><nowiki>{{Item list|Item|Qty of 1|Item 2|Qty of 2}}</nowiki></code>
<pre>{{Item list|Item 1|Qty of 1|Item 2|Qty of 2}}</pre>
=== Example ===
=== Example ===
<code><nowiki>{{Item list|Hardened Metals|2|Abyss Alloy|19}}</nowiki></code>
<pre>{{Item list|Hardened Metals|2|Abyss Alloy|19}}</pre>


=== Creates ===
=== Creates ===
Without nesting:
{{Item list|Hardened Metals|2|Abyss Alloy|19}}
{{Item list|Hardened Metals|2|Abyss Alloy|19|Abyss Alloy|19|Abyss Alloy|19|Abyss Alloy|19|Abyss Alloy|19|Abyss Alloy|19}}


With nesting:
With nesting:
{{Item list|Hardened Metals|2|Abyss Alloy|19|Abyss Alloy|19|Abyss Alloy|19|Abyss Alloy|19|Abyss Alloy|19|Abyss Alloy|19|nested=yes}}[[Category:Templates]]</noinclude>
<pre>{{Item list|Hardened Metals|2|Abyss Alloy|19|nested=yes}}</pre>
* I want it to look like it is part of this list! {{Item list|Hardened Metals|2|Abyss Alloy|19|nested=yes}}[[Category:Templates]]</noinclude>

Revision as of 15:07, 1 June 2023

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.

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 nested=yes parameter anywhere.

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.