Difference between revisions of "Template:Footballstats/doc"

From blackwiki
Jump to navigation Jump to search
imported>Certes
(Closing <small> tags)
imported>Pauli133
m (fixing lint errors)
Line 6: Line 6:
 
To use this template, copy and paste this text to a football player's external links section:
 
To use this template, copy and paste this text to a football player's external links section:
  
<code>* <nowiki>{{</nowiki>{{BASEPAGENAME}} |nfl= |cfl= |afl= |espn= |cbs= |yahoo= |fox= |si= |pfr= |rotoworld= |dbf= }}</code>
+
*<code><nowiki>{{</nowiki>{{BASEPAGENAME}} |nfl= |cfl= |afl= |espn= |cbs= |yahoo= |fox= |si= |pfr= |rotoworld= |dbf= <nowiki>}}</nowiki></code>
  
 
Add the page ID's after the equals sign to properly direct the links that you desire to have. If you do not specify an ID, the site will not be shown.
 
Add the page ID's after the equals sign to properly direct the links that you desire to have. If you do not specify an ID, the site will not be shown.
Line 15: Line 15:
 
Example for [[Peyton Manning]]:
 
Example for [[Peyton Manning]]:
  
<code>* <nowiki>{{</nowiki>{{BASEPAGENAME}} |nfl=MAN515097 |cfl= |afl= |espn=1428 |cbs=12531 |yahoo=4256 |fox=69814 |si=4256 |pfr=M/MannPe00 |rotoworld=1493 |dbf=MANNIPEY01 }}</code>
+
*<code><nowiki>{{</nowiki>{{BASEPAGENAME}} |nfl=MAN515097 |cfl= |afl= |espn=1428 |cbs=12531 |yahoo=4256 |fox=69814 |si=4256 |pfr=M/MannPe00 |rotoworld=1493 |dbf=MANNIPEY01 <nowiki>}}</nowiki></code>
 
* {{{{BASEPAGENAME}} |nfl=MAN515097 |cfl= |afl= |espn=1428 |cbs=12531 |yahoo=4256 |fox=69814 |si=4256 |pfr=M/MannPe00 |rotoworld=1493 |dbf=MANNIPEY01 }}
 
* {{{{BASEPAGENAME}} |nfl=MAN515097 |cfl= |afl= |espn=1428 |cbs=12531 |yahoo=4256 |fox=69814 |si=4256 |pfr=M/MannPe00 |rotoworld=1493 |dbf=MANNIPEY01 }}
  
 
For NFL.com URLs with a format similar to http://www.nfl.com/player/charliejoiner/2517795/profile, typically found with retired players at http://www.nfl.com/players?playerType=historical, use:
 
For NFL.com URLs with a format similar to http://www.nfl.com/player/charliejoiner/2517795/profile, typically found with retired players at http://www.nfl.com/players?playerType=historical, use:
  
<code>* <nowiki>{{</nowiki>{{BASEPAGENAME}} |nfl=2517795 }}</code>
+
*<code><nowiki>{{</nowiki>{{BASEPAGENAME}} |nfl=2517795 <nowiki>}}</nowiki></code>
 
* {{{{BASEPAGENAME}} |nfl=2517795 }}
 
* {{{{BASEPAGENAME}} |nfl=2517795 }}
  
 
Example for CFL and AFL player:
 
Example for CFL and AFL player:
  
<code>* <nowiki>{{</nowiki>{{BASEPAGENAME}} |cfl=779 |afl=3760 }}</code>
+
*<code><nowiki>{{</nowiki>{{BASEPAGENAME}} |cfl=779 |afl=3760 <nowiki>}}</nowiki></code>
 
* {{{{BASEPAGENAME}} |cfl=779 |afl=3760 }}
 
* {{{{BASEPAGENAME}} |cfl=779 |afl=3760 }}
  
Line 38: Line 38:
 
