Difference between revisions of "Template:Infobox speed skater"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(add check for unknown parameters)
imported>Zyxw
(allow "module" parameter and move additional parameters to "module2")
Line 1: Line 1:
 
<includeonly>{{Infobox sportsperson
 
<includeonly>{{Infobox sportsperson
| headercolor     = {{{headercolor|}}}
+
| headercolor     = {{{headercolor|}}}
| name           = {{{name|}}}
+
| name             = {{{name|}}}
| image           = {{{image|}}}
+
| image           = {{{image|}}}
| image_size     = {{{image_size|{{{imagesize|}}}}}}
+
| image_size       = {{{image_size|{{{imagesize|}}}}}}
| alt             = {{{alt|}}}
+
| alt             = {{{alt|}}}
| caption         = {{{caption|}}}
+
| caption         = {{{caption|}}}
| native_name     = {{{native_name|}}}
+
| native_name     = {{{native_name|}}}
| native_name_lang= {{{native_name_lang|}}}
+
| native_name_lang = {{{native_name_lang|}}}
| birth_name     = {{{birth_name|}}}
+
| birth_name       = {{{birth_name|}}}
| full_name       = {{{full_name|{{{fullname|}}}}}}
+
| full_name       = {{{full_name|{{{fullname|}}}}}}
| nickname       = {{{nickname|}}}
+
| nickname         = {{{nickname|}}}
| nationality     = {{{nationality|}}}
+
| nationality     = {{{nationality|}}}
| birth_date     = {{{birth_date|}}}
+
| birth_date       = {{{birth_date|}}}
| birth_place     = {{{birth_place|}}}
+
| birth_place     = {{{birth_place|}}}
| death_date     = {{{death_date|}}}
+
| death_date       = {{{death_date|}}}
| death_place     = {{{death_place|}}}
+
| death_place     = {{{death_place|}}}
| residence       = {{{residence|}}}
+
| residence       = {{{residence|}}}
| education       = {{{education|}}}
+
| education       = {{{education|}}}
| alma_mater     = {{{alma_mater|}}}
+
| alma_mater       = {{{alma_mater|}}}
| height         = {{{height|}}}
+
| height           = {{{height|}}}
| weight         = {{{weight|}}}
+
| weight           = {{{weight|}}}
| spouse         = {{{spouse|}}}
+
| spouse           = {{{spouse|}}}
| life_partner   = {{{life_partner|}}}
+
| life_partner     = {{{life_partner|}}}
| website         = {{{website|}}}
+
| website         = {{{website|}}}
| country         = {{{country|}}}
+
| country         = {{{country|}}}
| sport           = {{{sport|[[Speed skating]]}}}
+
| sport           = {{{sport|[[Speed skating]]}}}
| event           = {{{event|}}}
+
| event           = {{{event|}}}
| club           = {{{club|}}}
+
| club             = {{{club|}}}
| turnedpro       = {{{turnedpro|}}}
+
| turnedpro       = {{{turnedpro|}}}
| coach           = {{{coach|}}}
+
| coach           = {{{coach|}}}
| retired         = {{{retired|}}}
+
| retired         = {{{retired|}}}
| worlds         = {{{worlds|}}}  
+
| worlds           = {{{worlds|}}}  
| olympics       = {{{olympics|}}}
+
| olympics         = {{{olympics|}}}
| highestranking = {{{highestranking|}}}
+
| highestranking   = {{{highestranking|}}}
| pb             = {{{pb|}}}
+
| pb               = {{{pb|}}}
| module          = {{#if:{{{worldcup|}}}{{{worldchamp|}}}|{{Infobox|child = yes
+
| module           = {{{module|}}}
 +
| module2         = {{#if:{{{worldcup|}}}{{{worldchamp|}}}|{{Infobox|child = yes
 
   | label1 = World Cup wins
 
   | label1 = World Cup wins
 
   | data1  = {{{worldcup|}}}
 
   | data1  = {{{worldcup|}}}
Line 41: Line 42:
 
   | data2  = {{{worldchamp|}}}
 
   | data2  = {{{worldchamp|}}}
 
   }}}}
 
   }}}}
