User:Hanmac/Sandbox: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude>{|
<noinclude>{|
</noinclude>{{#switch:t{{{gendercode|0}}}|255|254|0|=
</noinclude>
{{!}} colspan=2 style="text-align:center" {{!}} {{#switch:{{{gendercode|0}}}|255 = Genderless |254= female only|0 = male only}}
|width=66%|{{#switch:{{{gendercode|127}}}|255|254|0=<div class="statbar" style="float:left;background:{{#switch:{{{gendercode|127}}}|255=#FFFFFF|254=#FF77DD|0=#3355FF}}; -moz-border-radius: 6px; -moz-border-radius: 6px; width: 100%; height: 10px; border: 0.5px solid black; overflow: hidden;"></div>
|#default=
|#default=<div class="statbar" style="float:left;background:#3355FF; -moz-border-radius-topleft: 6px; -moz-border-radius-bottomleft: 6px; width: {{#expr:{{#switch: {{{gendercode|127}}}|255=1|254=1|223=12.5|191=25|127=50|63=75|31=87.5|0=98}}-1.5}}%; height: 10px; border: 0.5px solid black; border-right-width:0px; overflow: hidden;"></div><div class="statbar" style="float:{{#ifeq:{{{gendercode|0}}}|255|right|left}};background:#FF77DD; -moz-border-radius-topright: 6px; -moz-border-radius-bottomright: 6px; width: {{#expr: 98.5 - {{#switch: {{{gendercode|127}}}|255=99|254=2|223=12.5|191=25|127=50|63=75|31=87.5|0=99}}}}%; height: 10px; border: 0.5px solid black; overflow: hidden;border-left-width:0px;"></div>}}
{{!}}width=66%{{!}}<div class="statbar" style="float:left;background:#3355FF; -moz-border-radius-topleft: 6px; -moz-border-radius-bottomleft: 6px; width: {{#expr:{{#switch: {{{gendercode|127}}}|255=1|254=1|223=12.5|191=25|127=50|63=75|31=87.5|0=98}}-1.5}}%; height: 10px; border: 0.5px solid black; border-right-width:0px; overflow: hidden;"></div><div class="statbar" style="float:{{#ifeq:{{{gendercode|0}}}|255|right|left}};background:#FF77DD; -moz-border-radius-topright: 6px; -moz-border-radius-bottomright: 6px; width: {{#expr: 98.5 - {{#switch: {{{gendercode|127}}}|255=99|254=2|223=12.5|191=25|127=50|63=75|31=87.5|0=99}}}}%; height: 10px; border: 0.5px solid black; overflow: hidden;border-left-width:0px;"></div>
| style="text-align:right" |{{#switch: {{{gendercode|127}}}|255|254=0|223=12.5|191=25|127=50|63=75|31=87.5|0=100}}%{{male}} <br/> {{#expr: 100 - {{#switch: {{{gendercode|127}}}|255=100|254=0|223=12.5|191=25|127=50|63=75|31=87.5|0=100}}}}%{{female}}
{{!}} style="text-align:right" {{!}}{{#switch: {{{gendercode|127}}}|255|254=0|223=12.5|191=25|127=50|63=75|31=87.5|0=100}}%{{male}} <br/> {{#expr: 100 - {{#switch: {{{gendercode|127}}}|255=100|254=0|223=12.5|191=25|127=50|63=75|31=87.5|0=100}}}}%{{female}}
}}
<noinclude>|}</noinclude>
<noinclude>|}</noinclude>
616

edits