Jump to content

Template:Infobox NFL biography: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
use a color variable for dark mode support
remove NFL.com link parameter from infobox per discussion at [https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:WikiProject_National_Football_League&diff=next&oldid=1224300360#NFL.com_links_in_infoboxes]
Line 108: Line 108:
}}
}}


| header28 = {{#if:{{Both|{{{statlabel1|}}}|{{{statvalue1|}}}}}{{Both|{{{statlabel2|}}}|{{{statvalue2|}}}}}{{Both|{{{statlabel3|}}}|{{{statvalue3|}}}}}{{Both|{{{statlabel4|}}}|{{{statvalue4|}}}}}{{Both|{{{statlabel5|}}}|{{{statvalue5|}}}}}{{Both|{{{statlabel6|}}}|{{{statvalue6|}}}}}{{{nfl|}}}{{{nflnew|}}}{{{nfl-new|}}}{{{nflwd|}}}{{{nfl-wd|}}}
| header28 = {{#if:{{Both|{{{statlabel1|}}}|{{{statvalue1|}}}}}{{Both|{{{statlabel2|}}}|{{{statvalue2|}}}}}{{Both|{{{statlabel3|}}}|{{{statvalue3|}}}}}{{Both|{{{statlabel4|}}}|{{{statvalue4|}}}}}{{Both|{{{statlabel5|}}}|{{{statvalue5|}}}}}{{Both|{{{statlabel6|}}}|{{{statvalue6|}}}}}
| Career {{If empty|{{{statleague|}}}|NFL}} statistics {{#if:{{{statseason|}}}|as of {{#if:{{{statweek|}}}|Week {{{statweek}}},}} {{{statseason}}}}}}}
| Career {{If empty|{{{statleague|}}}|NFL}} statistics {{#if:{{{statseason|}}}|as of {{#if:{{{statweek|}}}|Week {{{statweek}}},}} {{{statseason}}}}}}}
| data29 = {{#if:{{Both|{{{statlabel1|}}}|{{{statvalue1|}}}}}{{Both|{{{statlabel2|}}}|{{{statvalue2|}}}}}{{Both|{{{statlabel3|}}}|{{{statvalue3|}}}}}{{Both|{{{statlabel4|}}}|{{{statvalue4|}}}}}{{Both|{{{statlabel5|}}}|{{{statvalue5|}}}}}{{Both|{{{statlabel6|}}}|{{{statvalue6|}}}}}{{{nfl|}}}{{{nflnew|}}}{{{nfl-new|}}}{{{nflwd|}}}{{{nfl-wd|}}}
| data29 = {{#if:{{Both|{{{statlabel1|}}}|{{{statvalue1|}}}}}{{Both|{{{statlabel2|}}}|{{{statvalue2|}}}}}{{Both|{{{statlabel3|}}}|{{{statvalue3|}}}}}{{Both|{{{statlabel4|}}}|{{{statvalue4|}}}}}{{Both|{{{statlabel5|}}}|{{{statvalue5|}}}}}{{Both|{{{statlabel6|}}}|{{{statvalue6|}}}}}
|{{Infobox|bodystyle=border-collapse:collapse; border-spacing:0px; border:none; width:100%; margin:0px; font-size:100%; clear:none; float:none|labelstyle=text-align: right; width:50%;|datastyle=padding-left:3px;
|{{Infobox|bodystyle=border-collapse:collapse; border-spacing:0px; border:none; width:100%; margin:0px; font-size:100%; clear:none; float:none|labelstyle=text-align: right; width:50%;|datastyle=padding-left:3px;
| label1 = {{{statlabel1}}}:
| label1 = {{{statlabel1}}}:
Line 175: Line 175:
| 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: {{{nflwd|}}}{{{nfl-wd|}}}{{{nflnew|}}}{{{nfl-new|}}}{{{nfl|}}}{{{pfr|}}}{{{cfl|}}}{{{cfl-archive|}}}{{{afl|}}}
| data1 = {{#if: {{{pfr|}}}{{{cfl|}}}{{{cfl-archive|}}}{{{afl|}}}
| Player stats at {{#if: {{{pfr|}}}<!--
| 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: {{{pfr|}}}{{{cfl|}}}{{{cfl-archive|}}}{{{afl|}}} | &nbsp;·&nbsp; | }}}}{{#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 323: Line 323:
}}{{#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=_{{{nfl|}}}{{{nflnew|}}}{{{nfl-new|}}}{{{nfl-wd|}}} |pattern=%d+%d+ |plain=false |nomatch=}} | [[Category:Infobox NFL biography articles with old NFL.com URL]]
}}{{#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 329: Line 328:
}}{{#if:{{#invoke:String |match |s=_{{{pastteams|}}}{{{teams|}}}{{{pastcoaching|}}}{{{pastexecutive|}}}{{{pastadmin|}}}|pattern=FL%)%s |plain=false |nomatch=}} | [[Category:Infobox NFL biography articles needing cleanup in team history]]
}}{{#if:{{#invoke:String |match |s=_{{{pastteams|}}}{{{teams|}}}{{{pastcoaching|}}}{{{pastexecutive|}}}{{{pastadmin|}}}|pattern=FL%)%s |plain=false |nomatch=}} | [[Category:Infobox NFL biography articles needing cleanup in team history]]
}}{{#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 | cflstatweek | aflstatlabel1 | aflstatvalue1 | aflstatlabel2 | aflstatvalue2 | aflstatlabel3 | aflstatvalue3 | aflstatlabel4 | aflstatvalue4 | aflstatlabel5 | aflstatvalue5 | aflstatseason | regular_record | coachregrecord | playoff_record | coachplayoffrecord | overall_record | coachrecord | pfr | pfrcoach | pfrexec | cfl | cfl-archive | afl | HOF | CollegeHOF | CFHOF | module | module2}}
| 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 | statleague | statseason | statweek | cflstatlabel1 | cflstatvalue1 | cflstatlabel2 | cflstatvalue2 | cflstatlabel3 | cflstatvalue3 | cflstatlabel4 | cflstatvalue4 | cflstatlabel5 | cflstatvalue5 | cflstatseason | cflstatweek | aflstatlabel1 | aflstatvalue1 | aflstatlabel2 | aflstatvalue2 | aflstatlabel3 | aflstatvalue3 | aflstatlabel4 | aflstatvalue4 | aflstatlabel5 | aflstatvalue5 | aflstatseason | regular_record | coachregrecord | playoff_record | coachplayoffrecord | overall_record | coachrecord | pfr | pfrcoach | pfrexec | cfl | cfl-archive | afl | HOF | CollegeHOF | CFHOF | module | module2}}
}}<!--
}}<!--
Tracking category
Tracking category

Revision as of 22:52, 18 May 2024