Template:Condition page: Difference between revisions

Jump to navigation Jump to search
Just store brief only if specified
(Add support for grants, and specifying conditions applied by this condition)
(Just store brief only if specified)
(7 intermediate revisions by the same user not shown)
Line 10: Line 10:


}}<!-- Check if the stack ID is used by any other conditions and save it as #lvar:stackid --> {{#if:{{{stack id|}}}|{{#vardefine:counter|0
}}<!-- Check if the stack ID is used by any other conditions and save it as #lvar:stackid --> {{#if:{{{stack id|}}}|{{#vardefine:counter|0
}}{{#cargo_query:tables=conditions|fields=name|where=stack_id='{{{stack id}}}'|format=template|template=counter
}}{{#cargo_query:tables=conditions|fields=name|where=stack_id='{{{stack id}}}'||order by=name ASC|format=template|template=counter|default=
}}{{#lvardef:stackid|{{#ifeq:{{#var:counter}}|1||1}}}}
}}{{#lvardef:stackid|{{#ifeq:{{#var:counter}}|1||1}}}}


Line 77: Line 77:
| duration = {{{condition duration|}}}
| duration = {{{condition duration|}}}
}}
}}
{{main namespace only|{{Inflicts|{{{condition}}}|passive}}}}
{{main namespace only|{{Inflicts|{{{condition}}}|cond}}}}
</div>
</div>


Line 90: Line 90:
| duration = {{{condition2 duration|}}}
| duration = {{{condition2 duration|}}}
}}
}}
{{main namespace only|{{Inflicts|{{{condition2}}}|passive}}}}
{{main namespace only|{{Inflicts|{{{condition2}}}|cond}}}}
</div>
</div>


Line 103: Line 103:
| duration = {{{condition3 duration|}}}
| duration = {{{condition3 duration|}}}
}}
}}
{{main namespace only|{{Inflicts|{{{condition3}}}|passive}}}}
{{main namespace only|{{Inflicts|{{{condition3}}}|cond}}}}
</div>
</div>
 
}}<references/>
}}
<references/>
{{#if:{{{notes|}}}|
{{#if:{{{notes|}}}|
== Notes ==
== Notes ==
Line 122: Line 120:
{{#cargo_query:
{{#cargo_query:
tables = conditions
tables = conditions
|fields = name, icon, effects
|fields = _pageName = page, name, icon, effects
|where = stack_id='{{{stack id}}}'
|where = stack_id='{{{stack id}}}'
|order by = name
|order by = name
Line 140: Line 138:
| name = {{#lvar:name}}
| name = {{#lvar:name}}
| icon = {{#lvar:icon}}
| icon = {{#lvar:icon}}
| brief = {{{brief | {{{effects|}}} }}}
| brief = {{{brief|}}}
| types = {{#lvar:type}}
| types = {{#lvar:type}}
| condition_name = {{{condition|}}}
| condition2_name = {{{condition2|}}}
| condition3_name = {{{condition3|}}}
}}
}}
}}</includeonly><noinclude>{{documentation}}{{#cargo_declare: _table = conditions
}}</includeonly><noinclude>{{documentation}}{{#cargo_declare: _table = conditions
Line 154: Line 155:
| properties = List (,) of String
| properties = List (,) of String
| stack_type = String
| stack_type = String
| condition_name = String
| condition_save = String
| condition_dc = String
| condition2_name = String
| condition2_save = String
| condition2_dc = String
| condition3_name = String
| condition3_save = String
| condition3_dc = String
}}</noinclude>
}}</noinclude>

Navigation menu