Template:Character: Difference between revisions

21 bytes added ,  19:32, 12 August 2019
m
width fix to prevent detailed attributes from changing the infobox width when expanded
m (test fix?)
m (width fix to prevent detailed attributes from changing the infobox width when expanded)
Line 108: Line 108:
{{#if: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}
{{#if: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}
| <!-- Only create the detailed stats block if there are variable stats. To test this, we just check if there's a "d" in the stat string indicating a dice roll -->
| <!-- Only create the detailed stats block if there are variable stats. To test this, we just check if there's a "d" in the stat string indicating a dice roll -->
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-qud-detailed-attributes">
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-qud-detailed-attributes" style="width:260px;">
<div class="mw-collapsible-content" style="display:none;">
<div class="mw-collapsible-content" style="display:none;">
<div class="qud-stat-details-wrapper">
<div class="qud-stat-details-wrapper">