Template:Passive feature page: Difference between revisions

Jump to navigation Jump to search
Added cost field, for passive feature/reactions
(Add "brief" field for short descriptions for use in infoboxes and potentially other places.)
(Added cost field, for passive feature/reactions)
(13 intermediate revisions by 3 users not shown)
Line 11: Line 11:
<h2> Description </h2>
<h2> Description </h2>


{{{description}}} {{#if: {{{warning|}}} | {{blank}}
{{{description}}} {{#if: {{{extra description|}}} | {{blank}}
 
{{{extra description}}}
 
}}{{#if: {{{warning|}}} | {{blank}}


{{Colour|white|{{{warning}}}}}  
{{Colour|white|{{{warning}}}}}  
Line 19: Line 23:
{{{additional}}}
{{{additional}}}


}}{{#if: {{{recharge|}}} {{{uid|}}} | {{blank}}
}}{{#if: {{{cost|}}} {{{recharge|}}} {{{uid|}}} | {{blank}}


<h3> Details </h3>
<h3> Details </h3>


<dl class="bg3wiki-property-list">
<dl class="bg3wiki-property-list">
{{#if: {{{recharge|}}}
{{#if: {{{cost|}}}
| <dt> Cost: </dt><dd> {{InfoBlob|{{ResourceList|{{{cost}}}}}}} </dd>
}}{{#if: {{{recharge|}}}
| <dd>{{Recharge | {{{recharge}}} }}</dd>
| <dd>{{Recharge | {{{recharge}}} }}</dd>
}}{{#if: {{{uid|}}}
}}{{#if: {{{uid|}}}
Line 30: Line 36:
}}
}}
</dl>
</dl>
}}{{#if: {{{higher levels|}}} | {{blank}}{{main namespace only|[[Category:Passives that gain benefits at higher levels]]}}
<h2> At higher levels </h2>
{{{higher levels}}}
}}
}}


{{clear}}
{{clear}}


</div>{{#if: {{{grants|}}} | {{blank}}
</div>{{#if: {{{grants|}}} |


<h2> Grants: </h2>
<h2> Grants: </h2>
Line 42: Line 53:
</div>
</div>


}}{{#if: {{{condition|}}} | {{blank}}
}}{{#if: {{{condition|}}} |


<h2> Condition: {{{condition}}} </h2>
<h2> Condition: {{{condition}}} </h2>
Line 81: Line 92:
</div>
</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>
}}
}}


Line 116: Line 134:
|order by=weapons._pageName
|order by=weapons._pageName
|more results text=
|more results text=
|intro=Granted by the weapons:<ul style="list-style: none;">
|intro=<p>Granted by the weapons:<ul style="list-style: none;">
|outro=</ul>
|outro=</ul></p>
|default=
|default=
|format=template
|format=template
|named args = yes
|named args = yes
|template=Passive sources/format
|template=Passive sources/format
}}
}}{{#cargo_query:
{{#cargo_query:
tables=equipment
tables=equipment
|fields= _pageName = page, name, legacy
|fields= _pageName = page, name, legacy
Line 129: Line 146:
|order by=equipment._pageName
|order by=equipment._pageName
|more results text=
|more results text=
|intro=Granted by the equipment:<ul style="list-style: none;">
|intro=<p>Granted by the equipment:<ul style="list-style: none;">
|outro=</ul>
|outro=</ul></p>
|default=
|default=
|format=template
|format=template
Line 146: Line 163:
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>
</div>
{{clear}}
}} {{#if: {{{bugs|}}} |
{{#if: {{{notes|}}} | == Notes == }}
 
{{trim|{{#if: {{{notes|}}} | <div class="bg3wiki-tooltip-box bg3wiki-tooltip">
<h2> Bugs </h2>
{{{notes}}}
 
</div>| {{blank}}}}}}{{#if: {{{video|}}} |
<div class="bg3wiki-tooltip-box bg3wiki-tooltip">
{{{bugs}}}
</div>
{{Main namespace only|[[Category:Bugs]]}}
}} {{#if: {{{video|}}} |


<h2> Visuals </h2>
<h2> Visuals </h2>
Line 160: Line 188:
[[File:{{{video}}}]]
[[File:{{{video}}}]]


}}
}}  
{{#switch: {{{this is an example|}}}
{{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:
| yes =
| #default = {{#ifeq: {{#lvar: hasclasslearn}} | 1 | {{Main only|[[Category:Class features]]}}}} {{#ifeq: {{#lvar: hasracelearn}} | 1 | {{Main only|[[Category:Racial features]]}}}} {{Main only|[[Category:Passive features]]}} {{#if: {{{toggleable|}}} | {{Main only|[[Category:Toggleable passive features]]}} }} {{#if: {{{variants|}}} | {{Main only|[[Category:Pages using deprecated parameters]]}}}} {{#cargo_store:
_table = passives
_table = passives
| name = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
| name = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
Line 174: Line 200:
| is_class = {{#ifeq: {{#lvar: hasclasslearn}} | 1 | yes}}
| is_class = {{#ifeq: {{#lvar: hasclasslearn}} | 1 | yes}}
| description = {{{description|}}}
| description = {{{description|}}}
| brief = {{{brief|}}}
| extra_description = {{{extra description|}}}
| brief = {{{brief| {{{description|}}} }}}
| recharge = {{{recharge|}}}
| recharge = {{{recharge|}}}
}}
}}
Line 190: Line 217:
| is_class = Boolean
| is_class = Boolean
| description = Wikitext
| description = Wikitext
| extra_description = Wikitext
| brief = Wikitext
| brief = Wikitext
| recharge = String
| recharge = String
}}
}}
</noinclude>
</noinclude>

Navigation menu