Template:Item list: Difference between revisions

Template page
m (remove mention of a retired template)
m (add testing (WIP))
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|*{{{2}}} {{Icon link|{{{1}}}}}
<includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|
{{#if:{{{nested|}}}|**|*}}{{{2}}} {{Icon link|{{{1}}}}}
}}}}{{#if:{{{3|}}}|  
}}}}{{#if:{{{3|}}}|  
{{#if:{{{4|}}}|
{{#if:{{{4|}}}|
*{{{4}}} {{Icon link|{{{3}}}}}
{{#if:{{{nested|}}}|**|*}}{{{4}}} {{Icon link|{{{3}}}}}
}}}}{{#if:{{{5|}}}|  
}}}}{{#if:{{{5|}}}|  
{{#if:{{{6|}}}|
{{#if:{{{6|}}}|
*{{{6}}} {{Icon link|{{{5}}}}}
{{#if:{{{nested|}}}|**|*}}{{{6}}} {{Icon link|{{{5}}}}}
}}}}{{#if:{{{7|}}}|  
}}}}{{#if:{{{7|}}}|  
{{#if:{{{8|}}}|
{{#if:{{{8|}}}|
*{{{8}}} {{Icon link|{{{7}}}}}
{{#if:{{{nested|}}}|**|*}}{{{8}}} {{Icon link|{{{7}}}}}
}}}}{{#if:{{{9|}}}|  
}}}}{{#if:{{{9|}}}|  
{{#if:{{{10|}}}|
{{#if:{{{10|}}}|
*{{{10}}} {{Icon link|{{{9}}}}}
{{#if:{{{nested|}}}|**|*}}{{{10}}} {{Icon link|{{{9}}}}}
}}}}{{#if:{{{11|}}}|  
}}}}{{#if:{{{11|}}}|  
{{#if:{{{12|}}}|
{{#if:{{{12|}}}|
*{{{12}}} {{Icon link|{{{11}}}}}
{{#if:{{{nested|}}}|**|*}}{{{12}}} {{Icon link|{{{11}}}}}
}}}}{{#if:{{{13|}}}|  
}}}}{{#if:{{{13|}}}|  
{{#if:{{{14|}}}|
{{#if:{{{14|}}}|
*{{{14}}} {{Icon link|{{{13}}}}}
{{#if:{{{nested|}}}|**|*}}{{{14}}} {{Icon link|{{{13}}}}}
}}}}{{#if:{{{15|}}}|  
}}}}{{#if:{{{15|}}}|  
{{#if:{{{16|}}}|
{{#if:{{{16|}}}|
*{{{16}}} {{Icon link|{{{15}}}}}
{{#if:{{{nested|}}}|**|*}}{{{16}}} {{Icon link|{{{15}}}}}
}}}}{{#if:{{{17|}}}|  
}}}}{{#if:{{{17|}}}|  
{{#if:{{{18|}}}|
{{#if:{{{18|}}}|
*{{{18}}} {{Icon link|{{{17}}}}}
{{#if:{{{nested|}}}|**|*}}{{{18}}} {{Icon link|{{{17}}}}}
}}}}{{#if:{{{19|}}}|  
}}}}{{#if:{{{19|}}}|  
{{#if:{{{20|}}}|
{{#if:{{{20|}}}|
*{{{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. This is the preferred way of doing this after march 29th for simplicity.  
Line 38: Line 39:


=== Creates ===
=== Creates ===
{{Item list|Hardened Metals|2|Abyss Alloy|19}}[[Category:Templates]]</noinclude>
Without nesting:
{{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:
{{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>

Revision as of 14:56, 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.

Format

{{Item list|Item|Qty of 1|Item 2|Qty of 2}}

Example

{{Item list|Hardened Metals|2|Abyss Alloy|19}}

Creates

Without nesting:

With nesting:

Cookies help us deliver our services. By using our services, you agree to our use of cookies.