Difference between revisions of "Template:Footballstats/doc"
imported>Zyxw (add category) |
imported>Zyxw (update examples, add documentation of parameters, misc formatting) |
||
| 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> |
| − | 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. |
| − | + | 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 [[Uniform Resource Locator|URL]] similar to the ones above. That is the player's unique ID. | |
| − | + | == Examples == | |
| + | 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> | |
| + | * {{{{BASEPAGENAME}} |nfl=MAN515097 |cfl= |afl= |espn=1428 |cbs=12531 |yahoo=4256 |fox=69814 |si=4256 |pfr=M/MannPe00 |rotoworld=1493 |dbf=MANNIPEY01 }} | ||
| − | <includeonly> | + | 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> | ||
| + | * {{{{BASEPAGENAME}} |nfl=2517795 }} | ||
| + | |||
| + | Example for CFL and AFL player: | ||
| + | |||
| + | <code>* <nowiki>{{</nowiki>{{BASEPAGENAME}} |cfl=779 |afl=3760 }}</code> | ||
| + | * {{{{BASEPAGENAME}} |cfl=779 |afl=3760 }} | ||
| + | |||
| + | == Parameters == | ||
| + | {| class="wikitable" | ||
| + | ! Parameter | ||
| + | ! Website | ||
| + | ! Standalone template<br />Wikidata property | ||
| + | ! URL | ||
| + | |- | ||
| + | | {{para|nfl}} | ||
| + | | [http://www.nfl.com/ NFL.com] | ||
| + | | | ||
| + | | {{plainlist|1=<small> | ||
| + | * <tt><nowiki>http://www.nfl.com/players/profile?id={{{nfl}}}</nowiki></tt> | ||
| + | * Example: http://www.nfl.com/players/profile?id=MAN515097 | ||
| + | * Example: http://www.nfl.com/players/profile?id=2517795 | ||
| + | }} | ||
| + | |- | ||
| + | | {{para|cfl}} | ||
| + | | [http://www.cfl.ca/ CFL.ca] | ||
| + | | | ||
| + | | {{plainlist|1=<small> | ||
| + | * <tt><nowiki>http://www.cfl.ca/index.php?module=roster&func=display&ros_id={{{cfl}}}</nowiki></tt> | ||
| + | * Example (dead link): http://www.cfl.ca/index.php?module=roster&func=display&ros_id=779 | ||
| + | * 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]) | ||
| + | * 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]) | ||
| + | }} | ||
| + | |- | ||
| + | | {{para|afl}} | ||
| + | | [http://www.arenafan.com/ ArenaFan.com] | ||
| + | | | ||
| + | | {{plainlist|1=<small> | ||
| + | * <tt><nowiki>http://www.arenafan.com/players/{{{afl}}}/</nowiki></tt> | ||
| + | * Example: http://www.arenafan.com/players/3760/ | ||
| + | }} | ||
| + | |- | ||
| + | | {{para|espn}} | ||
| + | | [http://www.espn.com/ ESPN.com] | ||
| + | | {{tl|ESPN NFL}}<br />[[Wikidata:Property:P3686]] | ||
| + | | {{plainlist|1=<small> | ||
| + | * <tt><nowiki>http://www.espn.com/nfl/player/stats/_/id/{{{espn}}}</nowiki></tt> <!-- http://sports.espn.go.com/nfl/players/profile?playerId={{{espn}}} --> | ||
| + | * Example: http://www.espn.com/nfl/player/stats/_/id/1428 <!-- http://sports.espn.go.com/nfl/players/profile?playerId=1428 --> | ||
| + | }} | ||
| + | |- | ||
| + | | {{para|cbs}} | ||
| + | | [http://www.cbssports.com/ CBSsports.com] | ||
| + | | | ||
| + | | {{plainlist|1=<small> | ||
| + | * <tt><nowiki>http://www.cbssports.com/nfl/players/playerpage/{{{cbs}}}</nowiki></tt> <!--http://www.sportsline.com/nfl/players/playerpage/{{{cbs}}} --> | ||
| + | * Example: http://www.cbssports.com/nfl/players/playerpage/12531 <!-- http://www.sportsline.com/nfl/players/playerpage/12531 --> | ||
| + | }} | ||
| + | |- | ||
| + | | {{para|yahoo}} | ||
| + | | [http://sports.yahoo.com/ Sports.Yahoo.com] | ||
| + | | | ||
| + | | {{plainlist|1=<small> | ||
| + | * <tt><nowiki>http://sports.yahoo.com/nfl/players/{{{yahoo}}}/</nowiki></tt> | ||
| + | * Example: http://sports.yahoo.com/nfl/players/4256/ | ||
| + | }} | ||
| + | |- | ||
| + | | {{para|fox}} | ||
| + | | [http://msn.foxsports.com/ MSN.FoxSports.com] | ||
| + | | | ||
| + | | {{plainlist|1=<small> | ||
| + | * <tt><nowiki>http://msn.foxsports.com/nfl/player/{{{fox}}}</nowiki></tt> | ||
| + | * Example (dead link): http://msn.foxsports.com/nfl/player/69814 | ||
| + | * Archive: https://web.archive.org/web/20091126165953/http://msn.foxsports.com/nfl/player/69814 | ||
| + | }} | ||
| + | |- | ||
| + | | {{para|si}} | ||
| + | | [http://sportsillustrated.cnn.com/ SportsIllustrated.CNN.com] | ||
| + | | | ||
| + | | {{plainlist|1=<small> | ||
| + | * <tt><nowiki>http://sportsillustrated.cnn.com/football/nfl/players/{{{si}}}/</nowiki></tt> | ||
| + | * Example (dead link): http://sportsillustrated.cnn.com/football/nfl/players/4256/ | ||
| + | * Archive: https://web.archive.org/web/20130129141004/http://sportsillustrated.cnn.com/football/nfl/players/4256/ | ||
| + | }} | ||
| + | |- | ||
| + | | {{para|pfr}} | ||
| + | | style="white-space:nowrap" | [http://www.pro-football-reference.com/ Pro-Football-Reference.com] | ||
| + | | style="white-space:nowrap" | {{tl|Pro-football-reference}} | ||
| + | | {{plainlist|1=<small> | ||
| + | * <tt><nowiki>http://www.pro-football-reference.com/players/{{{pfr}}}.htm</nowiki></tt> | ||
| + | * Example: http://www.pro-football-reference.com/players/M/MannPe00.htm | ||
| + | }} | ||
| + | |- | ||
| + | | {{para|rotoworld}} | ||
| + | | [http://www.rotoworld.com/ Rotoworld.com] | ||
| + | | | ||
| + | | {{plainlist|1=<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}}} --> | ||
| + | * Example: http://www.rotoworld.com/player/nfl/1493 <!-- http://www.rotoworld.com/content/playerpages/player_main.aspx?sport=NFL&id=1493 --> | ||
| + | }} | ||
| + | |- | ||
| + | | {{para|dbf}} | ||
| + | | [http://databasefootball.com/ DatabaseFootball.com] | ||
| + | | [[Wikidata:Property:P3532]] | ||
| + | | {{plainlist|1=<small> | ||
| + | * <tt><nowiki>http://databasefootball.com/players/playerpage.htm?ilkid={{{dbf}}}</nowiki></tt> | ||
| + | * Example (dead link): http://databasefootball.com/players/playerpage.htm?ilkid=MANNIPEY01 | ||
| + | * Archive: https://web.archive.org/web/20160923125510/http://databasefootball.com/players/playerpage.htm?ilkid=MANNIPEY01 | ||
| + | }} | ||
| + | |} | ||
| + | |||
| + | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | ||
<!-- Categories and interwikis go here: --> | <!-- Categories and interwikis go here: --> | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
| Line 22: | Line 136: | ||
[[Category:National Football League templates]] | [[Category:National Football League templates]] | ||
[[Category:Templates containing multiple external links]] | [[Category:Templates containing multiple external links]] | ||
| − | </includeonly> | + | }}</includeonly> |
Revision as of 19:01, 6 May 2017
| This is a documentation subpage for Template:Footballstats. It contains usage information, categories and other content that is not part of the original template page. |
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
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:
* {{Footballstats |nfl=MAN515097 |cfl= |afl= |espn=1428 |cbs=12531 |yahoo=4256 |fox=69814 |si=4256 |pfr=M/MannPe00 |rotoworld=1493 |dbf=MANNIPEY01 }}
- Career statistics and player information from NFL.com · ESPN · CBS Sports · Yahoo! Sports · Fox Sports · SI.com · Pro Football Reference · Rotoworld ·
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 }}
Parameters