Template:Infobox martial artist and Template:Infobox sport wrestler: Difference between pages

From IxWiki
(Difference between pages)
Jump to navigation Jump to search
>Primefac
(rmv ethnicity per past discussions regarding this param on other templates)
 
>Zyxw
(pass parameter to {{Infobox sportsperson}} which can prevent {{Wikidata image}} from adding an article to Category:No local image but image on Wikidata)
 
Line 1: Line 1:
{{Infobox
<includeonly>{{Infobox sportsperson
| child = {{{child|{{{embed|}}}}}}
| headercolor = #ff903e
| subbox = {{{subbox|}}}
| name        = {{{name|}}}
| bodyclass  = vcard
| image      = {{{image|}}}
| headerstyle = background-color:{{{color|{{{colour|#efefef}}}}}}
| image_size  = {{{image_size|{{{imagesize|}}}}}}
| above      = {{#if:{{{child|}}}{{{embed|}}}{{{subbox|}}}||<includeonly><span class="fn">{{{name|{{PAGENAMEBASE}}}}}</span></includeonly>}}
| alt         = {{{alt|}}}
| abovestyle  = background-color:{{{color|{{{colour|#efefef}}}}}}
| caption    = {{{caption|}}}
 
| birth_name  = {{{birth_name|}}}
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{#invoke:Wikidata|claim|P18}}}}}|size={{{image_size|{{{imagesize|}}}}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}|suppressplaceholder=yes}}
| full_name  = {{{full_name|{{{fullname|}}}}}}
| caption    = {{{caption|{{#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}}}}
| nickname    = {{{nickname|{{{nicknames|}}}}}}
 
| nationality = {{{nationality|}}}
| label1      = Born
| birth_date  = {{{birth_date|}}}
| data1      = {{br separated entries|{{{birth_name|{{{birthname|}}}}}}|{{{birth_date|}}}|{{{birth_place|}}}}}
| birth_place = {{{birth_place|}}}
 
| death_date  = {{{death_date|}}}
| label2      = Died
| death_place = {{{death_place|}}}
| data2      = {{br separated entries|{{{death_date|}}}|{{{death_place|}}}|{{{death_cause|{{{deathcause|}}}}}}}}
| height      = {{{height|}}}
 
| weight     = {{{weight|}}}
| label3      = Native name
| sport       = [[Amateur wrestling|Wrestling]]
| data3      = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}" xml:lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span> }}
| module2     = {{#if:{{{style|}}}{{{club|}}}{{{collegeteam|}}}{{{coach|}}}|{{Infobox|child = yes
 
   | label1     = Style
| label4      = {{#if:{{{other_names|}}}|Other names|Nickname(s)}}
   | data1      = {{{style|}}}
| data4      = {{if empty|{{{other_names|}}}|{{{nickname|}}}}}
   | label2     = Club
| class4      = nickname
  | class2     = org
 
   | data2      = {{{club|}}}
| label5      = Residence
   | label3     = College team
| data5      = {{{residence|}}}
   | data3      = {{{collegeteam|}}}
 
   | label4     = Coach
| label6      = Nationality
  | data4      = {{{coach|}}}
| data6      = {{{nationality|}}}
}}}}
 
| medaltemplates = {{{medals|{{{medaltemplates|}}}}}}
| label8      = Height
| show-medals   = {{{medals-expand|{{{show-medals|}}}}}}
| data8      = {{#if:{{{height_ft|}}}
| updated        = {{{updated|}}}
  |{{convert|{{{height_ft}}}|ft|{{#if:{{{height_in|}}}|{{{height_in}}}|0}}|in|cm|0|abbr=on}}{{{height_footnote|}}}
| nocat_wdimage  = {{{nocat_wdimage|}}}
  |{{#if:{{{height_cm|}}}
}}</includeonly><noinclude>
    |{{convert|{{{height_cm}}}|cm|ftin|0|abbr=on}}{{{height_footnote|}}}
{{Documentation}}
    |{{#if:{{{height_m|}}}
<!-- please place categories in the /doc sub-page, not here -->
        |{{convert|{{{height_m}}}|m|ftin|0|abbr=on}}{{{height_footnote|}}}
        |{{#if:{{{height|}}}|{{Infobox person/height|{{{height}}}}}}}{{{height_footnote|}}}
      }}
  }}
}}
 
| label9     = Weight
| data9      = {{#if:{{{weight_lb|{{{weightlb|}}}}}}
  |{{convert|{{{weight_lb|{{{weightlb}}}}}}|lb|kg stlb|0|abbr=on}}{{{weight_footnote|}}}
  |{{#if:{{{weight_kg|{{{weightkg|}}}}}}
    |{{convert|{{{weight_kg|{{{weightkg}}}}}}|kg|lb stlb|0|abbr=on}}{{{weight_footnote|}}}
     |{{#if:{{{weight|}}}|{{Infobox person/weight|kg-stlb=y|lb-stlb=y|{{{weight}}}}}}}{{{weight_footnote|}}}
  }}
}}
 
| label10      = Division
| data10       = {{{weight_class|{{{weightclass|}}}}}}
 
| label11      = Reach
| data11      = {{#if:{{{reach_in|{{{reachin|}}}}}}
  |{{convert|{{{reach_in|{{{reachin}}}}}}|in|cm|0|abbr=on}}{{{reach_footnote|}}}
  |{{#if:{{{reach_cm|{{{reachcm|}}}}}}
    |{{convert|{{{reach_cm|{{{reachcm}}}}}}|cm|in|1|abbr=on}}{{{reach_footnote|}}}
    |{{#if:{{{reach|}}}|{{Infobox person/length|{{{reach}}}}}}}{{{reach_footnote|}}}
  }}
}}
 
| label12    = Style
| data12      = {{br separated entries||{{{martial_art|}}}|{{{style|}}}}}
 
| label13     = Stance
| data13      = {{#if:{{{stance|}}}|{{#switch:{{lc:{{{stance}}}}}
                |r|right|orthodox = [[Orthodox stance|Orthodox]]
                |l|left|southpaw  = [[Southpaw stance|Southpaw]]
                |                = <span style="color:red;">Unknown Value: {{{stance}}}</span>
                }}
              }}
 
| label14    = Fighting out of
| data14      = {{{fighting_out_of|{{{fightingoutof|}}}}}}
 
| label15    = Team
| data15      = {{{team|}}}
| class15    = org
 
| label16    = Teacher(s)
| data16      = {{{teacher|}}}
 
| label17    = Trainer
| data17      = {{{trainer|}}}
| class17    = agent
 
| label18    = Rank
| data18      = {{{rank|}}}
 
| label19    = Wrestling
| data19      = {{{wrestling|}}}
 
| label20    = Years active
| data20      = {{{years_active|{{{yearsactive|}}}}}}
 
| data21      = {{Infobox martial artist/record
  |color  = {{{color|{{{colour|#efefef}}}}}}
  |type    = [[Professional boxing]] record
  |win    = {{{box_win|{{{boxingwins|}}}}}}
  |kowin   = {{{box_kowin|{{{boxingkowins|}}}}}}
  |loss    = {{{box_loss|{{{boxinglosses|}}}}}}
  |koloss  = {{{box_koloss|{{{boxingkolosses|}}}}}}
  |draw    = {{{box_draw|{{{boxingdraws|}}}}}}
  |nc     = {{{box_nc|{{{boxingncs|}}}}}}
  }}
 
| data22      = {{Infobox martial artist/record
  |color   = {{{color|{{{colour|#efefef}}}}}}
  |type    = [[Kickboxing]] record
  |win    = {{{kickbox_win|{{{kickboxingwins|}}}}}}
  |kowin   = {{{kickbox_kowin|{{{kickboxingkowins|}}}}}}
  |loss    = {{{kickbox_loss|{{{kickboxinglosses|}}}}}}
  |koloss  = {{{kickbox_koloss|{{{kickboxingkolosses|}}}}}}
  |draw    = {{{kickbox_draw|{{{kickboxingdraws|}}}}}}
  |nc     = {{{kickbox_nc|{{{kickboxingncs|}}}}}}
  }}
 
| data23     = {{#ifexpr:0{{{mma_win|{{{mmawins|{{#expr:0{{{mma_kowin|{{{mmakowins|}}}}}} + 0{{{mma_subwin|{{{mmasubwins|}}}}}} + 0{{{mma_decwin|{{{mmadecwins|}}}}}} + 0{{{mma_otherwin|{{{mmaotherwins|}}}}}} + 0{{{mma_dqwin|{{{mmadqwins|}}}}}}}}}}}}}} + 0{{{mma_loss|{{{mmalosses|{{#expr:0{{{mma_koloss|{{{mmakolosses|}}}}}} + 0{{{mma_subloss|{{{mmasublosses|}}}}}} + 0{{{mma_decloss|{{{mmadeclosses|}}}}}} + 0{{{mma_dqloss|{{{mmadqlosses|}}}}}}}}}}}}}} > 0|{{Infobox martial artist/record
  |color   = {{{color|{{{colour|#efefef}}}}}}
  |type    = {{#if:{{{mma_label|{{{mmalabel|}}}}}}|{{{mma_label|{{{mmalabel}}}}}}|[[Mixed martial arts]] record}}
  |win    = {{{mma_win|{{{mmawins|{{#expr:0{{{mma_kowin|{{{mmakowins|}}}}}} + 0{{{mma_subwin|{{{mmasubwins|}}}}}} + 0{{{mma_decwin|{{{mmadecwins|}}}}}} + 0{{{mma_otherwin|{{{mmaotherwins|}}}}}} + 0{{{mma_dqwin|{{{mmadqwins|}}}}}}}}}}}}}}
  |kowin   = {{{mma_kowin|{{{mmakowins|}}}}}}
  |subwin  = {{{mma_subwin|{{{mmasubwins|}}}}}}
  |decwin  = {{{mma_decwin|{{{mmadecwins|}}}}}}
  |dqwin  = {{{mma_dqwin|{{{mmadqwins|}}}}}}
  |otherwin= {{{mma_otherwin|{{{mmaotherwins|}}}}}}
  |loss    = {{{mma_loss|{{{mmalosses|{{#expr:0{{{mma_koloss|{{{mmakolosses|}}}}}} + 0{{{mma_subloss|{{{mmasublosses|}}}}}} + 0{{{mma_decloss|{{{mmadeclosses|}}}}}} + 0{{{mma_otherloss|{{{mmaotherlosses|}}}}}} + 0{{{mma_dqloss|{{{mmadqlosses|}}}}}}}}}}}}}}
  |koloss  = {{{mma_koloss|{{{mmakolosses|}}}}}}
  |subloss = {{{mma_subloss|{{{mmasublosses|}}}}}}
  |decloss = {{{mma_decloss|{{{mmadeclosses|}}}}}}
  |dqloss  = {{{mma_dqloss|{{{mmadqlosses|}}}}}}
  |otherloss={{{mma_otherloss|{{{mmaotherlosses|}}}}}}
  |draw    = {{{mma_draw|{{{mmadraws|}}}}}}
  |nc     = {{{mma_nc|{{{mmancs|}}}}}}
  }} }}
 
| data24      = {{Infobox martial artist/record
  |color   = {{{color|{{{colour|#efefef}}}}}}
  |type    = {{#if:{{{am_label|{{{amlabel|}}}}}}|{{{am_label|{{{amlabel}}}}}}|[[Amateur sports|Amateur]] record}}
  |win    = {{{am_win|{{{amwins|}}}}}}
  |kowin   = {{{am_kowin|{{{amkowins|}}}}}}
  |subwin  = {{{am_subwin|{{{amsubwins|}}}}}}
  |decwin  = {{{am_decwin|{{{amdecwins|}}}}}}
  |loss    = {{{am_loss|{{{amlosses|}}}}}}
  |koloss  = {{{am_koloss|{{{amkolosses|}}}}}}
  |subloss = {{{am_subloss|{{{amsublosses|}}}}}}
  |decloss = {{{am_decloss|{{{amdeclosses|}}}}}}
  |draw    = {{{am_draw|{{{amdraws|}}}}}}
  |nc     = {{{am_nc|{{{amncs|}}}}}}
  }}
 
| header25    = {{#if:{{both|{{{box_win|{{{boxingwins|}}}}}}{{{box_loss|{{{boxinglosses|}}}}}}{{{box_draw|{{{boxingdraws|}}}}}}{{{box_nc|{{{boxingncs|}}}}}}{{{mma_win|{{{mmawins|}}}}}}{{{mma_loss|{{{mmalosses|}}}}}}{{{kickbox_win|{{{kickboxingwins|}}}}}}{{{kickbox_loss|{{{kickboxinglosses|}}}}}}{{{kickbox_draw|{{{kickboxingdraws|}}}}}}{{{kickbox_nc|{{{kickboxingncs|}}}}}}{{{mma_draw|{{{mmadraws|}}}}}}{{{mma_nc|{{{mmancs|}}}}}}{{{am_win|{{{amwins|}}}}}}{{{am_loss|{{{amlosses|}}}}}}{{{am_draw|{{{amdraws|}}}}}}{{{am_nc|{{{amncs|}}}}}}|{{{occupation|}}}{{{university|}}}{{{spouse|}}}{{{relatives|}}}{{{students|}}}{{{club|}}}{{{school|}}}{{{url|}}}{{{boxrec|}}}{{{sherdog|}}}}}|Other information}}
 
| label26    = Occupation
| data26      = {{{occupation|}}}
| class26    = role
 
| label27    = University
| data27      = {{{university|}}}
 
| label28    = Spouse
| data28      = {{{spouse|}}}
 
| label29    = Children
| data29      = {{{children|}}}
 
| label30    = Notable relatives
| data30      = {{{relatives|}}}
 
| label31    = Notable students
| data31      = {{{students|}}}
 
| label32    = Notable club(s)
| data32      = {{{club|}}}
 
| label33    = Notable school(s)
| data33      = {{{school|}}}
 
| label34    = Website
| data34      = {{{url|{{{website|}}}}}}
 
| data35      = {{#if:{{{boxrec|}}}|[http://boxrec.com/en/boxer/{{{boxrec}}} Boxing record] from [[Boxrec.com|BoxRec]]}}
 
| data36      = {{#if:{{{sherdog|}}}|[http://www.sherdog.com/fightfinder/fightfinder.asp?fighterID={{{sherdog|}}} Mixed martial arts record] from [[Sherdog]]}}
 
| header37   = {{#if:{{{medaltemplates|}}}|{{Infobox medal templates
  |medals = {{{medaltemplates|}}}
  |expand = {{#ifeq:{{lc:{{{show-medals}}}}}|no||yes}}
  }}}}
 
| data65    = {{{misc|{{{module|}}}}}}
| data66    = {{{misc2|{{{module2|}}}}}}
 
| below      = {{#if:{{{footnotes|}}}|<span style="font-size: smaller;">{{{footnotes}}}</span><br />}}{{#if:{{{updated|}}}|<div style="text-align: center;"><span style="font-size: 80%; font-weight: lighter; margin: 1em; color: #555;">last updated on: {{{updated}}}</span></div>}}
 
}}{{#invoke:Check for unknown parameters | check | unknown = {{Main other|[[Category:Pages using infobox martial artist with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview = Page using [[Template:Infobox martial artist]] with unknown parameter "_VALUE_" | ignoreblank = y | alt | am_decloss | am_decwin | am_draw | am_koloss | am_kowin | am_label | am_loss | am_nc | am_subloss | am_subwin | am_win | amdeclosses | amdecwins | amdraws | amkolosses | amkowins | amlabel | amlosses | amncs | amsublosses | amsubwins | amwins | birth_date | birth_name | birth_place | birthname | box_draw | box_koloss | box_kowin | box_loss | box_nc | box_win | boxingdraws | boxingkolosses | boxingkowins | boxinglosses | boxingncs | boxingwins | boxrec | caption | child | children | club | color | colour | death_cause | death_date | death_place | deathcause | embed | ethnicity | fighting_out_of | fightingoutof | footnotes | height | height_cm | height_footnote | height_ft | height_in | height_m | image | image_size | imagesize | kickbox_draw | kickbox_koloss | kickbox_kowin | kickbox_loss | kickbox_nc | kickbox_win | kickboxingdraws | kickboxingkolosses | kickboxingkowins | kickboxinglosses | kickboxingncs | kickboxingwins | martial_art | medaltemplates | misc | misc2 | mma_decloss | mma_decwin | mma_dqloss | mma_dqwin | mma_draw | mma_koloss | mma_kowin | mma_label | mma_loss | mma_nc | mma_otherloss | mma_otherwin | mma_subloss | mma_subwin | mma_win | mmadeclosses | mmadecwins | mmadqlosses | mmadqwins | mmadraws | mmakolosses | mmakowins | mmalabel | mmalosses | mmancs | mmaotherlosses | mmaotherwins | mmasublosses | mmasubwins | mmawins | module | module2 | name | nationality | native_name | native_name_lang | nickname | occupation | other_names | rank | reach | reach_cm | reach_footnote | reach_in | reachcm | reachin | relatives | residence | school | sherdog | show-medals | spouse | stance | students | style | subbox | teacher | team | trainer | university | updated | url | website | weight | weight_class | weight_footnote | weight_kg | weight_lb | weightclass | weightkg | weightlb | wrestling | years_active | yearsactive
}}<noinclude>
{{Documentation}}<!-- place categories on /doc sub-page, interwikis in Wikidata -->
</noinclude>
</noinclude>

Latest revision as of 20:44, 29 January 2017