Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Passive inline/format: Difference between revisions

Template page
m Add default passive icon
Show display name by default
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span style="white-space: nowrap">{{IconLink|{{#if: {{{icon|}}} | {{{icon}}} | Generic Feature Icon.webp}}|{{{link}}}|{{{name|{{{link}}}}}}|w={{{w|25}}}|h={{{w|25}}}}}</span></includeonly><noinclude>
<includeonly>{{IconLink|{{#if: {{{icon|}}} | {{{icon}}} | {{#if: {{{item|}}} | {{#cargo_query: tables = item_icon
Meant to be used with a Cargo query. Preview:
      | 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
| name = High Spellcasting
| link = High Spellcasting (+1)
| link = High Spellcasting +1
| altname =  
}}
}}</nowiki>
 
| <nowiki>
{{Passive inline/Format
{{Passive inline/Format
| name = Sparkswall Armour
| 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>
}}
}}


{{Passive inline/Format
| name = Arcane Battery
| link = Arcane Battery
| icon = Arcane Battery Icon.webp
}}
== Template data ==
== Template data ==
<templatedata>
<templatedata>
Line 31: Line 44:
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"name": {
        "altname": {
"description": "Alternative display name for the passive feature link",
            "description": "Alternative display name that will override the name",
"type": "string"
            "type": "string"
}
        },
        "item": {
            "description": "If an item icon is to be shown instead, specify it here.",
            "type": "string"
        }
}
}
}
}
</templatedata>
</templatedata>
}}
[[Category:Templates]]
</noinclude>
</noinclude>