Difference between revisions of "Template:Uniform"

From Scouts Canada Wiki
Jump to: navigation, search
(Created page with "<div style="width: {{#expr:{{{scale|1}}}*200 round 0}}px; height: {{#expr:{{{scale|1}}}*350 round 0}}px; margin: 0 auto; padding: 0; border:1px #ccc solid;"> <!-- background i...")
 
Line 2: Line 2:
 
<!-- background image  
 
<!-- background image  
 
--><div style="position: relative; left: {{#expr:{{{scale|1}}}*0 round 0}}px; top: {{#expr:{{{scale|1}}}*0 round 0}}px; width: {{#expr:{{{scale|1}}}*200 round 0}}px; height: {{#expr:{{{scale|1}}}*350 round 0}}px; padding: 0;"><!--
 
--><div style="position: relative; left: {{#expr:{{{scale|1}}}*0 round 0}}px; top: {{#expr:{{{scale|1}}}*0 round 0}}px; width: {{#expr:{{{scale|1}}}*200 round 0}}px; height: {{#expr:{{{scale|1}}}*350 round 0}}px; padding: 0;"><!--
-->[[File:WikiProject Scouting uniform template {{#ifeq:{{{gender|}}}|female|female|male}} background.svg|{{#expr:{{{scale|1}}}*200 round 0}}x{{#expr:{{{scale|1}}}*350 round 0}}px]]
+
-->[[File:{{#ifeq:{{{gender|}}}|female|Female|Male}} BG.png|{{#expr:{{{scale|1}}}*200 round 0}}x{{#expr:{{{scale|1}}}*350 round 0}}px]]
{{#ifeq:{{{gender|}}}|female
+
<!-- Body
|<!-- Body (female)
+
--><div style="position: absolute; left: {{#expr:{{{scale|1}}}*7 round 0}}px; top: {{#expr:{{{scale|1}}}*68 round 0}}px; width: {{#expr:({{{scale|1}}}*190 round 0) - 1}}px; height: {{#expr:({{{scale|1}}}*150 round 0) - 1}}px; background-color: #{{{color_body}}};">{{#if: {{{pattern_body|}}}|[[File:{{#ifeq:{{{gender|}}}|female|Female|Male}} Shirt {{{pattern_body}}}.png|{{#expr:{{{scale|1}}}*190 round 0}}px|top|link=|alt=]]}}</div>
--><div style="position: absolute; left: {{#expr:{{{scale|1}}}*7 round 0}}px; top: {{#expr:{{{scale|1}}}*68 round 0}}px; width: {{#expr:({{{scale|1}}}*190 round 0) - 1}}px; height: {{#expr:({{{scale|1}}}*150 round 0) - 1}}px; background-color: #{{{color_body}}};">{{#if: {{{pattern_body|}}}|[[File:WikiProject Scouting uniform template female {{{pattern_body}}}{{{skintone|}}}.svg|{{#expr:{{{scale|1}}}*190 round 0}}px|top|link=|alt=]]}}</div>
+
<!-- Head
<!-- Head (female)
+
--><div style="position: absolute; left: {{#expr:{{{scale|1}}}*55 round 0}}px; top: {{#expr:{{{scale|1}}}*5 round 0}}px; width: {{#expr:{{{scale|1}}}*115 round 0}}px; height: {{#expr:{{{scale|1}}}*79 round 0}}px; background-color: #{{{color_head}}};">{{#if: {{{pattern_head|}}}|[[File:{{#ifeq:{{{gender|}}}|female|Female|Male}} Head {{{pattern_head}}}.png|{{#expr:{{{scale|1}}}*115 round 0}}px|top|link=|alt=]]}}</div>
--><div style="position: absolute; left: {{#expr:{{{scale|1}}}*55 round 0}}px; top: {{#expr:{{{scale|1}}}*5 round 0}}px; width: {{#expr:{{{scale|1}}}*115 round 0}}px; height: {{#expr:{{{scale|1}}}*79 round 0}}px; background-color: #{{{color_head}}};">{{#if: {{{pattern_head|}}}|[[File:WikiProject Scouting uniform template female {{{pattern_head}}}{{{skintone|}}}.svg|{{#expr:{{{scale|1}}}*115 round 0}}px|top|link=|alt=]]}}</div>
+
<!-- Legs
<!-- Legs (female)
+
--><div style="position: absolute; left: {{#expr:{{{scale|1}}}*42 round 0}}px; top: {{#expr:{{{scale|1}}}*162 round 0}}px; width: {{#expr:{{{scale|1}}}*100 round 0}}px; height: {{#expr:{{{scale|1}}}*155 round 0}}px; background-color: #{{if empty|{{{color_legs|}}}|FFF}};">{{#if: {{{pattern_legs|}}}|[[File:{{#ifeq:{{{gender|}}}|female|Female|Male}} Pant {{{pattern_body}}}.png|{{#expr:{{{scale|1}}}*100 round 0}}px|top|link=|alt=]]}}</div>
--><div style="position: absolute; left: {{#expr:{{{scale|1}}}*42 round 0}}px; top: {{#expr:{{{scale|1}}}*162 round 0}}px; width: {{#expr:{{{scale|1}}}*100 round 0}}px; height: {{#expr:{{{scale|1}}}*155 round 0}}px; background-color: #{{if empty|{{{color_legs|}}}|FFF}};">{{#if: {{{pattern_legs|}}}|[[File:WikiProject Scouting uniform template female {{{pattern_legs}}}{{#ifeq:{{{pattern_legs|}}}|trousers||{{{skintone|}}}}}.svg|{{#expr:{{{scale|1}}}*100 round 0}}px|top|link=|alt=]]}}</div>
+
 
+
|<!-- Body (male)
+
--><div style="position: absolute; left: {{#expr:{{{scale|1}}}*4 round 0}}px; top: {{#expr:{{{scale|1}}}*28 round 0}}px; width: {{#expr:({{{scale|1}}}*180 round 0) - 1}}px; height: {{#expr:({{{scale|1}}}*200 round 0) - 1}}px; background-color: #{{{color_body}}};">{{#if: {{{pattern_body|}}}|[[File:WikiProject Scouting uniform template male {{{pattern_body}}}{{{skintone|}}}.svg|{{#expr:{{{scale|1}}}*180 round 0}}px|top|link=|alt=]]}}</div>
+
<!-- Head (male)
+
--><div style="position: absolute; left: {{#expr:{{{scale|1}}}*80 round 0}}px; top: {{#expr:{{{scale|1}}}*3 round 0}}px; width: {{#expr:({{{scale|1}}}*70 round 0) - 1}}px; height: {{#expr:({{{scale|1}}}*76 round 0) - 2}}px; background-color: #{{{color_head}}};">{{#if: {{{pattern_head|}}}|[[File:WikiProject Scouting uniform template male {{{pattern_head}}}{{{skintone|}}}.svg|{{#expr:{{{scale|1}}}*70 round 0}}px|top|link=|alt=]]}}</div>
+
<!-- Legs (male)
+
--><div style="position: absolute; left: {{#expr:{{{scale|1}}}*40 round 0}}px; top: {{#expr:({{{scale|1}}}*147 round 0)+1}}px; width: {{#expr:({{{scale|1}}}*103 round 0) - 1}}px; height: {{#expr:({{{scale|1}}}*155 round 0) - 1}}px; background-color: #{{if empty|{{{color_legs|}}}|FFF}};">{{#if: {{{pattern_legs|}}}|<div style="position:relative; left:0px; top:-1px; width: {{#expr:({{{scale|1}}}*103 round 0) - 1}}px; height: {{#expr:{{{scale|1}}}*155 round 0}}px;">[[File:WikiProject Scouting uniform template male {{{pattern_legs}}}{{#ifeq:{{{pattern_legs|}}}|trousers||{{{skintone|}}}}}.svg|{{#expr:{{{scale|1}}}*103 round 0}}px|top|link=|alt=]]</div>}}</div>
+
 
+
}}
+
 
</div></div>
 
</div></div>

Revision as of 16:11, 2 November 2017

[[File:{{#ifeq:|female|Female|Male}} BG.png|{{#expr:1*200 round 0}}x{{#expr:1*350 round 0}}px]]
{{#if: |[[File:{{#ifeq:|female|Female|Male}} Shirt {{{pattern_body}}}.png|{{#expr:1*190 round 0}}px|top|link=|alt=]]}}
{{#if: |[[File:{{#ifeq:|female|Female|Male}} Head {{{pattern_head}}}.png|{{#expr:1*115 round 0}}px|top|link=|alt=]]}}
{{#if: |[[File:{{#ifeq:|female|Female|Male}} Pant {{{pattern_body}}}.png|{{#expr:1*100 round 0}}px|top|link=|alt=]]}}