10,981
editsMore actions
Template:Infobox creature/passives format (view source)
Revision as of 19:49, 22 April 2024
, 22 AprilChange the way specifying an item icon works.
(Support specifying item icon.) |
(Change the way specifying an item icon works.) |
||
Line 4: | Line 4: | ||
| block = yes | | block = yes | ||
| size = 25 | | size = 25 | ||
| {{ | | {{#if: {{{icon|}}} | ||
| {{{icon}}} | |||
| {{#if: {{{item|}}} | |||
| {{#cargo_query: tables = item_icon | |||
| fields = icon | |||
| where = _pageName = "{{{item}}}" | |||
| format = template | |||
| template = trim | |||
}} | |||
| Generic Buff Icon.webp | |||
}} | |||
}} | |||
| {{{_pageName}}} | | {{{_pageName}}} | ||
| {{{name}}} | | {{{name}}} | ||
Line 38: | Line 49: | ||
| name = Ambusher (+1) | | name = Ambusher (+1) | ||
| icon = | | icon = | ||
| item | | item = Scale Mail +2 | ||
| brief = +1 to [[initiative]] | | brief = +1 to [[initiative]] | ||
}} | }} | ||
Line 47: | Line 58: | ||
| name = Ambusher (+1) | | name = Ambusher (+1) | ||
| icon = | | icon = | ||
| item | | item = Scale Mail +2 | ||
| brief = Gain +1 to [[initiative]] rolls. | | brief = Gain +1 to [[initiative]] rolls. | ||
}} | }} | ||
</noinclude> | </noinclude> |