Difference between revisions of "Template:Beachhandball kit"

From blackwiki
Jump to navigation Jump to search
imported>Malo95
imported>Malo95
(delink from the basketball template)
 
Line 1: Line 1:
{{#switch: {{{gender}}}
+
<div style="width: 100px; margin: 0 auto; padding: 0; ">
|m={{Basketball kit|body={{{body}}}|pattern_b={{{pattern_b|bad}}}|shorts={{{shorts}}}|pattern_s={{{pattern_s|bad}}}|filetype={{{filetype|png}}}|title={{{title}}}}}
 
|w=<div style="width: 100px; margin: 0 auto; padding: 0; ">
 
 
<div style="background-color: white; position: relative; left: 0px; top: 0px; width: 100px; height: 95px; margin: 0 auto; padding: 0;">
 
<div style="background-color: white; position: relative; left: 0px; top: 0px; width: 100px; height: 95px; margin: 0 auto; padding: 0;">
 
<!-- body -->
 
<!-- body -->
<div style="position: absolute; left: 31px; top: 0px; width: 38px; height: 59px; background-color: #{{{body}}};">{{#ifexist: Media:Kit body{{{pattern_b|bad}}}.{{{filetype|png}}}|[[File:Kit body{{{pattern_b}}}.{{{filetype|png}}}|top|link=]]|[[File:Kit body unknown.svg|top|link=]]}}</div>
+
<div style="position: absolute; left: 31px; top: 0px; width: 38px; height: 59px; background-color: #{{{body}}};">{{#ifexist: Media:Kit body{{{pattern_b|bad}}}.{{{filetype|png}}}|[[File:Kit body{{{pattern_b}}}.{{{filetype|png}}}|top|link=]]|[[File:Kit body{{#switch: {{{gender}}}|w|f=_beach|m|#default=_basketball}}.svg|top|Team colours|link=]]}}</div>
<div style="position: absolute; left: 31px; top: 0px; width: 38px; height: 59px;">[[File:Kit body beach.svg|top|{{{title}}} jersey|link=]]</div>
+
<div style="position: absolute; left: 31px; top: 0px; width: 38px; height: 59px;">[[File:Kit body{{#switch: {{{gender}}}|w|f=_beach|m|#default=_basketball}}.svg|top|{{{title}}} jersey|link=]]</div>
 
<!-- shorts -->
 
<!-- shorts -->
<div style="position: absolute; left: 0px; top: 59px; width: 100px; height: 36px; background-color: #{{{shorts}}}">{{#ifexist: Media:Kit shorts{{{pattern_s|bad}}}.{{{filetype|png}}}|[[File:Kit shorts{{{pattern_s}}}.{{{filetype|png}}}|top|link=]]|[[File:Kit shorts.svg|top|Team colours|link=]] }}</div>
+
<div style="position: absolute; left: 0px; top: 59px; width: 100px; height: 36px; background-color: #{{{shorts}}}">{{#ifexist: Media:Kit shorts{{{pattern_s|bad}}}.{{{filetype|png}}}|[[File:Kit shorts{{{pattern_s}}}.{{{filetype|png}}}|top|link=]]|[[File:Kit shorts{{#switch: {{{gender}}}|w|f=_beach|m|#default=}}.svg|top|Team colours|link=]] }}</div>
<div style="position: absolute; left: 0px; top: 59px; width: 100px; height: 36px;">[[File:Kit shorts beach.svg|top|Team colours|link=]]</div>
+
<div style="position: absolute; left: 0px; top: 59px; width: 100px; height: 36px;">[[File:Kit shorts{{#switch: {{{gender}}}|w|f=_beach|m|#default=}}.svg|top|Team colours|link=]]</div>
 
</div>
 
</div>
 
<!-- Title -->
 
<!-- Title -->
 
{{#if: {{{title}}}|<div style="padding-top: 0.6em; text-align: center;">'''{{{title}}}'''</div>|Uniform}}
 
{{#if: {{{title}}}|<div style="padding-top: 0.6em; text-align: center;">'''{{{title}}}'''</div>|Uniform}}
</div>
+
</div><noinclude>
| #default = value gender is required}}<noinclude>
 
 
{{documentation}}
 
{{documentation}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
 
</noinclude>
 
</noinclude>

Latest revision as of 13:07, 11 June 2018

Team colours
{{{title}}} jersey
Team colours
Team colours
{{{title}}}
Template documentation[view] [edit] [history] [purge]
Team colours
{{{title}}} jersey
Team colours
Team colours
{{{title}}}
Team colours
{{{title}}} jersey
Team colours
Team colours
{{{title}}}

Usage

This template was created to easily show the colours or uniforms used by a beach handball team. It is not meant to be used directly on the page, but inside an infobox. It is based on {{Basketball kit}}. See documentation there. But it has an additional parameter gender m or w do switch the men's or women's kits.


See also