1,932
editsTemplate:Condition page: Difference between revisions
Jump to navigation
Jump to search
Changed it to use the new "counter" template which counts how many rows is returned on the stack id, and only displays if it is not 1.
m (nvm it removed them from everything) Tag: Undo |
(Changed it to use the new "counter" template which counts how many rows is returned on the stack id, and only displays if it is not 1.) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><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 --> {{#vardefine:counter|0 | |||
}}{{#cargo_query:tables=conditions|fields=name|where=stack_id='{{{stack id}}}'|format=template|template=counter | |||
}}{{#lvardef:stackid|{{#if:{{{stack id|}}}|{{#ifeq:{{#var:counter}}|1||1}}}} | |||
}}{{PageSeo | }}{{PageSeo | ||
| title = {{PAGENAME}} | | title = {{PAGENAME}} | ||
Line 19: | Line 23: | ||
== [[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 56: | Line 60: | ||
== Notes == | == Notes == | ||
{{{notes}}} | {{{notes}}} | ||
}}{{#if: | }}{{#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: | ||
Line 70: | Line 74: | ||
|intro={{ConditionsTableHeader}} | |intro={{ConditionsTableHeader}} | ||
|outro={{ConditionsTableFooter}} | |outro={{ConditionsTableFooter}} | ||
}} | |||
}}{{#if:{{{suppress sources|}}}||{{blank}} | }}{{#if:{{{suppress sources|}}}||{{blank}} | ||
Line 132: | Line 136: | ||
* If Undead, has {{Disadvantage}} on [[Attack Roll]]s. | * If Undead, has {{Disadvantage}} on [[Attack Roll]]s. | ||
| this is an example = yes | | this is an example = yes | ||
| stack id = MEENLOCK_FEAR | |||
| tick type = end | | tick type = end | ||
| properties = FreezeDuration, IgnoreResting, InitiateCombat, ApplyToDead | | properties = FreezeDuration, IgnoreResting, InitiateCombat, ApplyToDead |