| medaltemplates = {{{medals|{{{medaltemplates|}}}}}}
+
| medaltemplates   = {{{medals|{{{medaltemplates|}}}}}}
| show-medals     = {{{medals-expand|{{{show-medals|}}}}}}
+
| show-medals     = {{{medals-expand|{{{show-medals|}}}}}}
| nocat_wdimage   = {{{nocat_wdimage|}}}
+
| nocat_wdimage   = {{{nocat_wdimage|}}}
}}</includeonly>{{#invoke:Check for unknown parameters | check | ignoreblank = y | unknown = {{Main other|[[Category:Pages using Infobox speed skater with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview = Page using [[Template:Infobox speed skater]] with unknown parameter "_VALUE_" | headercolor | name | image | image_size | imagesize | alt | caption | native_name | native_name_lang | birth_name | full_name | fullname | nickname | nationality | birth_date | birth_place | death_date | death_place | residence | education | alma_mater | height | weight | spouse | life_partner | website | country | sport | event | club | turnedpro | coach | retired | worlds | olympics | highestranking | pb | worldcup | worldchamp | medals | medaltemplates | medals-expand | show-medals | nocat_wdimage
+
}}</includeonly>{{#invoke:Check for unknown parameters | check | ignoreblank = y | unknown = {{Main other|[[Category:Pages using Infobox speed skater with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview = Page using [[Template:Infobox speed skater]] with unknown parameter "_VALUE_" | headercolor | name | image | image_size | imagesize | alt | caption | native_name | native_name_lang | birth_name | full_name | fullname | nickname | nationality | birth_date | birth_place | death_date | death_place | residence | education | alma_mater | height | weight | spouse | life_partner | website | module | country | sport | event | club | turnedpro | coach | retired | worlds | olympics | highestranking | pb | worldcup | worldchamp | medals | medaltemplates | medals-expand | show-medals | nocat_wdimage
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- please place categories in the /doc sub-page, not here -->
 
<!-- please place categories in the /doc sub-page, not here -->
 
</noinclude>
 
</noinclude>

Revision as of 16:29, 17 July 2018

Template documentation[view] [edit] [history] [purge]

Template:Uses Infobox sportsperson

Template:Tracks Wikidata

Template:Parameter names example

Usage

{{Infobox speed skater
| headercolor      = 
| name             = 
| image            = 
| image_size       = 
| imagesize        = 
| alt              = 
| caption          = 
| native_name      = 
| native_name_lang = 
| birth_name       = <!-- if different than name -->
| full_name        = <!-- if different than name or birth_name -->
| nickname         = 
| nationality      = 
| birth_date       = <!-- {{birth date and age|yyyy|mm|dd}} -->
| birth_place      = 
| death_date       = <!-- {{death date and age|death year|death month|death day|birth year|birth month|birth day}} -->
| death_place      = 
| residence        = 
| education        = 
| alma_mater       = 
| height           = <!-- "X ft Y in" or "X cm" plus optional reference (conversions are automatic) -->
| weight           = <!-- "X lb", "X kg" or "X st Y lb" plus optional reference (conversions are automatic) -->
| spouse           = 
| life_partner     = 
| website          = 
| country          = 
| sport            = <!-- Speed skating by default -->
| event            = 
| club             = 
| turnedpro        = 
| coach            = 
| retired          = 
| worlds           = 
| olympics         = 
| highestranking   = 
| pb               = 
| module           = 
| worldcup         = 
| worldchamp       = 
| medals           = 
| medaltemplates   = 
| medals-expand    = 
| show-medals      = 
| nocat_wdimage    =
}}

Parameters

All of the parameters shown in the previous section, except worldcup and worldchamp, are documented at Template:Infobox sportsperson.

Parameter Description
worldcup World Cup wins
worldchamp World championship wins

Embedding other templates

The module parameter is used for embedding other templates into this infobox (see Wikipedia:Infobox modules and Category:Biographical templates usable as a module).

{{Infobox speed skater
| name = 
| <!-- etc. -->
| module = 
  {{Infobox ABC
  | embed = yes <!-- or child=yes / subbox=yes-->
  | <!-- etc. -->
  }}
}}

Microformat

Template:UF-hcard-person

Tracking categories

via Infobox sportsperson

See also