Шаблон:Item List: различия между версиями
Taz (обсуждение | вклад) changing how the db image links work |
Taz (обсуждение | вклад) мНет описания правки |
||
Строка 1: | Строка 1: | ||
<includeonly>{{#if: {{{simple|}}} | https:// | <includeonly>{{#if: {{{simple|}}} | https://cp.originsro.org/item/icon/{{{id}}}.png {{ #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=" | {{!}} style="align:center; width:30px; border: none;" {{!}} https://cp.originsro.org/item/icon/{{{id}}}.png | ||
{{!}} style="border:none | {{!}} style="border: none;" {{!}} {{ #if:{{{num|}}} | {{{num}}} }} {{ #if:{{{prefix|}}} | {{{prefix}}} }} {{Item |id={{{id}}} {{ #if:{{{prefix|}}} | {{{prefix}}} }} {{{item}}} {{ #if:{{{slots|}}} | [{{{slots}}}] }} {{ #if:{{{postfix|}}} | {{{postfix}}} }} }} | ||
{{!}}} | {{!}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Description == | ==Description== | ||
The purpose of this template is to link an item, complete with icon. | 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!'' | ''Note: The correct capitalization is '''I'''tem '''L'''ist. Do not forget the second capitalized letter!'' | ||
=== Usage === | ====Usage==== | ||
< | <nowiki> | ||
{{Item List |id=<id> |item=<name>}} | {{Item List |id=</nowiki>''<id>''<nowiki> |item=</nowiki>''<name>''<nowiki>}} | ||
{{Item List |id=<id> |item=<name> |num=<num>}} | {{Item List |id=</nowiki>''<id>''<nowiki> |item=</nowiki>''<name>''<nowiki> |num=</nowiki>''<num>''<nowiki>}} | ||
{{Item List |id=<id> |item=<name> |slots=<slots>}} | {{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> | |||
{| class="wikitable" | {| class="wikitable" | ||
! Example !! Output | ! Example !! Output | ||
|- | |- | ||
| | | <nowiki>{{Item List |id=2285 |item=Apple of Archer}}</nowiki> || {{Item List |id=2285 |item=Apple of Archer}} | ||
| {{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}} | ||
| | |- | ||
| {{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}} | ||
| {{Item List |id=2229 |item=Helm |slots=1}} | |- | ||
|- | | <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]]) | ||
| {{Item List |id=1550 |item=Book |slots=3 |num=2}} | |- | ||
|- | | <nowiki>*{{Item List |id=2209 |prefix=+5 |item=Ribbon |postfix=of Magical Immunity}}</nowiki> || | ||
| | *{{Item List |id=2209 |prefix=+5 |item=Ribbon |postfix=of Magical Immunity |simple=yes}} | ||
| | |||
* {{Item List |id=5164 |item=Tiara |slots=1 |simple=yes}} with an Elder Willow Card ( | |||
|} | |} | ||
=== Fields === | ====Fields==== | ||
{| class="wikitable" | {| class="wikitable" style="text-align: left" | ||
| id || The ID of the item as seen in the itemdesctables. | |||
| The ID of the item as seen in the itemdesctables. | |- | ||
|- | | item || The name of the item to be used and displayed. | ||
|- | |||
| 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, if no number of slots is specified). | |||
| | |- | ||
|- | | prefix || Text that goes before the name of the item (but after the number of items). | ||
|- | |||
| The number of slots in the item | | simple || If set to "yes", the template doesn't use the style predefined in it. | ||
|- | |||
| slots || The number of slots in the item. | |||
|} | |} | ||
== See Also == | ==See Also== | ||
* [[Template:Map]] | *[[Template:Map]] | ||
* [[Template:Monster]] | *[[Template:Monster]] | ||
* [[Template:Item]] | *[[Template:Item]] | ||
[[Category:Templates]] | [[Category:Templates|Item List]] | ||
</noinclude> | </noinclude> |
Версия от 23:42, 2 апреля 2021
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}}
Example | Output | ||
---|---|---|---|
{{Item List |id=2285 |item=Apple of Archer}} |
| ||
{{Item List |id=914 |item=Fluff |num=3}} |
| ||
{{Item List |id=2229 |item=Helm |slots=1}} |
| ||
{{Item List |id=1550 |item=Book |slots=3 |num=2}} |
| ||
*{{Item List |id=5164 |item=Tiara |slots=1 |simple=yes}} with an Elder Willow Card (+3 [[INT]]) | |||
*{{Item List |id=2209 |prefix=+5 |item=Ribbon |postfix=of Magical Immunity}} |
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, if 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. |
See Also
Эта страница в последний раз была отредактирована 2 апреля 2021 в 23:42.