Ad placeholder

Template:ConditionsTableRow: Difference between revisions

Jump to navigation Jump to search
Updated to receive page link instead of assuming from the name
(Add types)
(Updated to receive page link instead of assuming from the name)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>For use with Cargo queries. See also [[Template:ConditionsTableHeader]].
<noinclude>For use with Cargo queries. See also [[Template:ConditionsTableHeader]].
 
[[Category:Condition templates]]
Sample:
Sample:


Line 6: Line 6:
{{ConditionsTableRow
{{ConditionsTableRow
| name = Acid
| name = Acid
| page = Acid
| icon = Acid Condition Icon.webp
| icon = Acid Condition Icon.webp
| effects =
| effects =
* Reduces {{ArmourClass}} by 2.
* Reduces {{ArmourClass}} by 2.
| types = cursed
| types = cursed,polymorphed
}}
}}
{{ConditionsTableFooter}}
{{ConditionsTableFooter}}
Line 15: Line 16:


<td style="vertical-align: middle;">
<td style="vertical-align: middle;">
{{Icon| {{{icon}}} |30| link = {{{name}}} (Condition) }} [[{{{name}}} (Condition)|'''{{{name}}}''']]
{{Icon| {{{icon}}} |30| link = {{{page}}} }} [[{{{page}}}|'''{{{name}}}''']]
</td>
</td>


<td style="vertical-align: middle;">
<td style="vertical-align: middle;">
{{{effects}}}
{{{effects}}}{{#if:{{{types|}}}
</td>
|{{#arraydefine:types|{{{types|}}}|,}}<br>{{#arrayprint:types|&nbsp;|@|{{Condition Type|@}} }}
 
}}
<td style="vertical-align: middle;">
{{#arraydefine:types|{{{types|}}}|,}}{{#arrayprint:types|<br>|@|{{Condition Type|@}} }}
</td>
</td>


</tr></includeonly>
</tr></includeonly>

Navigation menu