62,726
editsAd placeholder
Template:Condition page: Difference between revisions
Jump to navigation
Jump to search
m
no edit summary
mNo edit summary |
HiddenDragon (talk | contribs) mNo edit summary |
||
(8 intermediate revisions by 3 users 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 59: | Line 59: | ||
{{SmallIcon|Options Icon.png}}[[Status properties|More properties]]:{{#invoke:ParseList|main|{{#arraydefine:propertiesList|{{{properties|}}}|,}}{{#arrayprint:propertiesList|,|@|{{SP|@}}}}|type=htmlList}}{{Main namespace only|[[Category:Has status properties]]}}|{{Main namespace only|[[Category:No status properties]]}}}}|{{Main namespace only|[[Category:No stack ID]][[Category:No status groups]][[Category:No tick type]][[Category:No stack type]][[Category:No stack priority]][[Category:No status properties]]}}}} | {{SmallIcon|Options Icon.png}}[[Status properties|More properties]]:{{#invoke:ParseList|main|{{#arraydefine:propertiesList|{{{properties|}}}|,}}{{#arrayprint:propertiesList|,|@|{{SP|@}}}}|type=htmlList}}{{Main namespace only|[[Category:Has status properties]]}}|{{Main namespace only|[[Category:No status properties]]}}}}|{{Main namespace only|[[Category:No stack ID]][[Category:No status groups]][[Category:No tick type]][[Category:No stack type]][[Category:No stack priority]][[Category:No status properties]]}}}} | ||
</div><references/> | </div> {{#if: {{{grants|}}} | | ||
<h2> Grants: </h2> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{#invoke: ParseList | main | {{{grants}}} | type = htmlListNoBullets | useTemplate = SAI/fixed }} | |||
</div> | |||
}}{{#if: {{{condition|}}} | | |||
<h2> Condition: {{{condition}}} </h2> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{Condition | {{{condition}}} | |||
| save = {{{condition save|}}} | |||
| dc = {{{condition dc|}}} | |||
| duration = {{{condition duration|}}} | |||
}} | |||
{{main namespace only|{{Inflicts|{{{condition}}}|cond}}}} | |||
</div> | |||
}}{{#if: {{{condition2|}}} | {{blank}} | |||
<h2> Condition: {{{condition2}}} </h2> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{Condition | {{{condition2}}} | |||
| save = {{{condition2 save|}}} | |||
| dc = {{{condition2 dc|}}} | |||
| duration = {{{condition2 duration|}}} | |||
}} | |||
{{main namespace only|{{Inflicts|{{{condition2}}}|cond}}}} | |||
</div> | |||
}}{{#if: {{{condition3|}}} | {{blank}} | |||
<h2> Condition: {{{condition3}}} </h2> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{Condition | {{{condition3}}} | |||
| save = {{{condition3 save|}}} | |||
| dc = {{{condition3 dc|}}} | |||
| duration = {{{condition3 duration|}}} | |||
}} | |||
{{main namespace only|{{Inflicts|{{{condition3}}}|passive}}}} | |||
</div> | |||
}}<references/> | |||
{{#if:{{{notes|}}}| | {{#if:{{{notes|}}}| | ||
== Notes == | == Notes == | ||
{{{notes}}} | {{{notes}}} | ||
}} | |||
{{#if:{{{bugs|}}}| | |||
== Bugs == | |||
{{{bugs}}} | |||
[[Category:Bugs]] | |||
}}{{#if:{{#lvar:stackid}}|{{blank}} | }}{{#if:{{#lvar:stackid}}|{{blank}} | ||
Line 69: | 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 87: | Line 138: | ||
| name = {{#lvar:name}} | | name = {{#lvar:name}} | ||
| icon = {{#lvar:icon}} | | icon = {{#lvar:icon}} | ||
| brief = {{{brief | {{{effects|}}} }}} | |||
| types = {{#lvar:type}} | | types = {{#lvar:type}} | ||
}} | }} | ||
}}</includeonly><noinclude>{{documentation | }}</includeonly><noinclude>{{documentation}}{{#cargo_declare: _table = conditions | ||
{{#cargo_declare: _table = conditions | |||
| name = String (unique, mandatory) | | name = String (unique, mandatory) | ||
| icon = File | | icon = File | ||
| effects = Wikitext | | effects = Wikitext | ||
| brief = Wikitext | |||
| types = List (,) of String | | types = List (,) of String | ||
| stack_id = string | | stack_id = string | ||
Line 182: | Line 152: | ||
| properties = List (,) of String | | properties = List (,) of String | ||
| stack_type = String | | stack_type = String | ||
}}</noinclude> | |||