Difference between revisions of "Template:Item List"

From Project Alfheim Wiki
Jump to navigation Jump to search
alfheim>Blueness
 
(Created page with "{{plainlink |url={{database}}/item/view/?id={{#sub: {{{id}}}|0|{{#pos:{{{id}}}| }}}} {{#sub:{{{id}}}|{{#pos:{{{id}}}| }}}}}}")
Line 1: Line 1:
<includeonly>{{#if: {{{simple|}}} | https://db.irowiki.org/image/item/{{{id}}}.png {{ #if:{{{num|}}} | {{{num}}} }} {{Item |id={{{id}}} {{ #if:{{{prefix|}}} | {{{prefix}}} }} {{{item}}} {{ #if:{{{slots|}}} | <nowiki>[</nowiki>{{{slots}}}<nowiki>]</nowiki> }} {{ #if:{{{postfix|}}} | {{{postfix}}} }} }} | {{{!}} style="background:none; padding:1px; border-spacing:0px;"
+
{{plainlink |url={{database}}/item/view/?id={{#sub: {{{id}}}|0|{{#pos:{{{id}}}| }}}} {{#sub:{{{id}}}|{{#pos:{{{id}}}| }}}}}}
{{!}} style="align:center; width:30px; border: none;" {{!}} https://db.irowiki.org/image/item/{{{id}}}.png
 
{{!}} style="border: none;" {{!}} {{ #if:{{{num|}}} | {{{num}}} }} {{ #if:{{{prefix|}}} | {{{prefix}}} }} {{Item |id={{{id}}} {{ #if:{{{prefix|}}} | {{{prefix}}} }} {{{item}}} {{ #if:{{{slots|}}} | <nowiki>[</nowiki>{{{slots}}}<nowiki>]</nowiki> }} {{ #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>}}</nowiki>
 
 
 
{| class="wikitable"
 
! Example !! Output
 
|-
 
| <nowiki>{{Item List |id=2285 |item=Apple of Archer}}</nowiki> ||  {{Item List |id=2285 |item=Apple of Archer}}
 
|-
 
| <nowiki>{{Item List |id=914 |item=Fluff |num=3}}</nowiki> ||  {{Item List |id=914 |item=Fluff |num=3}}
 
|-
 
| <nowiki>{{Item List |id=2229 |item=Helm |slots=1}}</nowiki> ||  {{Item List |id=2229 |item=Helm |slots=1}}
 
|-
 
| <nowiki>{{Item List |id=1550 |item=Book |slots=3 |num=2}}</nowiki> ||  {{Item List |id=1550 |item=Book |slots=3 |num=2}}
 
|-
 
| <nowiki>*{{Item List |id=5164 |item=Tiara |slots=1 |simple=yes}} with an Elder Willow Card (+3 [[INT]])</nowiki> ||
 
*{{Item List |id=5164 |item=Tiara |slots=1 |simple=yes}} with an Elder Willow Card (+3 [[INT]])
 
|}
 
 
 
====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 the item
 
|-
 
| slots || The number of slots in the item
 
|}
 
 
 
==See Also==
 
*[[Template:Map]]
 
*[[Template:Monster]]
 
*[[Template:Item]]
 
 
 
[[Category:Templates|Item List]]
 
</noinclude>
 

Revision as of 03:18, 6 January 2022