Template:Passive inline/Format: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Created page with "<includeonly><span style="white-space: nowrap">{{#if: {{{icon|}}} | {{IconLink|{{{icon}}}|{{{link}}}|{{{name|{{{link}}}}}}|w={{{w|25}}}|h={{{w|25}}}}} | [[{{{link}}}|{{{name|{{{link}}}}}}]]}}</span></includeonly><noinclude> Meant to be used with a Cargo query. Preview: {{Passive inline/Format | name = High Spellcasting | link = High Spellcasting +1 | icon = }} {{Passive inline/Format | name = Sparkswall Armour | link = Sparkswall Armour | icon = }} {{Passive inline/...") |
HiddenDragon (talk | contribs) mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span style="white-space: nowrap">{{#if: {{{icon|}}} | <includeonly><span style="white-space: nowrap">{{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}}} | {{{name|{{{link}}}}}} }}|w={{{w|25}}}|h={{{w|25}}}}}</span></includeonly><noinclude> | |||
Meant to be used with a Cargo query. Preview: | Meant to be used with a Cargo query. Preview: | ||
Usage: | |||
<pre> | |||
{{Passive inline/Format | {{Passive inline/Format | ||
| name = High Spellcasting | | name = High Spellcasting | ||
| link = High Spellcasting +1 | | link = High Spellcasting +1 | ||
| | | altname = | ||
}}</pre> | |||
Result: | |||
{{Passive inline/Format | |||
| name = High Spellcasting | |||
| link = High Spellcasting +1 | |||
| altname = | |||
}} | |||
---- | |||
<pre> | |||
{{Passive inline/Format | |||
| name = Winter's Clutches | |||
| link = Winter's Clutches (passive feature) | |||
| altname = | |||
}}</pre> | |||
Result: | |||
{{Passive inline/Format | |||
| name = Winter's Clutches | |||
| link = Winter's Clutches (passive feature) | |||
| altname = | |||
}} | }} | ||
---- | |||
Usage: | |||
<pre>{{Passive inline/Format | |||
| name = Sparkswall Armour | |||
| link = Sparkswall Armour | |||
| icon = | |||
| altname = Sparky Feature | |||
}}</pre> | |||
Result: | |||
{{Passive inline/Format | {{Passive inline/Format | ||
| name = Sparkswall Armour | | name = Sparkswall Armour | ||
| link = Sparkswall Armour | | link = Sparkswall Armour | ||
| icon = | | icon = | ||
| altname = Sparky Feature | |||
}} | }} | ||
---- | |||
<pre>{{Passive inline/Format | |||
| name = Arcane Battery | |||
| link = Arcane Battery | |||
| icon = Arcane Battery Icon.webp | |||
}}</pre> | |||
{{Passive inline/Format | {{Passive inline/Format | ||
Line 29: | Line 78: | ||
}, | }, | ||
"icon": { | "icon": { | ||
"description": "The icon of the passive feature", | "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" | ||
}, | }, | ||
"name": { | "name": { | ||
"description": " | "description": "Display name for the passive feature link", | ||
"type": "string" | "type": "string" | ||
} | }, | ||
"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> | ||
</noinclude> | </noinclude> |
Latest revision as of 20:24, 13 May 2024
Meant to be used with a Cargo query. Preview:
Usage:
{{Passive inline/Format | name = High Spellcasting | link = High Spellcasting +1 | altname = }}
Result:
{{Passive inline/Format | name = Winter's Clutches | link = Winter's Clutches (passive feature) | altname = }}
Result:
Usage:
{{Passive inline/Format | name = Sparkswall Armour | link = Sparkswall Armour | icon = | altname = Sparky Feature }}
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 |
name | name | Display name for the passive feature link | String | 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 |