Difference between revisions of "Template:Footballstats/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎Parameters: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Eagles247
(update for new NFL.com URL format)
Line 15: Line 15:
 
Example for [[Peyton Manning]]:
 
Example for [[Peyton Manning]]:
  
*<code>{{tlx|{{BASEPAGENAME}}|nfl{{=}}MAN515097|cfl{{=}}|afl{{=}}|espn{{=}}1428 |cbs{{=}}12531 |yahoo{{=}}4256 |fox{{=}}69814 |si{{=}}4256 |pfr{{=}}M/MannPe00 |rotoworld{{=}}1493 }}</code>
+
*<code>{{tlx|{{BASEPAGENAME}}|nfl{{=}}peyton-manning|cfl{{=}}|afl{{=}}|espn{{=}}1428 |cbs{{=}}12531 |yahoo{{=}}4256 |fox{{=}}69814 |si{{=}}4256 |pfr{{=}}M/MannPe00 |rotoworld{{=}}1493 }}</code>
{{{{BASEPAGENAME}} <!--|nfl=MAN515097 |cfl= |afl= |espn=1428 |cbs=12531 |yahoo=4256 |fox=69814 |si=4256 |pfr=M/MannPe00 |rotoworld=1493 --> }}
+
{{{{BASEPAGENAME}} <!--|nfl=peyton-manning |cfl= |afl= |espn=1428 |cbs=12531 |yahoo=4256 |fox=69814 |si=4256 |pfr=M/MannPe00 |rotoworld=1493 --> }}
 
 
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>{{tlx|{{BASEPAGENAME}} |nfl{{=}}2517795}}</code>
 
{{{{BASEPAGENAME}} |nfl=2517795 }}
 
  
 
Example for CFL and AFL player:
 
Example for CFL and AFL player:
Line 39: Line 34:
 
|  
 
|  
 
| {{plainlist|1=
 
| {{plainlist|1=
* <small><tt><nowiki>http://www.nfl.com/players/profile?id={{{nfl}}}</nowiki></tt></small>
+
* <small><tt><nowiki>http://www.nfl.com/players/{{{nfl}}}</nowiki></tt></small>
* <small>Example: http://www.nfl.com/players/profile?id=MAN515097</small>
+
* <small>Example: http://www.nfl.com/players/peyton-manning</small>
* <small>Example: http://www.nfl.com/players/profile?id=2517795</small>
 
 
   }}
 
   }}
 
|-
 
|-

Revision as of 16:47, 21 May 2020

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= }}

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:

  • {{Footballstats|nfl=peyton-manning|cfl=|afl=|espn=1428|cbs=12531|yahoo=4256|fox=69814|si=4256|pfr=M/MannPe00|rotoworld=1493}}
  • Career statistics and player information from

Example for CFL and AFL player:

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
|rotoworld= Rotoworld.com