More actions
Remove bullet point from image |
Add multiple type support |
||
Line 1: | Line 1: | ||
<includeonly>{{#lvardef:text|[[{{{name}}} (Condition)|{{#if:{{{altname|}}}|{{{altname}}}|{{{name}}} }}]]}}[[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|25px|30px}}|link=|{{{name}}}]] {{#if:{{{inline|}}}|{{#lvar:text}}|<strong>{{#lvar:text}}</strong>}} {{#if: {{{duration|}}}{{{save|}}} | <div> }}{{#if: {{{duration|}}} | | <includeonly>{{#arraydefine:types|{{{types|}}}|,}}{{#lvardef:text|[[{{{name}}} (Condition)|{{#if:{{{altname|}}}|{{{altname}}}|{{{name}}} }}]]}}[[File:{{{icon}}}|frameless|{{#if:{{{inline|}}}|25px|30px}}|link=|{{{name}}}]] {{#if:{{{inline|}}}|{{#lvar:text}}|<strong>{{#lvar:text}}</strong>}} {{#if: {{{duration|}}}{{{save|}}} | <div> }}{{#if: {{{duration|}}} | | ||
{{InfoBlob| {{Duration|{{{duration}}}}} }} | {{InfoBlob| {{Duration|{{{duration}}}}} }} | ||
}} {{#if: {{{save|}}} | | }} {{#if: {{{save|}}} | | ||
{{InfoBlob| {{SavingThrow|{{{save}}}}} }} | {{InfoBlob| {{SavingThrow|{{{save}}}}} }} | ||
}}{{#if: {{{duration|}}}{{{save|}}} | </div> }} {{#if:{{{inline|}}}||{{{effects}}}{{#if:{{{ | }}{{#if: {{{duration|}}}{{{save|}}} | </div> }} {{#if:{{{inline|}}}||{{{effects}}}{{#if:{{{types|}}}|{{clear}} | ||
{{Condition | {{#arrayprint:types|<br>|@|{{Condition Type|@}} }} | ||
}} }}</includeonly><noinclude> | |||
Meant to be used with a Cargo query. Preview: | Meant to be used with a Cargo query. Preview: | ||
Line 96: | Line 97: | ||
| effects = | | effects = | ||
* Oof owie ouch | * Oof owie ouch | ||
| | | types = diseased | ||
}} | |||
== Condition with multiple types == | |||
{{Condition/Format | |||
| name = Bleeding | |||
| icon = Bleeding Condition Icon.webp | |||
| effects = | |||
* Oof owie ouch | |||
| types = diseased,prone | |||
}} | }} | ||
Line 105: | Line 115: | ||
| icon = Bleeding Condition Icon.webp | | icon = Bleeding Condition Icon.webp | ||
| inline = true | | inline = true | ||
| | | types = diseased | ||
}} | }} | ||