Template:Character: Difference between revisions
Jump to navigation
Jump to search
m (try converting mobile container to tags) |
|||
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 --> | ||
<!---------------------------------------- | <!---------------------------------------- |