Template:Condition page: Difference between revisions

Jump to navigation Jump to search
Test to add conditions with the same stack ID only if there are any and now show stack id if there are not.
m (Stack Priority -> Stack priority)
(Test to add conditions with the same stack ID only if there are any and now show stack id if there are not.)
Line 19: Line 19:


== [[Honour mode]] ==
== [[Honour mode]] ==
{{{honour mode}}}}}{{#if:{{{stack id|}}}{{{status groups|}}}{{{tick type|}}}{{{stack type|}}}{{{properties|}}}|{{blank}}
{{{honour mode}}}}}{{#if:{{#ifeq:{{#cargo_query:tables=conditions|where=stack_id='{{{stack id|}}}'|fields=name, effects}}|{{#cargo_query:tables=conditions|where=name='{{#lvar:name}}' AND effects='{{{effects|}}}'|fields=name, effects}}||{{{stack id|}}}}}{{{status groups|}}}{{{tick type|}}}{{{stack type|}}}{{{properties|}}}|{{blank}}


== Properties ==
== Properties ==
{{#if: {{{stack id|}}}|{{blank}}
{{#if: {{#ifeq:{{#cargo_query:tables=conditions|where=stack_id='{{{stack id|}}}'|fields=name, effects}}|{{#cargo_query:tables=conditions|where=name='{{#lvar:name}}' AND effects='{{{effects|}}}'|fields=name, effects}}||{{{stack id|}}}}}|{{blank}}


{{SmallIcon|Info Icon.png|link=Status ID}}[[Stack ID]]: {{code|{{{stack id}}}}}{{Main namespace only|[[Category:Has stack ID]]}}|{{Main namespace only|[[Category:No stack ID]]}}
{{SmallIcon|Info Icon.png|link=Status ID}}[[Stack ID]]: {{code|{{{stack id}}}}}{{Main namespace only|[[Category:Has stack ID]]}}|{{Main namespace only|[[Category:No stack ID]]}}
Line 56: Line 56:
== Notes ==
== Notes ==
{{{notes}}}
{{{notes}}}
}}{{#if:{{{stack id|}}}|{{#ifeq:{{#cargo_query:tables=conditions|where=stack_id='{{{stack id|}}}'|fields=name, effects}}|{{#cargo_query:tables=conditions|where=name='{{#lvar:name}}' AND effects='{{{effects|}}}'||{{blank}}
== Conditions with the same stack ID ==
Conditions with the [[stack ID]] {{code|{{{stack id}}}}}, only one of these can be applied at the same time:
{{#cargo_query:
tables = conditions
|fields = name, icon, effects
|where = stack_id='{{{stack id}}}'
|order by = name
|format=template
|named args = yes
|template=ConditionsTableRow
|intro={{ConditionsTableHeader}}
|outro={{ConditionsTableFooter}}
}}}}
}}
}}
{{#if:{{{suppress sources|}}}||
}}{{#if:{{{suppress sources|}}}||{{blank}}
 
== Sources of {{#lvar:name}} ==
== Sources of {{#lvar:name}} ==
{{Condition sources|{{#lvar:page}}}}
{{Condition sources|{{#lvar:page}}}}
Line 101: Line 117:
| status groups = SG_RemoveOnRespec
| status groups = SG_RemoveOnRespec
| tick type = end
| tick type = end
| stack id = BLADE_WARD
| stack id = HASTE
| stack priority = 10
| stack priority = 10
| stack type = ignore
| stack type = ignore

Navigation menu