Difference between revisions of "Template:CompetitionRecord"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
 
Line 2: Line 2:
 
</noinclude>
 
</noinclude>
 
|- style="background-color:white;"
 
|- style="background-color:white;"
| style="width:3em; text-align:center; vertical-align:middle; font-weight:bold; {{#switch:{{lc:{{if empty|{{{place|}}}|{{{1|}}}}}}}|<small>champion</small>|champion|1st=background-color:gold|2nd=background-color:silver|3rd=background-color:#cc9966|3rd-4th|3rd–4th=background-color:#cc9966|disqualified|<small>disqualified</small>|dq=background-color:pink|#default=}}" | {{#invoke:string|replace|{{if empty|{{{place|}}}|{{{1|}}}}}|%s*%-%s*|–|plain=false}}
+
| style="width:3em; text-align:center; vertical-align:middle; font-weight:bold; {{#switch:{{lc:{{{1|}}}}}|<small>champion</small>|champion|1st=background-color:gold|2nd=background-color:silver|3rd=background-color:#cc9966|3rd-4th|3rd–4th=background-color:#cc9966|disqualified|<small>disqualified</small>|dq=background-color:pink|#default=}}" | {{#invoke:string|replace|{{if empty|{{{place|}}}|{{{1|}}}}}|%s*%-%s*|–|plain=false}}
| style="text-align:center; vertical-align:middle;" | {{#if:{{{place|}}}|{{{1|}}}|{{{2|}}}}}{{#if:{{{place|}}}|[[Category:Pages using CompetitionRecord with place parameter]]}}
+
| style="text-align:center; vertical-align:middle;" | {{#if:1|{{{2|}}}}}
| style="text-align:center; vertical-align:middle;" | {{#if:{{{place|}}}|{{{2|}}}|{{{3|}}}}}<noinclude>
+
| style="text-align:center; vertical-align:middle;" | {{#if:1|{{{3|}}}}}<noinclude>
 
|}
 
|}
 
{{documentation|Template:CompetitionRecordRelatedTemplates}}
 
{{documentation|Template:CompetitionRecordRelatedTemplates}}
 
</noinclude>
 
</noinclude>

Latest revision as of 02:47, 7 July 2020

Script error: No such module "If empty".
Template documentation[view] [edit] [history] [purge]

Usage example

Competition record
Athlete name
Athlete name
Representing  Europe
Strongman
World's Strongest Man
Script error: No such module "If empty". 2009 World's Strongest Man
Britain's Strongest Man
Script error: No such module "If empty". 1977 Britain's Strongest Man
Script error: No such module "If empty". 1978 Britain's Strongest Man
{{CompetitionRecordTableTop|Bad Title Example.png|150px|Athlete name}}
{{CompetitionRecordCountry | {{EUR}} }}
{{CompetitionRecordSport | [[Strongman (strength athlete)|Strongman]]}}
{{CompetitionRecordCompetition|[[World's Strongest Man]]}}
{{CompetitionRecord|1st | [[2009 World's Strongest Man]] | }}
{{CompetitionRecordCompetition|[[Britain's Strongest Man]]}}
{{CompetitionRecord|2nd | [[1977 Britain's Strongest Man]] | }}
{{CompetitionRecord|3rd | [[1978 Britain's Strongest Man]] | }}
{{CompetitionRecordBottom}}

Related templates

Heading

{{CompetitionRecordTableTop}} – with the optional image parameters (see example above):

  1. Image name without 'Image:'.
  2. Image size. Default value: 100px.
  3. Caption. Default value: {{PAGENAME}}.

Sub Headings

Awards

Use of the {{CompetitionRecordSemifinalist}} and {{CompetitionRecordQuarterfinalist}} templates are for single-elimination tournaments where there is no third place playoff match.

All with the usage: {{CompetitionRecord| Ranking | Year City | Event}} (see example above)

Footer

{{CompetitionRecordBottom}}