Template:Character: Difference between revisions

182 bytes added ,  14:00, 19 August 2019
Begin converting collapsibles to be mobile-friendly
mNo edit summary
(Begin converting collapsibles to be mobile-friendly)
Line 74: Line 74:
| <!-- Only create the "toggle detailed stats" button 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 "toggle detailed stats" button 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="qud-attributes-header-row"><!--
<div class="qud-attributes-header-row"><!--
   --><div class="qud-attributes-header-button mw-customtoggle-qud-basic-attributes mw-customtoggle-qud-detailed-attributes" title="Show full stat possibilities">toggle detailed stats</div>
   --><div class="qud-attributes-header-button collapsetoggle-custom collapsible-qud-basic-attributes-toggle collapsible-qud-detailed-attributes-toggle" title="Show full stat possibilities">toggle detailed stats</div>
</div>
</div>
<div class="mw-collapsible" id="mw-customcollapsible-qud-basic-attributes">
<div class="collapsible" id="collapsible-qud-basic-attributes" data-expandtext="toggle detailed stats" data-collapsetext="toggle detailed stats">
}} <!-- end #if -->
}} <!-- end #if -->
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}}
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}}
| <!-- Only create attributes block if at least one stat is specified -->
| <!-- Only create attributes block if at least one stat is specified -->


<div class="qud-attributes-wrapper">
<div class="qud-attributes-wrapper collapsible-content">
<div class="qud-attributes-row">
<div class="qud-attributes-row">
<!-- The Character/Attributes template doesn't handle extra spaces very well, so there are none below -->
<!-- The Character/Attributes template doesn't handle extra spaces very well, so there are none below -->
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" style="width:260px;">
<div class="collapsible collapsed" id="collapsible-qud-detailed-attributes" data-expandtext="toggle detailed stats" data-collapsetext="toggle detailed stats" style="width:260px;">
<div class="mw-collapsible-content" style="display:none;">
<div class="collapsible-content" style="display:none;">
<div class="qud-stat-details-wrapper">
<div class="qud-stat-details-wrapper">
{{ Character/DetailedAttributeHeader }}
{{ Character/DetailedAttributeHeader }}