Template:Passive feature page: Difference between revisions

Jump to navigation Jump to search
Added higher levels field
No edit summary
(Added higher levels field)
(59 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>{{PageSeo
<includeonly>{{PageSeo
| description = {{{plain summary|{{{summary}}}}}}
| description = {{{plain summary|{{{summary}}}}}}
| image = {{#if: {{{image|}}} | {{{image|}}} | NoImage Icon.webp}}
| image = {{#if:{{{icon|}}}|{{{icon}}}|{{#if:{{{image|}}}|{{{image}}}}}}}
}} __NOTOC__
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{#if: {{{image|}}} {{{icon|}}}
| [[File:{{{image|{{{icon|}}}}}}|frameless|right]]
}}
}}
__NOTOC__
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">[[File:{{#if: {{{image|}}} | {{{image|}}} | NoImage Icon.webp}}|frameless|right]]
{{{summary}}}
{{{summary}}}
 
<h2> Description </h2>
<h2> Description </h2>
{{{description}}}


{{#if: {{{additional|}}} |
{{{description}}} {{#if: {{{extra description|}}} | {{blank}}
{{{additional}}}| {{blank}}
 
{{{extra description}}}
 
}}{{#if: {{{warning|}}} | {{blank}}
 
{{Colour|white|{{{warning}}}}}
 
}}{{#if: {{{additional|}}} | {{blank}}
 
{{{additional}}}
 
}}{{#if: {{{recharge|}}} {{{uid|}}} | {{blank}}
 
<h3> Details </h3>
 
<dl class="bg3wiki-property-list">
{{#if: {{{recharge|}}}
| <dd>{{Recharge | {{{recharge}}} }}</dd>
}}{{#if: {{{uid|}}}
| <dd>{{uid | {{{uid}}} }}</dd>
}}
</dl>
}}{{#if: {{{higher levels|}}} | {{blank}}{{main namespace only|[[Category:Passives that gain benefits at higher levels]]}}
 
<h2> At higher levels </h2>
 
{{{higher levels}}}
}}
 
{{clear}}
 
</div>{{#if: {{{grants|}}} |
 
<h2> Grants: </h2>
 
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{#invoke: ParseList | main | {{{grants}}} | type = htmlListNoBullets | useTemplate = SAI/fixed }}
</div>
 
}}{{#if: {{{condition|}}} |
 
<h2> Condition: {{{condition}}} </h2>
 
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{condition}}}
| save = {{{condition save|}}}
| dc = {{{condition dc|}}}
| duration = {{{condition duration|}}}
}}
{{main namespace only|{{Inflicts|{{{condition}}}|passive}}}}
</div>
 
}}{{#if: {{{condition2|}}} | {{blank}}
 
<h2> Condition: {{{condition2}}} </h2>
 
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{condition2}}}
| save = {{{condition2 save|}}}
| dc = {{{condition2 dc|}}}
| duration = {{{condition2 duration|}}}
}}
{{main namespace only|{{Inflicts|{{{condition2}}}|passive}}}}
</div>
 
}}{{#if: {{{condition3|}}} | {{blank}}
 
<h2> Condition: {{{condition3}}} </h2>
 
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Condition | {{{condition3}}}
| save = {{{condition3 save|}}}
| dc = {{{condition3 dc|}}}
| duration = {{{condition3 duration|}}}
}}
{{main namespace only|{{Inflicts|{{{condition3}}}|passive}}}}
</div>
 
}} {{#if: {{{area|}}} |
 
<h2> Area: {{{area}}} </h2>
 
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common">
{{Area full|{{{area}}}|duration={{{area duration|}}}|shape={{{area shape|}}}|range m={{{area range m|}}}|range ft={{{area range ft|}}}}}
</div>
}}
}}
{{clear}}</div>


