Template:Character: Difference between revisions

58 bytes added ,  15:58, 19 August 2019
m
Undo revision 8643 by Egocarib (talk)
m (try converting mobile container to tags)
m (Undo revision 8643 by Egocarib (talk))
Line 74: Line 74:
           ATTRIBUTES (Desktop / Fullscreen)
           ATTRIBUTES (Desktop / Fullscreen)
----------------------------------------->
----------------------------------------->
<nomobile>
<div class="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 -->
</nomobile>
</div> <!-- end nomobile -->
<!----------------------------------------
<!----------------------------------------
           ATTRIBUTES (Mobile)
           ATTRIBUTES (Mobile)
----------------------------------------->
----------------------------------------->
<mobileonly>
<div class="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 -->
</mobileonly>
</div> <!-- end mobileonly -->
}} <!-- end infobox row -->
}} <!-- end infobox row -->
<!----------------------------------------
<!----------------------------------------