Difference between revisions of "Template:Infobox bodybuilder/sandbox"
Jump to navigation
Jump to search
imported>Zyxw (allow this infobox to be embedded into a different infobox) |
imported>FeRDNYC (Synchronize with live code) |
||
| Line 6: | Line 6: | ||
| above = {{#ifeq:{{Yesno|{{{child|{{{embed|no}}}}}}}}|yes||{{#if: {{{name|}}} | {{{name}}} | {{PAGENAMEBASE}} }}}} | | above = {{#ifeq:{{Yesno|{{{child|{{{embed|no}}}}}}}}|yes||{{#if: {{{name|}}} | {{{name}}} | {{PAGENAMEBASE}} }}}} | ||
| − | | subheader = | + | | subheader = <span class="role">{{#if:{{{role|}}}|{{{role}}}|[[Bodybuilding|Bodybuilder]]}}</span>{{#switch:{{lc:{{{gender|}}}}} |male|m= {{abbr|♂|male|class=gender}} |female|f= {{abbr|♀|female|class=gender}} |#default= }} |
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}|suppressplaceholder=yes}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}|suppressplaceholder=yes}} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| − | | header1 = {{#if: {{{nickname|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{height|}}}{{{weight|}}} | Personal info }} | + | | header1 = {{#if: {{{full_name|}}}{{{nickname|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{height|}}}{{{weight|}}} | Personal info }} |
| class2 = nickname | | class2 = nickname | ||
| Line 17: | Line 17: | ||
| data2 = {{{nickname|}}} | | data2 = {{{nickname|}}} | ||
| − | | label3 = | + | | label3 = Full name |
| − | | data3 = | + | | data3 = {{{full_name|}}} |
| − | | label4 = | + | | label4 = Born |
| − | | data4 = {{br separated entries|{{{ | + | | data4 = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}}}} |
| − | | label5 = | + | | label5 = Died |
| − | | data5 = {{ | + | | data5 = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}}} |
| − | | label6 = | + | | label6 = Height |
| − | | data6 = {{#if: {{{ | + | | data6 = {{#if: {{{height|}}} | {{Infobox person/height| {{{height}}} }} }} |
| − | | | + | | label7 = Weight |
| + | | data7 = {{#if: {{{weight|}}} | {{Infobox person/weight| {{{weight}}} }} }} | ||
| − | | | + | | header8 = {{#if: {{{firstproshow|}}}{{{bestwin|}}}{{{predecessor|}}}{{{successor|}}}{{{yesorretiredyear|}}} | Professional career }} |
| − | |||
| − | | label9 = | + | | label9 = Pro-debut |
| − | | data9 = {{#if: {{{ | + | | data9 = {{#if: {{{firstproshow|}}}{{{firstproshowyear|}}}|{{cslist|{{{firstproshow|}}}|{{{firstproshowyear|}}}}}}} |
| − | | label10 = | + | | label10 = Best win |
| − | | data10 = {{{ | + | | data10 = {{#if: {{{bestwin|}}}{{{bestwinyear|}}}|{{cslist|{{{bestwin|}}}|{{{bestwinyear|}}}}}}} |
| − | | label11 = | + | | label11 = Predecessor |
| − | | data11 = {{{ | + | | data11 = {{{predecessor|}}} |
| − | | label12 = | + | | label12 = Successor |
| − | | data12 = {{{ | + | | data12 = {{{successor|}}} |
| − | | | + | | label13 = Active |
| + | | data13 = {{{yesorretiredyear|}}} | ||
| + | |||
| + | | data14 = {{{module|}}} | ||
| + | |||
| + | | header15 = {{Infobox medal templates | ||
| medals = {{{medals| {{{medaltemplates| }}} }}} | | medals = {{{medals| {{{medaltemplates| }}} }}} | ||
| title = {{{medals-title| {{{medaltemplates-title| }}} }}} | | title = {{{medals-title| {{{medaltemplates-title| }}} }}} | ||
| expand = {{#ifeq: {{lc: {{{medals-expand| {{{medaltemplates-expand| {{{show-medals| }}} }}} }}} }}|no||yes}} | | expand = {{#ifeq: {{lc: {{{medals-expand| {{{medaltemplates-expand| {{{show-medals| }}} }}} }}} }}|no||yes}} | ||
}} | }} | ||
| + | |||
| + | | data16 = {{{module2|}}} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}}<!-- Please add categories to the /doc subpage, not here. --> | {{documentation}}<!-- Please add categories to the /doc subpage, not here. --> | ||
</noinclude> | </noinclude> | ||
Revision as of 01:38, 26 December 2020
| Template:PAGENAMEBASE | |
|---|---|
| Bodybuilder |
| This is the template sandbox page for Template:Infobox bodybuilder (diff). See also the companion subpage for test cases. |
Template:Person infobox header
| This template uses Lua: |
The infobox may be added by pasting the template as shown below into an article and then filling in the fields. The only required fields are: name, birthdate/birthplace, and bestwin/bestwinyear.
Contents
Usage
Template:Parameter names example
{{Infobox bodybuilder
| name =
| gender =
| image =
| caption =
| nickname =
| birth_date = {{Birth date and age|YYYY|MM|DD}}
| birth_place =
| death_date = <!-- {{Death date and age|2017|08|20|1941|07|04}} -->
| death_place =
| height = <!-- "X cm" or "X ft Y in" plus optional reference (conversions are automatic) -->
| weight = <!-- "X kg", "X lb" or "X st Y lb" plus optional reference (conversions are automatic) -->
| firstproshow =
| firstproshowyear =
| bestwin =
| bestwinyear =
| predecessor =
| successor =
| active =
}}
Example
| Sergio Oliva | |
|---|---|
| Bodybuilder | |
| Personal info | |
| Nickname | The Myth |
| Born | July 4, 1941 Cuba |
| Died | November 12, 2012 (aged 71) Chicago, Illinois, United States |
| Height | 5 ft 8 in (173 cm) |
| Weight | 225 lb (102 kg) |
| Professional career | |
| Pro-debut |
|
| Best win |
|
| Predecessor | Larry Scott |
| Successor | Arnold Schwarzenegger |
| Active | 1962–1985 |
{{Infobox bodybuilder
| name = Sergio Oliva
| nickname = The Myth
| birth_date = {{birth date|1941|07|04}}
| birth_place = [[Cuba]]
| death_date = {{death date and age|2012|11|12|1941|07|04}}
| death_place = [[Chicago]], [[Illinois]], [[United States]]
| height = 5 ft 8 in
| weight = 225 lb
| firstproshow = Mr. World
| firstproshowyear = 1966
| bestwin = IFBB Mr. Olympia 1967–1969, three consecutive times
| bestwinyear = 1968 uncontested and unchallenged
| predecessor = [[Larry Scott (bodybuilder)|Larry Scott]]
| successor = [[Arnold Schwarzenegger#Bodybuilding career|Arnold Schwarzenegger]]
| active = 1962–1985
}}
Parameter aliases
The template accepts |yesorretiredyear= as a legacy alias for the |active= parameter.
Microformat
| The above documentation is transcluded from Template:Infobox bodybuilder/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |