Difference between revisions of "Template:Infobox speed skater"
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|}}} |
| − | | name | + | | name = {{{name|}}} |
| − | | image | + | | image = {{{image|}}} |
| − | | image_size | + | | image_size = {{{image_size|{{{imagesize|}}}}}} |
| − | | alt | + | | alt = {{{alt|}}} |
| − | | caption | + | | caption = {{{caption|}}} |
| − | | native_name | + | | native_name = {{{native_name|}}} |
| − | | native_name_lang= {{{native_name_lang|}}} | + | | native_name_lang = {{{native_name_lang|}}} |
| − | | birth_name | + | | birth_name = {{{birth_name|}}} |
| − | | full_name | + | | full_name = {{{full_name|{{{fullname|}}}}}} |
| − | | nickname | + | | nickname = {{{nickname|}}} |
| − | | nationality | + | | nationality = {{{nationality|}}} |
| − | | birth_date | + | | birth_date = {{{birth_date|}}} |
| − | | birth_place | + | | birth_place = {{{birth_place|}}} |
| − | | death_date | + | | death_date = {{{death_date|}}} |
| − | | death_place | + | | death_place = {{{death_place|}}} |
| − | | residence | + | | residence = {{{residence|}}} |
| − | | education | + | | education = {{{education|}}} |
| − | | alma_mater | + | | alma_mater = {{{alma_mater|}}} |
| − | | height | + | | height = {{{height|}}} |
| − | | weight | + | | weight = {{{weight|}}} |
| − | | spouse | + | | spouse = {{{spouse|}}} |
| − | | life_partner | + | | life_partner = {{{life_partner|}}} |
| − | | website | + | | website = {{{website|}}} |
| − | | country | + | | country = {{{country|}}} |
| − | | sport | + | | sport = {{{sport|[[Speed skating]]}}} |
| − | | event | + | | event = {{{event|}}} |
| − | | club | + | | club = {{{club|}}} |
| − | | turnedpro | + | | turnedpro = {{{turnedpro|}}} |
| − | | coach | + | | coach = {{{coach|}}} |
| − | | retired | + | | retired = {{{retired|}}} |
| − | | worlds | + | | worlds = {{{worlds|}}} |
| − | | olympics | + | | olympics = {{{olympics|}}} |
| − | | highestranking | + | | highestranking = {{{highestranking|}}} |
| − | | 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 | + | | medaltemplates = {{{medals|{{{medaltemplates|}}}}}} |
| − | | show-medals | + | | show-medals = {{{medals-expand|{{{show-medals|}}}}}} |
| − | | 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:Uses Infobox sportsperson
| This template uses Lua: |
Template:Parameter names example
Contents
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
Tracking categories
- via Infobox sportsperson
- Category:Pages using deprecated image syntax (1) – Used by Module:InfoboxImage to track articles where an infobox uses image syntax in the format |image=[[File:Example.jpg]]. To exclude articles from this category, change it to |image=Example.jpg.
- Category:No local image but image on Wikidata (15) – Used by Template:Wikidata image to track articles where an infobox has no image but Wikidata has an image name. To exclude articles from this category, add an image or
|nocat_wdimage=yesto the infobox.
See also
| The above documentation is transcluded from Template:Infobox speed skater/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |