Template:Character info: Difference between revisions

Jump to navigation Jump to search
(Redesigned passive features section to allow more text to fit without wrapping - some features have long names and wrap lines in the old design)
(Fixed an issue causing an erroneous <p></p> inside the passive features section if there are no resistances defined)
Line 81: Line 81:
{{!}} colspan="2" style="padding-left: 38px;" {{!}} {{{passive|}}}
{{!}} colspan="2" style="padding-left: 38px;" {{!}} {{{passive|}}}
}}
}}
{{#if:{{{bludgeoning|}}}{{{piercing|}}}{{{slashing|}}}{{{acid|}}}{{{cold|}}}{{{fire|}}}{{{lightning|}}}{{{necrotic|}}}{{{poison|}}}{{{psychic|}}}{{{radiant|}}}{{{thunder|}}}|{{!}}-
{{#if:{{{bludgeoning|}}}{{{piercing|}}}{{{slashing|}}}{{{acid|}}}{{{cold|}}}{{{fire|}}}{{{lightning|}}}{{{necrotic|}}}{{{poison|}}}{{{psychic|}}}{{{radiant|}}}{{{thunder|}}}|{{!}}-
{{!}} colspan="2" align="center" style="font-size: 110%; background: #281C14; color: #C1A886;"  {{!}} '''Resistances'''}}
{{!}} colspan="2" align="center" style="font-size: 110%; background: #281C14; color: #C1A886;"  {{!}} '''Resistances'''}}