Ad placeholder

Template:Infobox creature/passives format: Difference between revisions

Jump to navigation Jump to search
Specifying item always overrides, otherwise it will use the icon
(Created page with "<includeonly><div class="bg3wiki-infobox-creature-feature"> <div class="bg3wiki-infobox-creature-feature-name"> {{IconLink | block = yes | size = 25 | {{{icon|Generic Buff Icon.webp}}} | {{{_pageName}}} | {{{name}}} }} </div> <div class="bg3wiki-infobox-creature-feature-brief"> {{{brief}}} </div> </div></includeonly><noinclude> Used to format features in the infobox. Meant to be invoked by Template:Infobox creature/feature query. Example: <pre> {{Infobox creature/f...")
 
(Specifying item always overrides, otherwise it will use the icon)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div class="bg3wiki-infobox-creature-feature">
<includeonly><div class="bg3wiki-pi-creature-detail">
<div class="bg3wiki-infobox-creature-feature-name">
<div class="bg3wiki-pi-creature-detail-title">
{{IconLink | block = yes | size = 25 | {{{icon|Generic Buff Icon.webp}}} | {{{_pageName}}} | {{{name}}} }}
{{IconLink
| block = yes
| size = 25
| {{#if: {{{item|}}}
  | {{#cargo_query: tables = item_icon
    | fields = icon
    | where = _pageName = "{{{item}}}"
    | format = template
    | template = trim
    | limit = 1
    | more results text =
    }}
  | {{#if: {{{icon|}}} | {{{icon}}} | Generic Feature Icon.webp }}
  }}
| {{{_pageName}}}
| '''{{{name}}}'''
}}
</div>
</div>
<div class="bg3wiki-infobox-creature-feature-brief">
<div class="bg3wiki-pi-creature-detail-text">
{{{brief}}}
{{#if:{{{brief|}}} | {{{brief}}} | {{{description}}} }}
</div>
</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
Used to format features in the infobox. Meant to be invoked by [[Template:Infobox creature/feature query]].
Used to format passive features in the infobox. Meant to be invoked by [[Template:Infobox creature/passives query]].


Example:
Examples:


<pre>
<pre>
{{Infobox creature/feature format
{{Infobox creature/passives format
| _pageName = Cull the Weak (Drider)
| _pageName = Cull the Weak (Drider)
| name = Cull the Weak
| name = Cull the Weak
Line 20: Line 36:
</pre>
</pre>


{{Infobox creature/feature format
{{Infobox creature/passives format
| _pageName = Cull the Weak (Drider)
| _pageName = Cull the Weak (Drider)
| name = Cull the Weak
| name = Cull the Weak
| icon = Generic Physical Icon.webp
| icon = Generic Physical Icon.webp
| brief = Deals +2d6 damage to targets below 50% HP.
| brief = Deals +2d6 damage to targets below 50% HP.
}}
<pre>
{{Infobox creature/passives format
| _pageName = Ambusher (+1)
| name = Ambusher (+1)
| icon =
| item = Scale Mail +2
| brief = +1 to [[initiative]]
}}
</pre>
{{Infobox creature/passives format
| _pageName = Ambusher (+1)
| name = Ambusher (+1)
| icon =
| item = Scale Mail +2
| brief = Gain +1 to [[initiative]] rolls.
}}
}}
</noinclude>
</noinclude>

Navigation menu