Difference between pages "Template:Infobox NFL biography" and "Template:Infobox NFL biography/sandbox"
(Difference between pages)
Jump to navigation
Jump to search
imported>Muboshgu |
imported>Goszei |
||
Line 2: | Line 2: | ||
| child = {{lc:{{{embed|}}}}} | | child = {{lc:{{{embed|}}}}} | ||
| bodyclass = vcard | | bodyclass = vcard | ||
− | |||
| headerstyle = line-height: 1.5em; {{#switch:{{lc:{{{current_team|{{{currentteam|}}}}}}}} | | headerstyle = line-height: 1.5em; {{#switch:{{lc:{{{current_team|{{{currentteam|}}}}}}}} | ||
Line 77: | Line 76: | ||
| data2 = {{{pastteams|{{{teams|}}}}}} | | data2 = {{{pastteams|{{{teams|}}}}}} | ||
| data3 = {{#if:{{#invoke:String |match |s=_{{{pastteams|}}}{{{teams|}}}|pattern=%)%* |plain=false |nomatch=}} | {{Pad|1.5em}}* Offseason and/or practice squad member only}} | | data3 = {{#if:{{#invoke:String |match |s=_{{{pastteams|}}}{{{teams|}}}|pattern=%)%* |plain=false |nomatch=}} | {{Pad|1.5em}}* Offseason and/or practice squad member only}} | ||
− | | rowstyle3 = color: #555; | + | | rowstyle3 = font-size: 90%; color: #555; |
| header4 = {{#if:{{{pastcoaching|}}}|As coach:}} | | header4 = {{#if:{{{pastcoaching|}}}|As coach:}} | ||
| data5 = {{{pastcoaching|}}} | | data5 = {{{pastcoaching|}}} | ||
Line 123: | Line 122: | ||
| label8 = {{{statlabel8}}}: | | label8 = {{{statlabel8}}}: | ||
| data8 = {{#if:{{{statlabel8|}}}|{{{statvalue8|}}}}} | | data8 = {{#if:{{{statlabel8|}}}|{{{statvalue8|}}}}} | ||
− | + | }} }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| header35 = {{#if:{{Both|{{{cflstatlabel1|}}}|{{{cflstatvalue1|}}}}}{{Both|{{{cflstatlabel2|}}}|{{{cflstatvalue2|}}}}}{{Both|{{{cflstatlabel3|}}}|{{{cflstatvalue3|}}}}}{{Both|{{{cflstatlabel4|}}}|{{{cflstatvalue4|}}}}}{{Both|{{{cflstatlabel5|}}}|{{{cflstatvalue5|}}}}} | | header35 = {{#if:{{Both|{{{cflstatlabel1|}}}|{{{cflstatvalue1|}}}}}{{Both|{{{cflstatlabel2|}}}|{{{cflstatvalue2|}}}}}{{Both|{{{cflstatlabel3|}}}|{{{cflstatvalue3|}}}}}{{Both|{{{cflstatlabel4|}}}|{{{cflstatvalue4|}}}}}{{Both|{{{cflstatlabel5|}}}|{{{cflstatvalue5|}}}}} | ||
Line 173: | Line 165: | ||
| belowstyle = border-top: 1px solid #ccc; | | belowstyle = border-top: 1px solid #ccc; | ||
| below = {{Infobox|child=yes|decat=yes | | below = {{Infobox|child=yes|decat=yes | ||
− | | data1 = {{#if: {{{pfr|}}}<!-- | + | | data1 = {{#if: {{{nflwd|{{{nfl-wd|{{{nflnew|{{{nfl-new|{{{nfl|{{{pfr|{{{cfl|{{{cfl-archive|{{{afl|}}}}}}}}}}}}}}}}}}}}}}}}}}} |
+ | | Player stats at {{#if: {{{nflwd|{{{nfl-wd|{{{nflnew|{{{nfl-new|{{{nfl|}}}}}}}}}}}}}}}| '''[http://www.nfl.com/players/{{{nflwd|{{{nfl-wd|{{{nflnew|{{{nfl|}}}}}}}}}}}}/stats/ NFL.com]'''}}{{#if: {{#property:P3539}} | '''[https://www.nfl.com/players/{{#property:P3539}}/stats NFL.com]'''{{EditAtWikidata|pid=P3539}}}}{{ #if: {{{pfr|}}} | · | {{ #if: {{{cfl|}}} | · | {{ #if: {{{afl|}}} | · | }}}}}}{{#if: {{{pfr|}}}<!-- | ||
The string replacement function for the Pro-Football-Reference.com link display is intended to ensure that | The string replacement function for the Pro-Football-Reference.com link display is intended to ensure that | ||
the URL contains the first letter of the player last name followed by a slash and then the rest of the player | the URL contains the first letter of the player last name followed by a slash and then the rest of the player | ||
Line 179: | Line 172: | ||
"A/AvenJo20" would be left unchanged. This change avoids a situation where the Pro-Football-Reference.com site | "A/AvenJo20" would be left unchanged. This change avoids a situation where the Pro-Football-Reference.com site | ||
generates a series of redirects between HTTP and HTTPS resources. --> | generates a series of redirects between HTTP and HTTPS resources. --> | ||
− | | | + | | '''[https://www.pro-football-reference.com/players/{{#invoke:String|replace|source={{{pfr}}}|pattern=^(%u)(%a)|replace=%1/%1%2|count=1|plain=false}}.htm PFR]''' }}{{ #if: {{{cfl|}}} | · | {{ #if: {{{afl|}}} | · | }}}}{{ #if: {{{cfl|}}} | {{#if: {{isnumeric|{{{cfl|text}}}}} | <!-- don't display dead links --> | '''[https://www.cfl.ca/players/{{{cfl}}} CFL.ca]''' }}{{#if: {{{cfl-archive|}}} | '''[{{{cfl-archive}}} CFL.ca]''' (archive) }}{{ #if: {{{afl|}}} | · '''[http://www.arenafan.com/players/{{{afl}}}/ ArenaFan.com]'''}}}}}} |
| data2 = {{#if: {{{pfrcoach|}}} | | data2 = {{#if: {{{pfrcoach|}}} | ||
| Coaching stats at '''[https://www.pro-football-reference.com/coaches/{{{pfrcoach}}}.htm PFR]''' }} | | Coaching stats at '''[https://www.pro-football-reference.com/coaches/{{{pfrcoach}}}.htm PFR]''' }} | ||
− | | data3 | + | | data3 = {{#if: {{{HOF|}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| <div style="background-color: #ffbb00;">'''[http://www.profootballhof.com/players/{{{HOF}}} Pro Football Hall of Fame]'''</div> }} | | <div style="background-color: #ffbb00;">'''[http://www.profootballhof.com/players/{{{HOF}}} Pro Football Hall of Fame]'''</div> }} | ||
− | | | + | | data4 = {{#if: {{{CollegeHOF|}}} |
| <div style="background-color: #ffbb00;">'''[{{College Football HoF/url|id={{{CollegeHOF}}}}} College Football Hall of Fame]'''</div> }} | | <div style="background-color: #ffbb00;">'''[{{College Football HoF/url|id={{{CollegeHOF}}}}} College Football Hall of Fame]'''</div> }} | ||
− | | | + | | data5 = {{#if: {{{CFHOF|}}} |
| <div style="background-color: #ffbb00;">'''[http://www.cfhof.ca/members/{{{CFHOF}}}/ Canadian Football Hall of Fame]'''</div> | | <div style="background-color: #ffbb00;">'''[http://www.cfhof.ca/members/{{{CFHOF}}}/ Canadian Football Hall of Fame]'''</div> | ||
}} | }} | ||
Line 213: | Line 200: | ||
|Denver Broncos =[[Category:Denver Broncos currentteam parameter articles]] | |Denver Broncos =[[Category:Denver Broncos currentteam parameter articles]] | ||
|Kansas City Chiefs =[[Category:Kansas City Chiefs currentteam parameter articles]] | |Kansas City Chiefs =[[Category:Kansas City Chiefs currentteam parameter articles]] | ||
− | | | + | |Oakland Raiders =[[Category:Oakland Raiders currentteam parameter articles]] |
− | | | + | |San Diego Chargers =[[Category:San Diego Chargers currentteam parameter articles]] |
|Dallas Cowboys =[[Category:Dallas Cowboys currentteam parameter articles]] | |Dallas Cowboys =[[Category:Dallas Cowboys currentteam parameter articles]] | ||
|New York Giants =[[Category:New York Giants currentteam parameter articles]] | |New York Giants =[[Category:New York Giants currentteam parameter articles]] | ||
Line 231: | Line 218: | ||
|San Francisco 49ers =[[Category:San Francisco 49ers currentteam parameter articles]] | |San Francisco 49ers =[[Category:San Francisco 49ers currentteam parameter articles]] | ||
|Seattle Seahawks =[[Category:Seattle Seahawks currentteam parameter articles]] | |Seattle Seahawks =[[Category:Seattle Seahawks currentteam parameter articles]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|Free Agent | |Free Agent | ||
|Free agent | |Free agent | ||
Line 324: | Line 248: | ||
}}{{#if:{{isnumeric|{{{cfl|text}}}}}|[[Category:Pages using infobox NFL biography with invalid cfl parameter]] | }}{{#if:{{isnumeric|{{{cfl|text}}}}}|[[Category:Pages using infobox NFL biography with invalid cfl parameter]] | ||
}}{{#if:{{{image|}}}|{{#if:{{{alt|}}}||{{#if:{{{caption|}}}|[[Category:Infobox NFL biography articles missing alt text]]|[[Category:Infobox NFL biography articles missing alt text and caption]]}} }} | }}{{#if:{{{image|}}}|{{#if:{{{alt|}}}||{{#if:{{{caption|}}}|[[Category:Infobox NFL biography articles missing alt text]]|[[Category:Infobox NFL biography articles missing alt text and caption]]}} }} | ||
− | |||
}}{{#if:{{#invoke:String |match |s=_{{{pastteams|}}}{{{teams|}}}{{{pastcoaching|}}}{{{pastexecutive|}}}{{{pastadmin|}}} |pattern=small |plain=false |nomatch=}} | [[Category:Infobox NFL biography articles with small text]] | }}{{#if:{{#invoke:String |match |s=_{{{pastteams|}}}{{{teams|}}}{{{pastcoaching|}}}{{{pastexecutive|}}}{{{pastadmin|}}} |pattern=small |plain=false |nomatch=}} | [[Category:Infobox NFL biography articles with small text]] | ||
}}{{#if:{{#invoke:String |match |s=_{{{pastteams|}}}{{{teams|}}}|pattern=%<%s*br |plain=false |nomatch=}} | [[Category:Infobox NFL biography articles with line breaks]] | }}{{#if:{{#invoke:String |match |s=_{{{pastteams|}}}{{{teams|}}}|pattern=%<%s*br |plain=false |nomatch=}} | [[Category:Infobox NFL biography articles with line breaks]] | ||
Line 331: | Line 254: | ||
}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox NFL biography with unsupported parameters|_VALUE_{{PAGENAME}}]]|preview = Page using [[Template:Infobox NFL biography]] with unknown parameter "_VALUE_" | }}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox NFL biography with unsupported parameters|_VALUE_{{PAGENAME}}]]|preview = Page using [[Template:Infobox NFL biography]] with unknown parameter "_VALUE_" | ||
| embed | name | image | image_size | alt | caption| current_team | currentteam | number | position | birth_date | birth_place | death_date | death_place | height_ft | height_in | weight_lbs | weight_lb | high_school | college | cis | draftyear | suppdraftyear | cfldraftyear | afldraftyear | undraftedyear | expansiondraftyear | draftround | draftpick | suppdraftround | cfldraftround | cfldraftpick | afldraftround | afldraftpick | expansiondraftround | expansiondraftpick | pastteams | teams | pastcoaching | pastexecutive | pastadmin | status | cflstatus | pastteamsnote | highlights | statlabel1 | statvalue1 | statlabel2 | statvalue2 | statlabel3 | statvalue3 | statlabel4 | statvalue4 | statlabel5 | statvalue5 | statlabel6 | statvalue6 | statlabel7 | statvalue7 | statlabel8 | statvalue8 | nfl | nflnew | nfl-new | nflwd | nfl-wd | statleague | statseason | statweek | cflstatlabel1 | cflstatvalue1 | cflstatlabel2 | cflstatvalue2 | cflstatlabel3 | cflstatvalue3 | cflstatlabel4 | cflstatvalue4 | cflstatlabel5 | cflstatvalue5 | cflstatseason | aflstatlabel1 | aflstatvalue1 | aflstatlabel2 | aflstatvalue2 | aflstatlabel3 | aflstatvalue3 | aflstatlabel4 | aflstatvalue4 | aflstatlabel5 | aflstatvalue5 | aflstatseason | regular_record | coachregrecord | playoff_record | coachplayoffrecord | overall_record | coachrecord | pfr | pfrcoach | cfl | cfl-archive | afl | HOF | CollegeHOF | CFHOF }} | | embed | name | image | image_size | alt | caption| current_team | currentteam | number | position | birth_date | birth_place | death_date | death_place | height_ft | height_in | weight_lbs | weight_lb | high_school | college | cis | draftyear | suppdraftyear | cfldraftyear | afldraftyear | undraftedyear | expansiondraftyear | draftround | draftpick | suppdraftround | cfldraftround | cfldraftpick | afldraftround | afldraftpick | expansiondraftround | expansiondraftpick | pastteams | teams | pastcoaching | pastexecutive | pastadmin | status | cflstatus | pastteamsnote | highlights | statlabel1 | statvalue1 | statlabel2 | statvalue2 | statlabel3 | statvalue3 | statlabel4 | statvalue4 | statlabel5 | statvalue5 | statlabel6 | statvalue6 | statlabel7 | statvalue7 | statlabel8 | statvalue8 | nfl | nflnew | nfl-new | nflwd | nfl-wd | statleague | statseason | statweek | cflstatlabel1 | cflstatvalue1 | cflstatlabel2 | cflstatvalue2 | cflstatlabel3 | cflstatvalue3 | cflstatlabel4 | cflstatvalue4 | cflstatlabel5 | cflstatvalue5 | cflstatseason | aflstatlabel1 | aflstatvalue1 | aflstatlabel2 | aflstatvalue2 | aflstatlabel3 | aflstatvalue3 | aflstatlabel4 | aflstatvalue4 | aflstatlabel5 | aflstatvalue5 | aflstatseason | regular_record | coachregrecord | playoff_record | coachplayoffrecord | overall_record | coachrecord | pfr | pfrcoach | cfl | cfl-archive | afl | HOF | CollegeHOF | CFHOF }} | ||
− | + | }}<noinclude> | |
− | |||
− | |||
<!-- Add categories to the /doc subpage; interwikis go to Wikidata. --> | <!-- Add categories to the /doc subpage; interwikis go to Wikidata. --> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |