64,734
editsMore actions
m
no edit summary
m (Last edit?) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(25 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="bg3wiki-tooltip-box"><!--Extract name and icon from the page title-->{{#lvardef: name | <includeonly>__NOTOC__<div class="bg3wiki-tooltip-box"><!--Extract name and icon from the page title-->{{#lvardef: name | ||
| {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}} | | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}} | ||
}}{{#lvardef: page | }}{{#lvardef: page | ||
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|}} | |||
}}{{PageSeo | }}{{PageSeo | ||
| title = {{PAGENAME}} | | title = {{PAGENAME}} | ||
Line 19: | Line 26: | ||
== [[Honour mode]] == | == [[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}} | ||
{{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 28: | Line 35: | ||
{{#arraydefine:status groups|{{{status groups|}}}|,}} | {{#arraydefine:status groups|{{{status groups|}}}|,}} | ||
{{SmallIcon|Plus Icon.png|link=Status groups}}[[Status groups]]: {{#arrayprint:status groups|, |@|{{SG|@}}}}{{Main namespace only|[[Category:Has status groups]]}}|{{Main namespace only|[[Category:No status groups]]}} | {{SmallIcon|Plus Icon.png|link=Status groups}}[[Status groups]]: {{#arrayprint:status groups|, |@|{{SG|@}}}}{{Main namespace only|[[Category:Has status groups]]}}|{{Main namespace only|[[Category:No status groups]]}} | ||
}}{{#if: {{{tick type|}}}|{{blank}} | }}{{#if: {{{tick type|}}}{{#lvar:FreezeDuration}}|{{blank}} | ||
{{SmallIcon|Duration Icons.png}}[[Conditions#Duration|Loses duration]]: {{#switch: {{lc:{{{tick type}}}}} | {{SmallIcon|Duration Icons.png}}[[Conditions#Duration|Loses duration]]: {{#if:{{#lvar:FreezeDuration}}|{{SP|FreezeDuration|No}}|{{#switch: {{lc:{{{tick type}}}}} | ||
| start | start turn | startturn = start of turn | | start | start turn | startturn = start of turn | ||
| end | end turn | endturn = end of turn | | end | end turn | endturn = end of turn | ||
Line 37: | Line 44: | ||
| none = N/A | | none = N/A | ||
| #default = !syntax error! | | #default = !syntax error! | ||
}}{{Main namespace only|[[Category:Has tick type]]}}|{{Main namespace only|[[Category:No tick type]]}}}}{{#if: {{{stack type|}}}|{{blank}} | }}}}{{Main namespace only|[[Category:Has tick type]]}}|{{Main namespace only|[[Category:No tick type]]}}}}{{#if: {{{stack type|}}}|{{blank}} | ||
{{SmallIcon|Sort Icon.png}}[[Conditions#Stack type|If already applied]]: {{#switch: {{lc:{{{stack type}}}}} | {{SmallIcon|Sort Icon.png}}[[Conditions#Stack type|If already applied]]: {{#switch: {{lc:{{{stack type}}}}} | ||
Line 51: | Line 58: | ||
}}{{#if: {{{properties|}}}|{{blank}} | }}{{#if: {{{properties|}}}|{{blank}} | ||
{{SmallIcon|Options Icon.png}}[[Status properties|More properties]]:{{#invoke:ParseList|main|{{#arraydefine:propertiesList|{{{properties|}}}|,}}{{#arrayprint:propertiesList|,|@| | {{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:{{{ | }} | ||
{{#if:{{{bugs|}}}| | |||
== Bugs == | |||
{{{bugs}}} | |||
[[Category:Bugs]] | |||
}}{{#if:{{#lvar:stackid}}|{{blank}} | |||
== Conditions with the same stack ID == | == 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: | Conditions with the [[stack ID]] {{code|{{{stack id}}}}}, only one of these can be applied at the same time: | ||
{{#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 70: | Line 128: | ||
|intro={{ConditionsTableHeader}} | |intro={{ConditionsTableHeader}} | ||
|outro={{ConditionsTableFooter}} | |outro={{ConditionsTableFooter}} | ||
}}}} | }}{{Main namespace only|[[Category:Conditions with shared stack IDs]]}} | ||
}}{{#if:{{{suppress sources|}}}||{{blank}} | }}{{#if: {{{suppress sources|}}} | | {{blank}} | ||
== Sources of {{#lvar:name}} == | == Sources of {{#lvar:name}} == | ||
{{Condition sources|{{#lvar:page}}}} | |||
{{Condition sources | {{#lvar:page}} }} | |||
}} | }} | ||
<!--some housekeeping:categories and cargo-->{{Main namespace only|[[Category:Conditions]] | <!--some housekeeping:categories and cargo-->{{Main namespace only|[[Category:Conditions]]{{#cargo_store: _table = conditions | ||
| 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 174: | Line 152: | ||
| properties = List (,) of String | | properties = List (,) of String | ||
| stack_type = String | | stack_type = String | ||
}}</noinclude> | |||