Difference between revisions of "Template:Infobox bodybuilder"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Allow for automatic conversion of "height" and "weight" parameters via Template:Infobox person/height and Template:Infobox person/weight.)
imported>FeRDNYC
(Add active= as (preferred) alias for yesorretiredyear=)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| bodyclass   = vcard
+
| bodyclass = vcard
 +
| child      = {{Yesno|{{{child|{{{embed|no}}}}}}}}
  
| aboveclass = fn
+
| aboveclass = fn
| above       = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}
+
| above     = {{#ifeq:{{Yesno|{{{child|{{{embed|no}}}}}}}}|yes||{{#if: {{{name|}}} | {{{name}}} | {{PAGENAMEBASE}} }}}}
  
| subheader = —&nbsp;<span class="role">{{#if:{{{role|}}}|{{{role}}}|[[Bodybuilding|Bodybuilder]]}}</span>{{#switch:{{lc:{{{gender|}}}}} |male|m=&nbsp;{{abbr|&#9794;|male|class=gender}} |female|f=&nbsp;{{abbr|&#9792;|female|class=gender}} |#default= }}&nbsp;—
+
| subheader = <span class="role">{{#if:{{{role|}}}|{{{role}}}|[[Bodybuilding|Bodybuilder]]}}</span>{{#switch:{{lc:{{{gender|}}}}} |male|m=&nbsp;{{abbr|&#9794;|male|class=gender}} |female|f=&nbsp;{{abbr|&#9792;|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     = Personal info
+
| header1   = {{#if: {{{full_name|}}}{{{nickname|}}}{{{birth_date|}}}{{{birth_place|}}}{{{death_date|}}}{{{death_place|}}}{{{height|}}}{{{weight|}}} | Personal info }}
  
| class2     = nickname
+
| class2     = nickname
| label2     = Nickname
+
| label2     = Nickname
| data2       = {{{nickname|}}}
+
| data2     = {{{nickname|}}}
  
| label3     = Born
+
| label3     = Full&nbsp;name
| data3       = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}}}}
+
| data3     = {{{full_name|}}}
  
| label4     = Died
+
| label4     = Born
| data4       = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}}}
+
| data4     = {{br separated entries|{{{birth_date|}}}|{{{birth_place|}}}}}
  
| label5     = Height
+
| label5     = Died
| data5       = {{#if: {{{height|}}} | {{Infobox person/height| {{{height}}} }} }}
+
| data5     = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}}}
  
| label6     = Weight
+
| label6     = Height
| data6       = {{#if: {{{weight|}}} | {{Infobox person/weight| {{{weight}}} }} }}
+
| data6     = {{#if: {{{height|}}} | {{Infobox person/height| {{{height}}} }} }}
  
| header9     = Professional career
+
| label7     = Weight
 +
| data7      = {{#if: {{{weight|}}} | {{Infobox person/weight| {{{weight}}} }} }}
  
| label10    = Pro-debut
+
| header8    = {{#if: {{{firstproshow|}}}{{{bestwin|}}}{{{predecessor|}}}{{{successor|}}}{{{active|}}}{{{yesorretiredyear|}}} | Professional career }}
| data10      = {{#if:{{{firstproshow|}}}|{{{firstproshow}}}, {{{firstproshowyear}}}}}
 
  
| label11     = Best win
+
| label9     = Pro-debut
| data11     = {{#if:{{{bestwin|}}}|{{{bestwin}}}, {{{bestwinyear}}}}}
+
| data9     = {{#if: {{{firstproshow|}}}{{{firstproshowyear|}}}|{{cslist|{{{firstproshow|}}}|{{{firstproshowyear|}}}}}}}
  
| label12    = Predecessor
+
| label10    = Best win
| data12      = {{{predecessor|}}}
+
| data10    = {{#if: {{{bestwin|}}}{{{bestwinyear|}}}|{{cslist|{{{bestwin|}}}|{{{bestwinyear|}}}}}}}
  
| label13    = Successor
+
| label11    = Predecessor
| data13      = {{{successor|}}}
+
| data11    = {{{predecessor|}}}
  
| label14    = Active
+
| label12    = Successor
| data14      = {{{yesorretiredyear|}}}
+
| data12    = {{{successor|}}}
  
}}<noinclude>{{documentation}}</noinclude>
+
| label13    = Active
 +
| data13    = {{{active|{{{yesorretiredyear|}}}}}}
 +
 
 +
| data14    = {{{module|}}}
 +
 
 +
| header15  = {{Infobox medal templates
 +
  | medals = {{{medals| {{{medaltemplates| }}} }}}
 +
  | title  = {{{medals-title| {{{medaltemplates-title| }}} }}}
 +
  | expand = {{#ifeq: {{lc: {{{medals-expand| {{{medaltemplates-expand| {{{show-medals| }}} }}} }}} }}|no||yes}}
 +
  }}
 +
 
 +
| data16    = {{{module2|}}}
 +
 
 +
}}<noinclude>
 +
{{documentation}}<!-- Please add categories to the /doc subpage, not here. -->
 +
</noinclude>

Latest revision as of 02:03, 26 December 2020

Template:PAGENAMEBASE
Bodybuilder

[[Category:Infobox templates|Template:Remove first word]]

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

Template:Person infobox header

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.

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
NicknameThe Myth
Born(1941-07-04)July 4, 1941
Cuba
DiedNovember 12, 2012(2012-11-12) (aged 71)
Chicago, Illinois, United States
Height5 ft 8 in (173 cm)
Weight225 lb (102 kg)
Professional career
Pro-debut
  • Mr. World
  • 1966
Best win
  • IFBB Mr. Olympia 1967–1969, three consecutive times
  • 1968 uncontested and unchallenged
PredecessorLarry Scott
SuccessorArnold Schwarzenegger
Active1962–1985
[[Category:Infobox templates|Template:Remove first word]]
{{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

Template:UF-hcard-person