Difference between revisions of "Template:Heisman"

From blackwiki
Jump to navigation Jump to search
imported>Jweiss11
(tweak URL scheme)
imported>Zyxw
(Allow unnamed parameters, add documentation, move categories to /doc)
Line 1: Line 1:
[http://heisman.com/roster.aspx?rp_id={{{id}}} {{{name|{{PAGENAMEBASE}}}}}] at the [[Heisman Trophy]]<noinclude>
+
[http://heisman.com/roster.aspx?rp_id={{Trim|{{{1|{{{id}}}}}}}} {{{2|{{{name|{{PAGENAMEBASE}}}}}}}}] at the [[Heisman Trophy]]<noinclude>
[[Category:American college football templates]]
+
{{Documentation}}
[[Category:People and person external link templates]]
 
[[Category:American football external link templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 23:25, 28 February 2015

Template:PAGENAMEBASE at the Heisman Trophy

50px Template documentation[view] [edit] [history] [purge]

Template:Heisman displays an external link to a player's page at the Heisman Trophy website.

Usage

One parameter:

{{Heisman | ID }}
{{Heisman | id= ID }}

Two parameters:

{{Heisman | ID | NAME }}
{{Heisman | id= ID | name= NAME }}

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Heisman

This template displays an external link to a player's page at the Heisman Trophy website.

Template parameters

ParameterDescriptionTypeStatus
ID1 id

ID portion of URL for player's web page. Example: 29 is the ID portion of http://heisman.com/roster.aspx?rp_id=29

Default
Numberrequired
Name2 name

Name of player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (American football).

Default
{{PAGENAMEBASE}}
Stringoptional

Examples

One parameter:

Roger Staubach:
http://heisman.com/roster.aspx?rp_id=29
  1. {{Heisman | 29 }}
    Template:PAGENAMEBASE at the Heisman Trophy
  2. {{Heisman | id= 29 }}
    Template:PAGENAMEBASE at the Heisman Trophy

Two parameters:

Johnny Manziel:
http://heisman.com/roster.aspx?rp_id=116
  1. {{Heisman | 116 | Johnny Manziel }}
    Johnny Manziel at the Heisman Trophy
  2. {{Heisman | id= 116 | name= Johnny Manziel }}
    Johnny Manziel at the Heisman Trophy