Template:Passive inline/Format: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary |
HiddenDragon (talk | contribs) m (Modify to remove display name) |
||
(3 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 | ||
| fields = icon | |||
| where = _pageName = "{{{item}}}" | |||
| format = template | |||
| template = trim | |||
}} | Generic Feature Icon.webp }} }}|{{{link}}}|{{#if: {{{altname|}}} | {{{altname}}} | {{{link}}}}}|w={{{w|25}}}|h={{{w|25}}}|nowrap=y}}</includeonly><noinclude> | |||
Meant to be used with a Cargo query. Preview: | Meant to be used with a Cargo query. Preview: | ||
Line 5: | Line 10: | ||
<pre> | <pre> | ||
{{Passive inline/Format | {{Passive inline/Format | ||
| | | link = High Spellcasting (+1) | ||
| | | altname = | ||
}}</pre> | }}</pre> | ||
Result: | Result: | ||
{{Passive inline/Format | {{Passive inline/Format | ||
| | | link = High Spellcasting (+1) | ||
| link = | | altname = | ||
}} | |||
---- | |||
<pre> | |||
{{Passive inline/Format | |||
| link = Winter's Clutches (passive feature) | |||
| altname = Winter's Clutches | |||
}}</pre> | |||
Result: | |||
{{Passive inline/Format | |||
| link = Winter's Clutches (passive feature) | |||
| altname = Winter's Clutches | |||
}} | }} | ||
Line 19: | Line 37: | ||
Usage: | Usage: | ||
<pre>{{Passive inline/Format | <pre>{{Passive inline/Format | ||
| link = Sparkswall Armour | | link = Sparkswall Armour | ||
| | | item = The Protecty Sparkswall | ||
}}</pre> | }}</pre> | ||
Result: | Result: | ||
{{Passive inline/Format | {{Passive inline/Format | ||
| link = Sparkswall Armour | | link = Sparkswall Armour | ||
| | | item = The Protecty Sparkswall | ||
}} | }} | ||
Line 58: | Line 72: | ||
"description": "The icon of the passive feature. If not specified, will default to Generic Feature Icon.webp", | "description": "The icon of the passive feature. If not specified, will default to Generic Feature Icon.webp", | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
"altname": { | "altname": { | ||
"description": "Alternative display name that will override the name", | "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" | "type": "string" | ||
} | } |
Latest revision as of 16:35, 6 August 2024
Meant to be used with a Cargo query. Preview:
Usage:
{{Passive inline/Format | link = High Spellcasting (+1) | altname = }}
Result:
{{Passive inline/Format | link = Winter's Clutches (passive feature) | altname = Winter's Clutches }}
Result:
Usage:
{{Passive inline/Format | link = Sparkswall Armour | item = The Protecty Sparkswall }}
Result:
{{Passive inline/Format | name = Arcane Battery | link = Arcane Battery | icon = Arcane Battery Icon.webp }}
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
link | link | The page of the passive feature. | String | required |
icon | icon | The icon of the passive feature. If not specified, will default to Generic Feature Icon.webp | File | optional |
altname | altname | Alternative display name that will override the name | String | optional |
item | item | If an item icon is to be shown instead, specify it here. | String | optional |