Difference between revisions of "Template:HHOF NHL player/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(use https, misc formatting)
imported>Djsasso
(Redirected page to Template:Legendsofhockey/doc)
 
Line 1: Line 1:
{{Documentation subpage}}
+
#REDIRECT[[Template:Legendsofhockey/doc]]
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
{{Uses Wikidata|P3567}}
 
{{Lua|Module:EditAtWikidata}}
 
{{For|Hockey Hall of Fame members (inductees)|Template:HHOF member}}
 
 
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[National Hockey League|NHL]] ice hockey player's profile at the [[Hockey Hall of Fame]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
 
 
 
== Usage ==
 
Unnamed parameters:
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code>
 
 
 
Named parameters:
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
 
 
 
Using [[Wikidata]] property {{Property|3567}}:
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code>
 
 
 
== Examples ==
 
 
 
=== Unnamed parameters ===
 
''URL:''
 
: <kbd>[https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player=14279 https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player={{hilite|14279}}]</kbd>
 
 
 
''Usage:''
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 14279 | Eddie Shack }}</code>
 
 
 
''Output:''
 
:* {{{{BASEPAGENAME}} | 14279 | Eddie Shack }}
 
 
 
=== Named parameters ===
 
''URL:''
 
: <kbd>[https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player=21614 https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player={{hilite|21614}}]</kbd>
 
 
 
''Usage:''
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 21614 | name= Sidney Crosby }}</code>
 
 
 
''Output:''
 
:* {{{{BASEPAGENAME}} | id= 21614 | name= Sidney Crosby }}
 
 
 
=== No parameters and Wikidata property not defined ===
 
''Usage:''
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 
 
 
''Output:''
 
:* {{ {{BASEPAGENAME}} }}
 
 
 
== TemplateData ==
 
{{TemplateData header}}
 
<templatedata>
 
{
 
  "description": "This template displays an external link to an NHL ice hockey player's profile at the Hockey Hall of Fame website. It is intended for use in the external links section of an article.",
 
  "params": {
 
    "id": {
 
      "label": "Player ID",
 
      "aliases": ["1"],
 
      "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL for the player's profile. Example: 14279 is the ID portion of https://www.hhof.com/LegendsOfHockey/jsp/SearchPlayer.jsp?player=14279. This parameter is optional if Wikidata property P3567 exists, but required if not.",
 
      "type": "number",
 
      "required": false,
 
      "default": "Wikidata property P3567"
 
    },
 
    "name": {
 
      "label": "Player name",
 
      "aliases": ["2"],
 
      "description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify the link text, which should be the name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(ice hockey)\".",
 
      "type": "string",
 
      "required": false,
 
      "default": "{{PAGENAMEBASE}}"
 
    }
 
  },
 
  "paramOrder": [
 
    "id",
 
    "name"
 
  ]
 
}
 
</templatedata>
 
 
 
== See also ==
 
* {{tl|NHL profile}}
 
* {{tl|TSN-NHL profile}}
 
* {{tl|ESPN NHL}}
 
 
 
== External links ==
 
* [https://www.hhof.com/html/search.shtml NHL player search] at HHOF.com
 
 
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:Ice hockey external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:External link templates using Wikidata]]
 
}}</includeonly>
 

Latest revision as of 17:19, 14 May 2019