<h2> How to Learn </h2>
<h2> How to learn </h2>
{{#lvardef: how-to-learn-content |
{{#lvardef: how-to-learn-content |
   {{#lvardef: classes-learn-list |
   {{#lvardef: classes-learn-list |
     {{#loop: level | 1 | 20 |
     {{#loop: level | 1 | 20 |
       {{#if: {{{ class learns at level {{#var:level}} |}}} | {{#lvardef:hasclasslearn|1}}{{blank}}
       {{#if: {{{ class learns at level {{#var:level}} |}}} | {{#lvardef:hasclasslearn|1}}{{blank}}
* Class Level {{#var:level}}: {{#invoke: ParseList | main | {{{ class learns at level {{#var:level}} }}} | useTemplate = Class }}
* Class level {{#var:level}}: {{#invoke: ParseList | main | {{{ class learns at level {{#var:level}} }}} | useTemplate = Class }}
       }}
       }}
     }}
     }}
Line 26: Line 110:
     {{#loop: level | 1 | 20 |
     {{#loop: level | 1 | 20 |
       {{#if: {{{ race learns at level {{#var:level}} |}}} | {{#lvardef:hasracelearn|1}}{{blank}}
       {{#if: {{{ race learns at level {{#var:level}} |}}} | {{#lvardef:hasracelearn|1}}{{blank}}
* Character Level {{#var:level}}: {{#invoke: ParseList | main | {{{ race learns at level {{#var:level}} }}} | useTemplate = Race }}
* Character level {{#var:level}}: {{#invoke: ParseList | main | {{{ race learns at level {{#var:level}} }}} | useTemplate = Race }}
       }}
       }}
     }}
     }}
Line 37: Line 121:
{{#lvar:races-learn-list}}
{{#lvar:races-learn-list}}


(Character Level is the sum of all Class Levels for a multi-classed character.)
<span style="font-size:85%;">([[Character level]] is the sum of all class levels for a multi-classed character.)</span>
   }}{{#if: {{{granted by feats|}}} | {{blank}}
   }}{{#if: {{{granted by feats|}}} | {{blank}}


Granted by the Feats:
Granted by the feats:
{{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }}
{{#invoke: ParseList | main | {{{granted by feats}}} | makeLinks = yes }}
   }}{{#if: {{{granted by items|}}} | {{blank}}
   }}{{#cargo_query:
 
tables=weapons
Granted by the Items:
|fields= _pageName = page, name, legacy
{{#invoke: ParseList | main | {{{granted by items}}} | useTemplate = MdRarityItem }}
|where=passives HOLDS "{{PAGENAME}}" OR passives_main_hand HOLDS "{{PAGENAME}}" OR passives_off_hand HOLDS "{{PAGENAME}}"
  }}{{#if: {{{granted by spells|}}} | {{blank}}
|order by=weapons._pageName
|more results text=
|intro=<p>Granted by the weapons:<ul style="list-style: none;">
|outro=</ul></p>
|default=
|format=template
|named args = yes
|template=Passive sources/format
}}{{#cargo_query:
tables=equipment
|fields= _pageName = page, name, legacy
|where=passives HOLDS "{{PAGENAME}}"
|order by=equipment._pageName
|more results text=
|intro=<p>Granted by the equipment:<ul style="list-style: none;">
|outro=</ul></p>
|default=
|format=template
|named args = yes
|template=Passive sources/format
}}{{#if: {{{granted by spells|}}} | {{blank}}


Granted by the Spells:
Granted by the spells:
{{#invoke: ParseList | main | {{{granted by spells}}} | makeLinks = yes }}
{{#invoke: ParseList | main | {{{granted by spells}}} | makeLinks = yes }}
   }}{{#if: {{{used by creatures|}}} | {{blank}}
   }}{{#if: {{{used by creatures|}}} | {{blank}}


Used by Creatures:
Used by creatures:
{{#invoke: ParseList | main | {{{used by creatures}}} | makeLinks = yes }}
{{#invoke: ParseList | main | {{{used by creatures}}} | makeLinks = yes }}
   }}{{#if:{{{other ways to learn|}}} | {{blank}}
   }}{{#if:{{{other ways to learn|}}} | {{blank}}
Other ways to learn:
Other ways to learn:


{{{other ways to learn}}} }}
{{{other ways to learn}}}
  }}
}}<div class="bg3wiki-tooltip-box">
}}<div class="bg3wiki-tooltip-box">
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}
{{#lvar: how-to-learn-content | ''(Information not yet added.)'' }}
</div> {{#if: {{{notes|}}} |
<h2> Notes </h2>
<div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{notes}}}
</div>
}} {{#if: {{{bugs|}}} |
<h2> Bugs </h2>
<div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{bugs}}}
</div>
</div>
{{clear}}
{{Main namespace only|[[Category:Bugs]]}}
{{#if: {{{notes|}}} | == Notes == }}
}} {{#if: {{{video|}}} |
{{trim|{{#if: {{{notes|}}} | <div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{notes}}}
</div>| {{blank}}}}}}{{#if: {{{video|}}} |


<h2> Visuals </h2>
<h2> Visuals </h2>
Line 71: Line 186:
[[File:{{{video}}}]]
[[File:{{{video}}}]]


}}
{{Main namespace only|{{#ifeq: {{#lvar: hasclasslearn}} | 1 | [[Category:Class features]]}} {{#ifeq: {{#lvar: hasracelearn}} | 1 | [[Category:Racial features]]}} [[Category:Passive features]] {{#if: {{{toggleable|}}} | [[Category:Toggleable passive features]] }} {{#if: {{{variants|}}} | [[Category:Pages using deprecated parameters]]}} {{#cargo_store:
_table = passives
| name = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
| image = {{{image|}}}
| icon = {{{icon|}}}
| toggleable = {{IfEmpty | {{{toggleable|}}} | no }}
| is_item = {{IfEmpty | {{{granted by items|}}} | no }}
| is_feat = {{IfEmpty | {{{granted by feats|}}} | no }}
| is_racial = {{#ifeq: {{#lvar: hasracelearn}} | 1 | yes}}
| is_class = {{#ifeq: {{#lvar: hasclasslearn}} | 1 | yes}}
| description = {{{description|}}}
| extra_description = {{{extra description|}}}
| brief = {{{brief| {{{description|}}} }}}
| recharge = {{{recharge|}}}
}}
}}</includeonly><noinclude>
{{documentation}}
{{#cargo_declare:
_table = passives
| name = String
| image = File
| icon = File
| toggleable = Boolean
| is_item = Boolean
| is_feat = Boolean
| is_racial = Boolean
| is_class = Boolean
| description = Wikitext
| extra_description = Wikitext
| brief = Wikitext
| recharge = String
}}
}}
<!-- CATEGORIES -->{{#ifeq: {{{this is an example|}}} ||
{{#ifeq: {{#lvar: hasclasslearn}} | 1 | [[Category:Class features]]}}
{{#ifeq: {{#lvar: hasracelearn}} | 1 | [[Category:Racial features]]}}
[[Category:Passive features]]
}}<!-- End if type is not none -->
</includeonly><noinclude>
{{/doc}}
</noinclude>
</noinclude>

Navigation menu