8,290
edits
m (special handling for TinkerTurret ID) |
(show detailed stats when there's an XP breakdown (even if stats are static)) |
||
Line 81: | Line 81: | ||
-->{{#vardefine:name|{{{title|{{PAGENAME}}}}}}}<!-- | -->{{#vardefine:name|{{{title|{{PAGENAME}}}}}}}<!-- | ||
-->{{#vardefine:plainname|{{#titleparts:{{PAGENAME}}}}}}<!-- | -->{{#vardefine:plainname|{{#titleparts:{{PAGENAME}}}}}}<!-- | ||
-->{{#vardefine:needsdetailedstats|{{#ifexpr: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }} > 0 or {{formatnum:{{{xpvalue|0}}}}} > 0|yes|no}}}}<!-- | |||
Line 115: | Line 116: | ||
-----------------------------------------> | -----------------------------------------> | ||
<div class="nomobile"> | <div class="nomobile"> | ||
{{# | {{#ifeq: {{#var:needsdetailedstats}}|yes | ||
| <!-- Only create the "toggle detailed stats" button if there are variable stats. | | <!-- Only create the "toggle detailed stats" button if XP > 0 or there are variable stats. --> | ||
<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 mw-customtoggle-qud-basic-attributes mw-customtoggle-qud-detailed-attributes" title="Show full stat possibilities">toggle detailed stats</div> | ||
Line 144: | Line 145: | ||
}} | }} | ||
</div> | </div> | ||
{{# | {{#ifeq: {{#var:needsdetailedstats}}|yes|</div>}} | ||
}} <!-- end #if --> | }} <!-- end #if --> | ||
<!---------------------------------------- | <!---------------------------------------- | ||
DETAILED ATTRIBUTES (Desktop / Fullscreen) | DETAILED ATTRIBUTES (Desktop / Fullscreen) | ||
-----------------------------------------> | -----------------------------------------> | ||
{{# | {{#ifeq: {{#var:needsdetailedstats}}|yes | ||
| <!-- Only create the detailed stats block if there are variable stats. | | <!-- Only create the detailed stats block if there are variable stats. --> | ||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-qud-detailed-attributes" style="width:260px;"> | <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;"> | ||
Line 172: | Line 173: | ||
-----------------------------------------> | -----------------------------------------> | ||
<div class="mobileonly"> | <div class="mobileonly"> | ||
{{# | {{#ifeq: {{#var:needsdetailedstats}}|yes | ||
| <!-- Only create the "toggle detailed stats" button if there are variable stats. | | <!-- Only create the "toggle detailed stats" button if there are variable stats. --> | ||
<div class="qud-attributes-header-row"> | <div class="qud-attributes-header-row"> | ||
<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 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> | ||
Line 201: | Line 202: | ||
}} | }} | ||
</div> | </div> | ||
{{# | {{#ifeq: {{#var:needsdetailedstats}}|yes|</div>}} | ||
}} <!-- end #if --> | }} <!-- end #if --> | ||
<!---------------------------------------- | <!---------------------------------------- | ||
DETAILED ATTRIBUTES (Mobile) | DETAILED ATTRIBUTES (Mobile) | ||
-----------------------------------------> | -----------------------------------------> | ||
{{# | {{#ifeq: {{#var:needsdetailedstats}}|yes | ||
| <!-- 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="collapsible collapsed" id="collapsible-qud-detailed-attributes" data-expandtext="toggle detailed stats" data-collapsetext="toggle detailed stats"> | <div class="collapsible collapsed" id="collapsible-qud-detailed-attributes" data-expandtext="toggle detailed stats" data-collapsetext="toggle detailed stats"> |