Difference between revisions of "Template:Item List"
Jump to navigation
Jump to search
m |
m |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{ | + | <includeonly>{{#if: {{{simple|}}} | https://chicken.playdf.org/data/items/icons/{{{id}}}.gif {{ #if:{{{num|}}} | {{{num}}} }} {{Item |id={{{id}}} {{ #if:{{{prefix|}}} | {{{prefix}}} }} {{{item}}} {{ #if:{{{slots|}}} | [{{{slots}}}] }} {{ #if:{{{postfix|}}} | {{{postfix}}} }} }} | {{{!}} style="background:none; padding:1px; border-spacing:0px;" |
+ | {{!}} style="align:center; width:30px; border: none;" {{!}} https://chicken.playdf.org/data/items/icons/{{{id}}}.gif | ||
+ | {{!}} style="border: none;" {{!}} {{ #if:{{{num|}}} | {{{num}}} }} {{ #if:{{{prefix|}}} | {{{prefix}}} }} {{Item |id={{{id}}} {{ #if:{{{prefix|}}} | {{{prefix}}} }} {{{item}}} {{ #if:{{{slots|}}} | [{{{slots}}}] }} {{ #if:{{{postfix|}}} | {{{postfix}}} }} }} | ||
+ | {{!}}} | ||
+ | }}</includeonly><noinclude> | ||
+ | ==Description== | ||
+ | The purpose of this template is to link an item, complete with icon. | ||
+ | |||
+ | ''Note: The correct capitalization is '''I'''tem '''L'''ist. Do not forget the second capitalized letter!'' | ||
+ | |||
+ | ====Usage==== | ||
+ | <nowiki> | ||
+ | {{Item List |id=</nowiki>''<id>''<nowiki> |item=</nowiki>''<name>''<nowiki>}} | ||
+ | {{Item List |id=</nowiki>''<id>''<nowiki> |item=</nowiki>''<name>''<nowiki> |num=</nowiki>''<num>''<nowiki>}} | ||
+ | {{Item List |id=</nowiki>''<id>''<nowiki> |item=</nowiki>''<name>''<nowiki> |slots=</nowiki>''<slots>''<nowiki>}} | ||
+ | {{Item List |id=</nowiki>''<id>''<nowiki> |item=</nowiki>''<name>''<nowiki> |prefix=</nowiki>''<text>''<nowiki>}} | ||
+ | {{Item List |id=</nowiki>''<id>''<nowiki> |item=</nowiki>''<name>''<nowiki> |postfix=</nowiki>''<text>''<nowiki>}} | ||
+ | {{Item List |id=</nowiki>''<id>''<nowiki> |item=</nowiki>''<name>''<nowiki> |simple=yes}}</nowiki> | ||
+ | |||
+ | ====Fields==== | ||
+ | {| class="wikitable" style="text-align: left" | ||
+ | | id || The ID of the item as seen in the itemdesctables. | ||
+ | |- | ||
+ | | item || The name of the item to be used and displayed. | ||
+ | |- | ||
+ | | num || The number of items. | ||
+ | |- | ||
+ | | postfix || Text that goes after the number of slots (or the name of the item, in no number of slots is specified). | ||
+ | |- | ||
+ | | prefix || Text that goes before the name of the item (but after the number of items). | ||
+ | |- | ||
+ | | simple || If set to "yes", the template doesn't use the style predefined in it. | ||
+ | |- | ||
+ | | slots || The number of slots in the item. | ||
+ | |} | ||
+ | |||
+ | [[Category:Templates|Item List]] | ||
+ | </noinclude> |
Latest revision as of 16:23, 5 August 2020
Description
The purpose of this template is to link an item, complete with icon.
Note: The correct capitalization is Item List. Do not forget the second capitalized letter!
Usage
{{Item List |id=<id> |item=<name>}} {{Item List |id=<id> |item=<name> |num=<num>}} {{Item List |id=<id> |item=<name> |slots=<slots>}} {{Item List |id=<id> |item=<name> |prefix=<text>}} {{Item List |id=<id> |item=<name> |postfix=<text>}} {{Item List |id=<id> |item=<name> |simple=yes}}
Fields
id | The ID of the item as seen in the itemdesctables. |
item | The name of the item to be used and displayed. |
num | The number of items. |
postfix | Text that goes after the number of slots (or the name of the item, in no number of slots is specified). |
prefix | Text that goes before the name of the item (but after the number of items). |
simple | If set to "yes", the template doesn't use the style predefined in it. |
slots | The number of slots in the item. |