More actions
HiddenDragon (talk | contribs) m Add default passive icon |
HiddenDragon (talk | contribs) Show display name by default |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly | <includeonly>{{IconLink|{{#if: {{{icon|}}} | {{{icon}}} | {{#if: {{{item|}}} | {{#cargo_query: tables = item_icon | ||
Meant to be used with | | fields = icon | ||
| where = _pageName = "{{{item}}}" | |||
| format = template | |||
| template = trim | |||
}} | Generic Feature Icon.webp }} }}|{{{link}}}|{{#if: {{{altname|}}} | {{{altname}}} | {{{name|{{{link}}}}}}}}|w={{{w|25}}}|h={{{w|25}}}|nowrap=y}}</includeonly><noinclude>{{Documentation|content= | |||
Meant to be used with the Cargo query in [[Template:Passive inline]]. | |||
== Examples == | |||
{{Template demo | |||
| style = table | |||
| <nowiki> | |||
{{Passive inline/Format | {{Passive inline/Format | ||
| | | link = High Spellcasting (+1) | ||
| | | altname = | ||
}} | }}</nowiki> | ||
| <nowiki> | |||
{{Passive inline/Format | {{Passive inline/Format | ||
| | | link = Winter's Clutches (passive feature) | ||
| altname = Winter's Clutches | |||
}}</nowiki> | |||
| <nowiki>{{Passive inline/Format | |||
| link = Sparkswall Armour | | link = Sparkswall Armour | ||
| icon = | | item = The Protecty Sparkswall | ||
}}</nowiki> | |||
| <nowiki>{{Passive inline/Format | |||
| name = Pact of the Blade | |||
| link = Pact of the Blade (passive feature) | |||
| icon = Pact of the Blade passive feature Icon.webp | |||
}}</nowiki> | |||
}} | }} | ||
== Template data == | == Template data == | ||
<templatedata> | <templatedata> | ||
Line 31: | Line 44: | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
"altname": { | |||
"description": "Alternative display name that will override the name", | |||
"type": "string" | |||
}, | |||
"item": { | |||
"description": "If an item icon is to be shown instead, specify it here.", | |||
"type": "string" | |||
} | |||
} | } | ||
} | } | ||
</templatedata> | </templatedata> | ||
}} | |||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |