42,423
editsOrder stack id conditions by name
HiddenDragon (talk | contribs) mNo edit summary |
HiddenDragon (talk | contribs) (Order stack id conditions by name) |
||
(One intermediate revision 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|default= | }}{{#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}}}| | {{main namespace only|{{Inflicts|{{{condition}}}|cond}}}} | ||
</div> | </div> | ||
Line 90: | Line 90: | ||
| duration = {{{condition2 duration|}}} | | duration = {{{condition2 duration|}}} | ||
}} | }} | ||
{{main namespace only|{{Inflicts|{{{condition2}}}| | {{main namespace only|{{Inflicts|{{{condition2}}}|cond}}}} | ||
</div> | </div> | ||