11,245
editsRearranged the section layout so that condition sources is above the table of conditions with the same stack ID. The stack ID table can get very long which obscured the more pertinent information about the condition sources.
HiddenDragon (talk | contribs) (Updated inflicts template) |
(Rearranged the section layout so that condition sources is above the table of conditions with the same stack ID. The stack ID table can get very long which obscured the more pertinent information about the condition sources.) |
||
(7 intermediate revisions by one other user not shown) | |||
Line 8: | Line 8: | ||
<!--backwards compat for disease--> | <!--backwards compat for disease--> | ||
| {{#ifeq:{{{disease|}}}|yes|disease|{{{type|}}} }} | | {{#ifeq:{{{disease|}}}|yes|disease|{{{type|}}} }} | ||
}}<!-- 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}}}'||order by=name ASC|format=template|template=counter|default= | |||
}}{{#lvardef:stackid|{{#ifeq:{{#var:counter}}|1||1}}}} | |||
}}<!-- Status properties --> {{#lvardef:FreezeDuration|{{#if:{{#invoke:String2|matchAny|source={{{properties}}}|FreezeDuration}}|1|}} | }}<!-- Status properties --> {{#lvardef:FreezeDuration|{{#if:{{#invoke:String2|matchAny|source={{{properties}}}|FreezeDuration}}|1|}} | ||
Line 21: | Line 23: | ||
{{Condition type|{{#lvar:type}} }}}}{{#if:{{{honour mode|}}}|{{blank}} | {{Condition type|{{#lvar:type}} }}}}{{#if:{{{honour mode|}}}|{{blank}} | ||
== | == Honour mode == | ||
{{{honour mode}}}}}{{#if:{{ | {{{honour mode}}}}}{{#if:{{#lvar:stackid}}{{{status groups|}}}{{{tick type|}}}{{{stack type|}}}{{{properties|}}}|{{blank}} | ||
== Properties == | == Properties == | ||
{{#if:{{ | {{#if:{{#lvar:stackid}}|{{blank}} | ||
{{SmIconLink|Info Icon.png|Stack ID}}: {{code|{{{stack id}}}}}{{Main namespace only|[[Category:Has stack ID]]}}|{{Main namespace only|[[Category:No stack ID]]}} | {{SmIconLink|Info Icon.png|Stack ID}}: {{code|{{{stack id}}}}}{{Main namespace only|[[Category:Has stack ID]]}}|{{Main namespace only|[[Category:No stack ID]]}} | ||
Line 103: | Line 105: | ||
| duration = {{{condition3 duration|}}} | | duration = {{{condition3 duration|}}} | ||
}} | }} | ||
{{main namespace only|{{Inflicts|{{{condition3}}}|cond|type=condition|dc={{{condition3 dc|}}}|save={{{condition3 save|}}}|duration={{{condition3 duration|}}}} | {{main namespace only|{{Inflicts|{{{condition3}}}|cond|type=condition|dc={{{condition3 dc|}}}|save={{{condition3 save|}}}|duration={{{condition3 duration|}}}}}}} | ||
</div> | </div> | ||
}}<references/> | }}<references/> | ||
Line 114: | Line 116: | ||
{{{bugs}}} | {{{bugs}}} | ||
[[Category:Bugs]] | [[Category:Bugs]] | ||
}}{{#if: {{{suppress sources|}}} | | {{blank}} | |||
== Sources of {{#lvar:name}} == | |||
{{Condition sources | {{#lvar:page}} }} | |||
}} | |||
<!--some housekeeping:categories and cargo-->{{Main namespace only|[[Category:Conditions]]{{#cargo_store: _table = conditions | |||
| name = {{#lvar:name}} | |||
| icon = {{#lvar:icon}} | |||
| brief = {{{brief|}}} | |||
| types = {{#lvar:type}} | |||
| condition_name = {{{condition|}}} | |||
| condition2_name = {{{condition2|}}} | |||
| condition3_name = {{{condition3|}}} | |||
}}{{#if:{{#lvar:stackid}}|{{blank}} | }}{{#if:{{#lvar:stackid}}|{{blank}} | ||
Line 129: | Line 145: | ||
|outro={{ConditionsTableFooter}} | |outro={{ConditionsTableFooter}} | ||
}}{{Main namespace only|[[Category:Conditions with shared stack IDs]]}} | }}{{Main namespace only|[[Category:Conditions with shared stack IDs]]}} | ||
}} | }} | ||
}}</includeonly><noinclude>{{documentation}}{{#cargo_declare: _table = conditions | }}</includeonly><noinclude>{{documentation}}{{#cargo_declare: _table = conditions | ||
Line 164: | Line 166: | ||
| condition3_save = String | | condition3_save = String | ||
| condition3_dc = String | | condition3_dc = String | ||
}}</noinclude> | }} | ||
[[Category:Templates]] | |||
[[Category:Condition templates]] | |||
[[Category:Page generating templates]] | |||
[[Category:Cargo templates]] | |||
</noinclude> |