Ad placeholder

Template:Status group page: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Added fields for removal and prevention similar to the older Condition Type pages)
No edit summary
Line 1: Line 1:
<noinclude>{{Under construction}}
<includeonly>{{#lvardef:name|{{#replace:{{{display name|{{{name}}}}}}| |_}}}}
</noinclude><includeonly>{{#lvardef:name|{{#replace:{{{name|{{PAGENAME}}}}}| |_}}}}
{{PageSeo
{{PageSeo
| title = {{{name|{{PAGENAME}}}}}
| title = {{#lvar:name}}
| image = {{{icon|}}}
| description = {{{description|}}}
| description = {{{description|}}}
}}<!--Actual display starts here-->
}}<!--Actual display starts here-->
'''{{#lvar:name}}''' is a [[status group]]. {{{description|}}}
{{Icon|Condition Type Icon.png|30}}'''{{#lvar:name}}''' is a [[status group]]. {{{description|}}}
{{#if:{{{removed by items|{{{removed by spells|}}}}}}|
{{#if:{{{removed by items|{{{removed by spells|}}}}}}|
== Removal ==
== Removal ==
Line 16: Line 14:
}}{{#if: {{{removed by spells|}}} | {{blank}}
}}{{#if: {{{removed by spells|}}} | {{blank}}


The following spells remove all conditions in this status group:
The following spells/actions remove all conditions in this status group:
{{#invoke: ParseList | main | {{{removed by spells}}} | type = htmlList | useTemplate = MdSAI }}
{{#invoke: ParseList | main | {{{removed by spells}}} | type = htmlList | useTemplate = MdSAI }}
}}
}}
Line 28: Line 26:
}}{{#if: {{{immunity from features|}}} | {{blank}}
}}{{#if: {{{immunity from features|}}} | {{blank}}


The following features grant immunity to all conditions in this status group:
The following passive features grant immunity to all conditions in this status group:
{{#invoke: ParseList | main | {{{immunity from features}}} | type = htmlList | useTemplate = MdSAI }}
{{#invoke: ParseList | main | {{{immunity from features}}} | type = htmlList | useTemplate = Pass }}
}}{{#if: {{{immunity from creatures|}}} | {{blank}}
}}{{#if: {{{immunity from creatures|}}} | {{blank}}


Line 39: Line 37:
{{#cargo_query: tables = conditions
{{#cargo_query: tables = conditions
| fields = _pageName = page, name, icon, effects
| fields = _pageName = page, name, icon, effects
| where = status_groups HOLDS '{{#lvar:name}}'
| where = status_groups HOLDS '{{{name}}}'
| order by = name
| order by = name
| default = {{ConditionsTableEmpty}}
| default = {{ConditionsTableEmpty}}
Line 47: Line 45:
}}
}}
{{ConditionsTableFooter}}
{{ConditionsTableFooter}}
</includeonly><noinclude>


Example:
{{Main namespace only|[[Category:Condition types]]{{#cargo_store: _table = status_groups
 
| name = {{#lvar:name}}
<pre>
| display_name = {{{display name|}}}
{{Status group page
| description = {{{description|}}}
| name = SG Blinded
| removed by items = Remedial Potion, Arrow of Salving, Noblestalk, Jhannyl Gloves
| removed by spells = Lesser Restoration, Heal
}}
</pre>
Result:
{{Status group page
| name = SG Blinded
| removed by items = Remedial Potion, Arrow of Salving, Noblestalk, Jhannyl's Gloves
| removed by spells = Lesser Restoration, Heal
| immunity from items = Eversight Ring, Steelwatcher Helmet, Helldusk Helmet, Shar's Spear of Evening
| immunity from features = Devil's Sight, Born into Darkness
| immunity from creatures = Bat, Intellect Devourer, Guardian of Faith
}}
 
<pre>
{{Status group page
| name = SG Surface
| description = I'm not sure what this status group is for, but some characters are immune to it.
}}
}}
</pre>
}}</includeonly><noinclude>{{documentation}}{{#cargo_declare: _table = status_groups
Result:
| name = String (unique, mandatory)
{{Status group page
| display_name = String
| name = SG Surface
| description = Wikitext
| description = I'm not sure what this status group is for, but some characters are immune to it.
}}</noinclude>
}}</noinclude>

Navigation menu