Difference between revisions of "Template:Item List"
From Project Einherjar
(→See Also) |
|||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>[[File:{{{id}}}s.png]] {{{num}}} {{{item|{{{id}}}|{{{item}}}}}} |
− | [[File:{{{id}}}s.png]] {{{item|{{{id}}}|{{{item}}}}}} </includeonly><noinclude>__NOTOC__ | + | </includeonly><noinclude>__NOTOC__ |
+ | {{{#ifexpr: 0 = 0 and 1 = 0 | Logic Fail | Logic Pass}}} | ||
+ | If Statement Documentation, too tired for this<br> | ||
+ | https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23if | ||
− | |||
Line 26: | Line 28: | ||
! Example !! Output | ! Example !! Output | ||
|- | |- | ||
− | | <code><nowiki>{{Item List |id=2285 |item=Apple of Archer}}</nowiki></code> | + | | <code><nowiki>{{Item List |id=2285 |item=Apple of Archer |num=1}}</nowiki></code> |
− | | {{Item List |id=2285 |item=Apple of Archer}} | + | | {{Item List |id=2285 |item=Apple of Archer |num=1}} |
|- | |- | ||
| <code><nowiki>{{Item List |id=914 |item=Fluff |num=3}}</nowiki></code> | | <code><nowiki>{{Item List |id=914 |item=Fluff |num=3}}</nowiki></code> | ||
| {{Item List |id=914 |item=Fluff |num=3}} | | {{Item List |id=914 |item=Fluff |num=3}} | ||
|- | |- | ||
− | | <code><nowiki>{{Item List |id=2229 |item=Helm |slots=1}}</nowiki></code> | + | | <code><nowiki>{{Item List |id=2229 |item=Helm |slots=1 |num=1}}</nowiki></code> |
− | | {{Item List |id=2229 |item=Helm |slots=1}} | + | | {{Item List |id=2229 |item=Helm |slots=1 |num=1}} |
|- | |- | ||
| <code><nowiki>{{Item List |id=1550 |item=Book |slots=3 |num=2}}</nowiki></code> | | <code><nowiki>{{Item List |id=1550 |item=Book |slots=3 |num=2}}</nowiki></code> | ||
| {{Item List |id=1550 |item=Book |slots=3 |num=2}} | | {{Item List |id=1550 |item=Book |slots=3 |num=2}} | ||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 59: | Line 57: | ||
== See Also == | == See Also == | ||
− | |||
* [[Template:Monster]] | * [[Template:Monster]] | ||
* [[Template:Item]] | * [[Template:Item]] |
Latest revision as of 23:49, 12 May 2023
Logic Fail
If Statement Documentation, too tired for this
https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23if
Description[edit]
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[edit]
{{Item List |id=<id> |item=<name>}} {{Item List |id=<id> |item=<name> |num=<num>}} {{Item List |id=<id> |item=<name> |slots=<slots>}}
Example | Output |
---|---|
{{Item List |id=2285 |item=Apple of Archer |num=1}}
|
File:2285s.png 1 Apple of Archer |
{{Item List |id=914 |item=Fluff |num=3}}
|
File:914s.png 3 Fluff |
{{Item List |id=2229 |item=Helm |slots=1 |num=1}}
|
File:2229s.png 1 Helm |
{{Item List |id=1550 |item=Book |slots=3 |num=2}}
|
File:1550s.png 2 Book |
Fields[edit]
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 |