| [http://www.nfl.com/ NFL.com]
 
| [http://www.nfl.com/ NFL.com]
 
|  
 
|  
| {{plainlist|1=<small>
+
| {{plainlist|1=
* <tt><nowiki>http://www.nfl.com/players/profile?id={{{nfl}}}</nowiki></tt>
+
* <small><tt><nowiki>http://www.nfl.com/players/profile?id={{{nfl}}}</nowiki></tt></small>
* Example: http://www.nfl.com/players/profile?id=MAN515097
+
* <small>Example: http://www.nfl.com/players/profile?id=MAN515097</small>
* Example: http://www.nfl.com/players/profile?id=2517795</small>
+
* <small>Example: http://www.nfl.com/players/profile?id=2517795</small>
 
   }}
 
   }}
 
|-
 
|-
Line 47: Line 47:
 
| [https://www.cfl.ca/ CFL.ca]
 
| [https://www.cfl.ca/ CFL.ca]
 
|  
 
|  
| {{plainlist|1=<small>
+
| {{plainlist|1=
* <tt><nowiki>https://www.cfl.ca/index.php?module=roster&func=display&ros_id={{{cfl}}}</nowiki></tt>
+
* <small><tt><nowiki>https://www.cfl.ca/index.php?module=roster&func=display&ros_id={{{cfl}}}</nowiki></tt></small>
* Example (dead link): https://www.cfl.ca/index.php?module=roster&func=display&ros_id=779
+
* <small>Example (dead link): https://www.cfl.ca/index.php?module=roster&func=display&ros_id=779</small>
* Alternative (dead link): http://cfl.ca/roster/show?id=779 ([https://web.archive.org/web/20130813121516/http://cfl.ca/roster/show?id=779 archived copy])  
+
* <small>Alternative (dead link): http://cfl.ca/roster/show?id=779 ([https://web.archive.org/web/20130813121516/http://cfl.ca/roster/show?id=779 archived copy])</small>
* Alternative (dead link): http://cfl.ca/roster/show/id/779 ([https://web.archive.org/web/20141224022722/http://cfl.ca/roster/show/id/779 archived copy])</small>
+
* <small>Alternative (dead link): http://cfl.ca/roster/show/id/779 ([https://web.archive.org/web/20141224022722/http://cfl.ca/roster/show/id/779 archived copy])</small>
 
   }}
 
   }}
 
|-
 
|-
Line 57: Line 57:
 
| [http://www.arenafan.com/ ArenaFan.com]
 
| [http://www.arenafan.com/ ArenaFan.com]
 
|  
 
|  
| {{plainlist|1=<small>
+
| {{plainlist|1=
* <tt><nowiki>http://www.arenafan.com/players/{{{afl}}}/</nowiki></tt>
+
* <small><tt><nowiki>http://www.arenafan.com/players/{{{afl}}}/</nowiki></tt></small>
* Example: http://www.arenafan.com/players/3760/</small>
+
* <small>Example: http://www.arenafan.com/players/3760/</small>
 
   }}
 
   }}
 
|-
 
|-
Line 65: Line 65:
 
| [http://www.espn.com/ ESPN.com]
 
| [http://www.espn.com/ ESPN.com]
 
| {{tl|ESPN NFL}}<br />[[Wikidata:Property:P3686]]
 
| {{tl|ESPN NFL}}<br />[[Wikidata:Property:P3686]]
| {{plainlist|1=<small>
+
| {{plainlist|1=
* <tt><nowiki>http://www.espn.com/nfl/player/stats/_/id/{{{espn}}}</nowiki></tt> <!-- http://sports.espn.go.com/nfl/players/profile?playerId={{{espn}}} -->
+
* <small><tt><nowiki>http://www.espn.com/nfl/player/stats/_/id/{{{espn}}}</nowiki></tt> <!-- http://sports.espn.go.com/nfl/players/profile?playerId={{{espn}}} --><small>
* Example: http://www.espn.com/nfl/player/stats/_/id/1428 <!-- http://sports.espn.go.com/nfl/players/profile?playerId=1428 --></small>
+
* <small>Example: http://www.espn.com/nfl/player/stats/_/id/1428 <!-- http://sports.espn.go.com/nfl/players/profile?playerId=1428 --></small>
 
   }}
 
   }}
 
|-
 
|-
Line 73: Line 73:
 
| [https://www.cbssports.com/ CBSsports.com]
 
| [https://www.cbssports.com/ CBSsports.com]
 
|  
 
|  
| {{plainlist|1=<small>
+
| {{plainlist|1=
* <tt><nowiki>https://www.cbssports.com/nfl/players/playerpage/{{{cbs}}}</nowiki></tt> <!--http://www.sportsline.com/nfl/players/playerpage/{{{cbs}}} -->
+
* <small><tt><nowiki>https://www.cbssports.com/nfl/players/playerpage/{{{cbs}}}</nowiki></tt> <!--http://www.sportsline.com/nfl/players/playerpage/{{{cbs}}} --></small>
* Example: https://www.cbssports.com/nfl/players/playerpage/12531 <!-- http://www.sportsline.com/nfl/players/playerpage/12531 --></small>
+
* <small>Example: https://www.cbssports.com/nfl/players/playerpage/12531 <!-- http://www.sportsline.com/nfl/players/playerpage/12531 --></small>
 
   }}
 
   }}
 
|-
 
|-
Line 81: Line 81:
 
| [https://sports.yahoo.com/ Sports.Yahoo.com]
 
| [https://sports.yahoo.com/ Sports.Yahoo.com]
 
|  
 
|  
| {{plainlist|1=<small>
+
| {{plainlist|1=
* <tt><nowiki>https://sports.yahoo.com/nfl/players/{{{yahoo}}}/</nowiki></tt>
+
* <small><tt><nowiki>https://sports.yahoo.com/nfl/players/{{{yahoo}}}/</nowiki></tt></small>
* Example: https://sports.yahoo.com/nfl/players/4256/</small>
+
* <small>Example: https://sports.yahoo.com/nfl/players/4256/</small>
 
   }}
 
   }}
 
|-
 
|-
Line 89: Line 89:
 
| [http://msn.foxsports.com/ MSN.FoxSports.com]
 
| [http://msn.foxsports.com/ MSN.FoxSports.com]
 
|  
 
|  
| {{plainlist|1=<small>
+
| {{plainlist|1=
* <tt><nowiki>http://msn.foxsports.com/nfl/player/{{{fox}}}</nowiki></tt>
+
* <small><tt><nowiki>http://msn.foxsports.com/nfl/player/{{{fox}}}</nowiki></tt></small>
* Example (dead link): http://msn.foxsports.com/nfl/player/69814
+
* <small>Example (dead link): http://msn.foxsports.com/nfl/player/69814</small>
* Archive: https://web.archive.org/web/20091126165953/http://msn.foxsports.com/nfl/player/69814</small>
+
* <small>Archive: https://web.archive.org/web/20091126165953/http://msn.foxsports.com/nfl/player/69814</small>
 
   }}
 
   }}
 
|-
 
|-
Line 98: Line 98:
 
| [http://sportsillustrated.cnn.com/ SportsIllustrated.CNN.com]
 
| [http://sportsillustrated.cnn.com/ SportsIllustrated.CNN.com]
 
|  
 
|  
| {{plainlist|1=<small>
+
| {{plainlist|1=
* <tt><nowiki>http://sportsillustrated.cnn.com/football/nfl/players/{{{si}}}/</nowiki></tt>
+
* <small><tt><nowiki>http://sportsillustrated.cnn.com/football/nfl/players/{{{si}}}/</nowiki></tt></small>
* Example (dead link): http://sportsillustrated.cnn.com/football/nfl/players/4256/
+
* <small>Example (dead link): http://sportsillustrated.cnn.com/football/nfl/players/4256/</small>
* Archive: https://web.archive.org/web/20130129141004/http://sportsillustrated.cnn.com/football/nfl/players/4256/</small>
+
* <small>Archive: https://web.archive.org/web/20130129141004/http://sportsillustrated.cnn.com/football/nfl/players/4256/</small>
 
   }}
 
   }}
 
|-
 
|-
Line 107: Line 107:
 
| style="white-space:nowrap" | [https://www.pro-football-reference.com/ Pro-Football-Reference.com]
 
| style="white-space:nowrap" | [https://www.pro-football-reference.com/ Pro-Football-Reference.com]
 
| style="white-space:nowrap" | {{tl|Pro-football-reference}}
 
| style="white-space:nowrap" | {{tl|Pro-football-reference}}
| {{plainlist|1=<small>
+
| {{plainlist|1=
* <tt><nowiki>https://www.pro-football-reference.com/players/{{{pfr}}}.htm</nowiki></tt>
+
* <small><tt><nowiki>https://www.pro-football-reference.com/players/{{{pfr}}}.htm</nowiki></tt></small>
* Example: https://www.pro-football-reference.com/players/M/MannPe00.htm</small>
+
* <small>Example: https://www.pro-football-reference.com/players/M/MannPe00.htm</small>
 
   }}
 
   }}
 
|-
 
|-
Line 115: Line 115:
 
| [http://www.rotoworld.com/ Rotoworld.com]
 
| [http://www.rotoworld.com/ Rotoworld.com]
 
|  
 
|  
| {{plainlist|1=<small>
+
| {{plainlist|1=
* <tt><nowiki>http://www.rotoworld.com/player/nfl/{{{rotoworld}}}</nowiki></tt> <!-- http://www.rotoworld.com/content/playerpages/player_main.aspx?sport=NFL&id={{{rotoworld}}} -->
+
* <small><tt><nowiki>http://www.rotoworld.com/player/nfl/{{{rotoworld}}}</nowiki></tt> <!-- http://www.rotoworld.com/content/playerpages/player_main.aspx?sport=NFL&id={{{rotoworld}}} --></small>
* Example: http://www.rotoworld.com/player/nfl/1493 <!-- http://www.rotoworld.com/content/playerpages/player_main.aspx?sport=NFL&id=1493 --></small>
+
* <small>Example: http://www.rotoworld.com/player/nfl/1493 <!-- http://www.rotoworld.com/content/playerpages/player_main.aspx?sport=NFL&id=1493 --></small>
 
   }}
 
   }}
 
|-
 
|-
Line 123: Line 123:
 
| [http://databasefootball.com/ DatabaseFootball.com]
 
| [http://databasefootball.com/ DatabaseFootball.com]
 
| [[Wikidata:Property:P3532]]
 
| [[Wikidata:Property:P3532]]
| {{plainlist|1=<small>
+
| {{plainlist|1=
* <tt><nowiki>http://databasefootball.com/players/playerpage.htm?ilkid={{{dbf}}}</nowiki></tt>
+
* <small><tt><nowiki>http://databasefootball.com/players/playerpage.htm?ilkid={{{dbf}}}</nowiki></tt></small>
* Example (dead link): http://databasefootball.com/players/playerpage.htm?ilkid=MANNIPEY01
+
* <small>Example (dead link): http://databasefootball.com/players/playerpage.htm?ilkid=MANNIPEY01</small>
* Archive: https://web.archive.org/web/20160923125510/http://databasefootball.com/players/playerpage.htm?ilkid=MANNIPEY01</small>
+
* <small>Archive: https://web.archive.org/web/20160923125510/http://databasefootball.com/players/playerpage.htm?ilkid=MANNIPEY01</small>
 
   }}
 
   }}
 
|}
 
|}

Revision as of 16:11, 4 April 2018

Usage

To use this template, copy and paste this text to a football player's external links section:

  • {{Footballstats |nfl= |cfl= |afl= |espn= |cbs= |yahoo= |fox= |si= |pfr= |rotoworld= |dbf= }}

Add the page ID's after the equals sign to properly direct the links that you desire to have. If you do not specify an ID, the site will not be shown.

To find a player's unique ID, find the player's page on a website and locate a string of numbers or letters in the URL similar to the ones above. That is the player's unique ID.

Examples

Example for Peyton Manning:

For NFL.com URLs with a format similar to http://www.nfl.com/player/charliejoiner/2517795/profile, typically found with retired players at http://www.nfl.com/players?playerType=historical, use:

  • {{Footballstats |nfl=2517795 }}
  • Career statistics and player information from NFL.com

Example for CFL and AFL player:

  • {{Footballstats |cfl=779 |afl=3760 }}
  • Career statistics and player information from CFL.ca · ArenaFan

Parameters

Parameter Website Standalone template
Wikidata property
URL
|nfl= NFL.com
|cfl= CFL.ca
|afl= ArenaFan.com
|espn= ESPN.com {{ESPN NFL}}
Wikidata:Property:P3686
|cbs= CBSsports.com
|yahoo= Sports.Yahoo.com
|fox= MSN.FoxSports.com
|si= SportsIllustrated.CNN.com
|pfr= Pro-Football-Reference.com {{Pro-football-reference}}
|rotoworld= Rotoworld.com
|dbf= DatabaseFootball.com Wikidata:Property:P3532