Difference between revisions of "Template:MedalCount"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
(scope)
Line 7: Line 7:
 
}}
 
}}
 
|-
 
|-
! style="background:#cccccc" scope=col | {{#if:{{{event_label|}}}|{{{event_label}}}|Event}}
+
! scope="col" style="background:#cccccc" | {{#if:{{{event_label|}}}|{{{event_label}}}|Event}}
! style="background:gold"    scope=col | 1{{small|st}}
+
! scope="col" style="background:gold"    | 1{{small|st}}
! style="background:silver"  scope=col | 2{{small|nd}}
+
! scope="col" style="background:silver"  | 2{{small|nd}}
! style="background:#CC9966" scope=col | 3{{small|rd}}
+
! scope="col" style="background:#CC9966" | 3{{small|rd}}
 
|-
 
|-
 
{{#if:{{{1|}}}|
 
{{#if:{{{1|}}}|
{{!}} style="text-align:left" scope=row {{!}} {{#if:1|{{{1}}}}}
+
! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{1}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{2|}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{2|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{3|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{3|}}}}}
Line 20: Line 20:
 
|-
 
|-
 
{{#if:{{{5|}}}|
 
{{#if:{{{5|}}}|
{{!}} style="text-align:left" scope=row {{!}} {{#if:1|{{{5}}}}}
+
! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{5}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{6|}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{6|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{7|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{7|}}}}}
Line 27: Line 27:
 
|-
 
|-
 
{{#if:{{{9|}}}|
 
{{#if:{{{9|}}}|
{{!}} style="text-align:left" scope=row {{!}} {{#if:1|{{{9}}}}}
+
! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{9}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{10|}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{10|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{11|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{11|}}}}}
Line 34: Line 34:
 
|-
 
|-
 
{{#if:{{{13|}}}|
 
{{#if:{{{13|}}}|
{{!}} style="text-align:left" scope=row {{!}} {{#if:1|{{{13}}}}}
+
! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{13}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{14|}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{14|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{15|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{15|}}}}}
Line 41: Line 41:
 
|-
 
|-
 
{{#if:{{{17|}}}|
 
{{#if:{{{17|}}}|
{{!}} style="text-align:left" scope=row {{!}} {{#if:1|{{{17}}}}}
+
! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{17}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{18|}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{18|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{19|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{19|}}}}}
Line 48: Line 48:
 
|-
 
|-
 
{{#if:{{{21|}}}|
 
{{#if:{{{21|}}}|
{{!}} style="text-align:left" scope=row {{!}} {{#if:1|{{{21}}}}}
+
! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{21}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{22|}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{22|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{23|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{23|}}}}}
Line 55: Line 55:
 
|-
 
|-
 
{{#if:{{{25|}}}|
 
{{#if:{{{25|}}}|
{{!}} style="text-align:left" scope=row {{!}} {{#if:1|{{{25}}}}}
+
! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{25}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{26|}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{26|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{27|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{27|}}}}}
Line 62: Line 62:
 
|-
 
|-
 
{{#if:{{{29|}}}|
 
{{#if:{{{29|}}}|
{{!}} style="text-align:left" scope=row {{!}} {{#if:1|{{{29}}}}}
+
! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{29}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{30|}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{30|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{31|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{31|}}}}}
Line 69: Line 69:
 
|-
 
|-
 
{{#if:{{{33|}}}|
 
{{#if:{{{33|}}}|
{{!}} style="text-align:left" scope=row {{!}} {{#if:1|{{{33}}}}}
+
! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{33}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{34|}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{34|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{35|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{35|}}}}}
Line 76: Line 76:
 
|-
 
|-
 
{{#if:{{{37|}}}|
 
{{#if:{{{37|}}}|
{{!}} style="text-align:left" scope=row {{!}} {{#if:1|{{{37}}}}}
+
! scope="row" style="font-weight:normal; text-align:left" {{!}} {{#if:1|{{{37}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{38|}}}}}
 
{{!}} style="background-color:#FEEC80;" {{!}} {{#if:1|{{{38|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{39|}}}}}
 
{{!}} style="background-color:#E5E5E5;" {{!}} {{#if:1|{{{39|}}}}}

Revision as of 20:43, 9 November 2012

Template documentation

Usage with MedalBox

Title
Sport
Representing Country
Podiums
Event 1st 2nd 3rd
Event1
Event2
Event3
Event4
Event5
Event6
Event7
Event8
Event9
Event10
{{MedalBox|title=|sport=|country=|medals=
{{MedalCount|type=Podiums
| Event1 | | | 
| Event2 | | | 
| Event3 | | | 
| Event4 | | | 
| Event5 | | | 
| Event6 | | | 
| Event7 | | | 
| Event8 | | | 
| Event9 | | | 
| Event10| | | 
}}
}}

Usage with Infobox sportsperson

Script error: No such module "If empty".
Sport
CountryCountry
SportSport
Medal record
Event 1st 2nd 3rd
Event1
Event2
Event3
Event4
Event5
Event6
Event7
Event8
Event9
Event10
Template:Wikidata image
{{Infobox sportsperson
| name =
| country = 
| sport =
| medaltemplates =
{{MedalCount|type=Podiums
| Event1 | | | 
| Event2 | | | 
| Event3 | | | 
| Event4 | | | 
| Event5 | | | 
| Event6 | | | 
| Event7 | | | 
| Event8 | | | 
| Event9 | | | 
| Event10| | | 
}}
}}

See also