Template:Character: Difference between revisions

58 bytes removed ,  15:58, 19 August 2019
m
try converting mobile container to tags
(divide attribute collapsible into desktop and mobile versions)
m (try converting mobile container to tags)
Line 74: Line 74:
           ATTRIBUTES (Desktop / Fullscreen)
           ATTRIBUTES (Desktop / Fullscreen)
----------------------------------------->
----------------------------------------->
<div class="nomobile">
<nomobile>
{{#if: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}
{{#if: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}
| <!-- 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 -->
Line 123: Line 123:
</div>
</div>
}} <!-- end #if -->
}} <!-- end #if -->
</div> <!-- end nomobile -->
</nomobile>
<!----------------------------------------
<!----------------------------------------
           ATTRIBUTES (Mobile)
           ATTRIBUTES (Mobile)
----------------------------------------->
----------------------------------------->
<div class="mobileonly">
<mobileonly>
{{#if: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}
{{#if: {{#pos: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | d }}
| <!-- 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 -->
Line 176: Line 176:
</div>
</div>
}} <!-- end #if -->
}} <!-- end #if -->
</div> <!-- end mobileonly -->
</mobileonly>
}} <!-- end infobox row -->
}} <!-- end infobox row -->
<!----------------------------------------
<!----------------------------------------