Difference between revisions of "Template:Infobox baseball biography"

From Sim Football Wiki
Jump to navigation Jump to search
m (Reverted edits by LaneFrost23 (talk) to last revision by 37thchamber)
Tag: Rollback
Line 1: Line 1:
{{main other|{{short description|Baseball player|noreplace}}}}
 
 
{{infobox
 
{{infobox
| templatestyles = Infobox baseball biography/styles.css
 
 
| child = {{{embed|}}}
 
| child = {{{embed|}}}
| bodyclass = ib-baseball-bio vcard
+
| bodyclass = bordered vcard
  
| abovestyle = {{Infobox baseball biography/style|{{{team}}}}}
+
| abovestyle = font-size:larger; {{Infobox baseball biography/style|{{{team}}}}}
 +
| datastyle = text-align:left;
  
 
| aboveclass = fn
 
| aboveclass = fn
Line 32: Line 31:
 
     }} }}
 
     }} }}
  
   | data6 = {{#if:{{{bats|}}}{{{throws|}}}|<div class="ib-baseball-bio-batsthrows"><div>{{#if:{{{bats|}}}|'''{{#if:{{{finalyear|}}}{{{pasttense|}}}{{{death_date|}}}|Batted|Bats}}:''' {{{bats}}}}}</div><div>{{#if:{{{throws|}}}|'''{{#if:{{{finalyear|}}}{{{pasttense|}}}{{{death_date|}}}|Threw|Throws}}:''' {{{throws}}}}}</div></div>}}  
+
   | data6 = {{#if:{{{bats|}}}{{{throws|}}}|
 +
<table style="width:100%; border:none;border-collapse:collapse;"><tr>
 +
<td style="text-align:center;width:50%; border-width:0 1px 0 0;">{{#if:{{{bats|}}}|'''{{#if:{{{finalyear|}}}{{{death_date|}}}|Batted|Bats}}:''' {{{bats}}}}}</td>
 +
<td style="text-align:center;width:50%; border-width:0 0 0 1px;">{{#if:{{{throws|}}}|'''{{#if:{{{finalyear|}}}{{{death_date|}}}|Threw|Throws}}:''' {{{throws}}}}}</td>
 +
</tr></table>}}
  
 
   | rowstyle7 = {{Infobox baseball biography/style|{{{team}}}}}
 
   | rowstyle7 = {{Infobox baseball biography/style|{{{team}}}}}
Line 38: Line 41:
 
   | data8 =  
 
   | data8 =  
 
{{#if:{{{debutleague|}}}
 
{{#if:{{{debutleague|}}}
|{{#if:{{{debut2league|}}}{{{debut2year|}}}{{{debut2team|}}}{{{debut2date|}}}{{{debut3league|}}}{{{debut3year|}}}{{{debut3team|}}}{{{debut3date|}}}|'''{{{debutleague}}}:'''}}
+
|{{#if:{{{debut2league|}}}{{{debut2year|}}}{{{debut2team|}}}{{{debut2date|}}}{{{debut3league|}}}{{{debut3year|}}}{{{debut3team|}}}{{{debut3date|}}}|'''{{{debutleague}}}:'''|}}
 
}} {{#if:{{{debutdate|}}}|{{{debutdate}}},&nbsp;
 
}} {{#if:{{{debutdate|}}}|{{{debutdate}}},&nbsp;
 
}}{{{debutyear|}}}{{#if:{{{debutteam|}}}
 
}}{{{debutyear|}}}{{#if:{{{debutteam|}}}
Line 98: Line 101:
  
 
}}<!--  
 
}}<!--  
   Middle section uses a subbox to facilitate a difference label/data alignment
+
   Middle section uses a child box to facilitate a difference label/data alignment
 
-->{{infobox|child=yes
 
-->{{infobox|child=yes
 
   | decat = yes
 
   | decat = yes
Line 186: Line 189:
  
 
| rowstyle1 = {{Infobox baseball biography/style|{{{team}}}}}
 
| rowstyle1 = {{Infobox baseball biography/style|{{{team}}}}}
| rowclass2 = ib-baseball-bio-former
 
 
| header1 = {{#if:{{{formerteams|}}}|Former teams}}<!--deprecated, use teams instead-->
 
| header1 = {{#if:{{{formerteams|}}}|Former teams}}<!--deprecated, use teams instead-->
 
| data2  =
 
| data2  =
Line 193: Line 195:
 
| rowstyle3 = {{Infobox baseball biography/style|{{{team}}}}}
 
| rowstyle3 = {{Infobox baseball biography/style|{{{team}}}}}
 
| header3 = {{#if:{{{teams|}}}|Teams}}
 
| header3 = {{#if:{{{teams|}}}|Teams}}
| rowclass4 = ib-baseball-bio-teams
 
 
| data4 =  
 
| data4 =  
 
{{{teams|}}}
 
{{{teams|}}}
Line 211: Line 212:
 
| rowstyle6 = {{Infobox baseball biography/style|{{{team}}}}}
 
| rowstyle6 = {{Infobox baseball biography/style|{{{team}}}}}
 
| header6 = {{#if:{{{awards|{{{highlights|}}}}}}|Career highlights and awards}}
 
| header6 = {{#if:{{{awards|{{{highlights|}}}}}}|Career highlights and awards}}
| rowclass7 = ib-baseball-bio-highlights
 
 
| data7 =  
 
| data7 =  
 
{{{awards|{{{highlights|}}}}}}
 
{{{awards|{{{highlights|}}}}}}
  
| rowclass8 = ib-baseball-bio-member-header
+
| rowstyle8 = background:#EC1C40
| header8 = {{#if:{{{hofdate|}}}| [[{{{hoflink}}}|{{#if:{{{hoffuture|}}}|Incoming&nbsp;}}Member of the {{{hoftype}}}]] }}
+
| header8 = {{#if:{{{hofdate|}}}| [[{{{hoflink}}}|<span style="color:white;">{{#if:{{{hoffuture|}}}|Incoming&nbsp;}}Member of the {{{hoftype}}}</span>]] }}
| rowstyle9 = background:{{{hofcolor|#272662}}};
+
| rowstyle9 = background:{{{hofcolor|#184071}}}; white-space:nowrap;
| rowclass9 = nowrap ib-baseball-bio-member
+
| header9 = {{#if:{{{hofdate|}}}|[[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]] [[{{{hoflink}}}|<span style="color:white;">Baseball Hall of Fame</span>]] [[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]]<!--
| header9 = {{#if:{{{hofdate|}}}|[[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]] [[{{{hoflink}}}|Baseball Hall of Fame]] [[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]]<!--
 
 
-->{{infobox|child=yes
 
-->{{infobox|child=yes
 
   | labelstyle = text-align:right; padding-right:0.5em;
 
   | labelstyle = text-align:right; padding-right:0.5em;
Line 227: Line 226:
 
   | label2 = Vote
 
   | label2 = Vote
 
   | data2 = {{{hofvote|}}}
 
   | data2 = {{{hofvote|}}}
   | label3 = Election method
+
   | label3 = Election Method
 
   | data3 = {{{hofmethod|}}}
 
   | data3 = {{{hofmethod|}}}
 
   }}
 
   }}
Line 240: Line 239:
  
 
| data11 = {{#if:{{{embedded|{{{module|}}}}}}|
 
| data11 = {{#if:{{{embedded|{{{module|}}}}}}|
{{(!}} class="borderless ib-baseball-bio-module"
+
{{(!}} class="borderless" style="width:100%; background-color: #f9f9f9; color: #000000;"
 
{{!-}}
 
{{!-}}
{{!}} colspan=2 {{!}} {{{embedded|{{{module|}}}}}}
+
{{!}} style="text-align:center" colspan=2 {{!}} {{{embedded|{{{module|}}}}}}
 
{{!)}}
 
{{!)}}
 
}}
 
}}
  
 +
| belowstyle = background-color:#eeeeee;
 
| below = {{#if:{{{update|}}}|Last updated on: {{{update}}}}}
 
| below = {{#if:{{{update|}}}|Last updated on: {{{update}}}}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox baseball biography with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox baseball biography]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | awards | bats | birth_date | birth_name | birth_place | caption | crew2 | crew3 | crew4 | crewchief | death_date | death_place | debut2date | debut2league | debut2team | debut2year | debut3date | debut3league | debut3team | debut3year | debut4date | debut4league | debut4team | debut4year | debutdate | debutleague | debutteam | debutyear | embed | embedded | final2date | final2league | final2team | final2year | final3date | final3league | final3team | final3year | final4date | final4league | final4team | final4year | finaldate | finalleague | finalteam | finalyear | formerteams | highlights | hofcolor | hofdate | hoffuture | hoflink | hofmethod | hoftype | hofvote | image | image_size | managerlosses | managerties | managerwins | medaltemplates | module | name | number | position | positionplain | show-medals | stat1label | stat1value | stat2label | stat2league | stat2value | stat2year | stat3label | stat3league | stat3value | stat3year | stat4label | stat4league | stat4value | stat4year | stat5label | stat5value | stat6label | stat6value | stat7label | stat7value | stat21label | stat21value | stat22label | stat22value | stat23label | stat23value | stat24label | stat24value | stat25label | stat25value | stat26label | stat26value | stat27label | stat27value | stat31label | stat31value | stat32label | stat32value | stat33label | stat33value | stat34label | stat34value | stat35label | stat35value | stat36label | stat36value | stat37label | stat37value | stat41label | stat41value | stat42label | stat42value | stat43label | stat43value | stat44label | stat44value | stat45label | stat45value | stat46label | stat46value | stat47label | stat47value | statleague | statMyear | statyear | team | teams | throws | umpirecrew | update | width | pasttense }}<noinclude>
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox baseball biography with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox baseball biography]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | awards | bats | birth_date | birth_name | birth_place | caption | crew2 | crew3 | crew4 | crewchief | death_date | death_place | debut2date | debut2league | debut2team | debut2year | debut3date | debut3league | debut3team | debut3year | debut4date | debut4league | debut4team | debut4year | debutdate | debutleague | debutteam | debutyear | embed | embedded | final2date | final2league | final2team | final2year | final3date | final3league | final3team | final3year | final4date | final4league | final4team | final4year | finaldate | finalleague | finalteam | finalyear | formerteams | highlights | hofcolor | hofdate | hoffuture | hoflink | hofmethod | hoftype | hofvote | image | image_size | managerlosses | managerties | managerwins | medaltemplates | module | name | number | position | positionplain | show-medals | stat1label | stat1value | stat2label | stat2league | stat2value | stat2year | stat3label | stat3league | stat3value | stat3year | stat4label | stat4league | stat4value | stat4year | stat5label | stat5value | stat6label | stat6value | stat7label | stat7value | stat21label | stat21value | stat22label | stat22value | stat23label | stat23value | stat24label | stat24value | stat25label | stat25value | stat26label | stat26value | stat27label | stat27value | stat31label | stat31value | stat32label | stat32value | stat33label | stat33value | stat34label | stat34value | stat35label | stat35value | stat36label | stat36value | stat37label | stat37value | stat41label | stat41value | stat42label | stat42value | stat43label | stat43value | stat44label | stat44value | stat45label | stat45value | stat46label | stat46value | stat47label | stat47value | statleague | statMyear | statyear | team | teams | throws | umpirecrew | update | width }}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE --></noinclude>
 
<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE --></noinclude>

Revision as of 04:23, 11 November 2022

Infobox baseball biography

Lua error in package.lua at line 80: module 'strict' not found.