Difference between revisions of "Template:Heisman/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(created documentation, including categories moved from template)
 
imported>Vanisaac
m (→‎Examples: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 56: Line 56:
 
#: {{{{BASEPAGENAME}} | id= 116 | name= Johnny Manziel }}
 
#: {{{{BASEPAGENAME}} | id= 116 | name= Johnny Manziel }}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:American college football templates]]
 
[[Category:American college football templates]]

Latest revision as of 16:47, 25 April 2020

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 official website
  2. {{Heisman | id= 29 }}
    Template:PAGENAMEBASE at the Heisman Trophy official website

Two parameters:

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