Jump to content

Template:Baseballhof/doc

From Wikipedia, the free encyclopedia

Template:Baseballhof displays an external link to a Baseball Hall of Fame member's biography at the official website baseballhall.org (formerly baseballhalloffame.org). It is intended for use in the external links section of an article.

Usage

[edit]
Unnamed parameters
{{Baseballhof | ID }}
{{Baseballhof | ID | NAME }}
Named parameters
{{Baseballhof | id= ID }}
{{Baseballhof | id= ID | name= NAME }}
Using Wikidata property
{{Baseballhof}}
{{Baseballhof | name= NAME }}

Examples

[edit]

Unnamed parameters

[edit]
Usage
* {{Baseballhof | bell-cool-papa | Cool Papa Bell }}
Output
Current URL
https://baseballhall.org/hall-of-famers/bell-cool-papa
Former URL (redirect to current URL)
https://baseballhall.org/hof/bell-cool-papa

Named parameters

[edit]
Usage
* {{Baseballhof | id= guerrero-vladimir | name= Vladimir Guerrero }}
Output
Current URL
https://baseballhall.org/hall-of-famers/guerrero-vladimir
Former URL (redirect to current URL)
https://baseballhall.org/node/16061

No parameters

[edit]
Usage
* {{Baseballhof}}
Output
  • {{Baseballhof}} template missing ID and not present in Wikidata.

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Baseballhof in articles based on its TemplateData.

TemplateData for Baseballhof

This template displays an external link to a Baseball Hall of Fame member's biography at the official website baseballhall.org (formerly baseballhalloffame.org). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The ID portion of the URL, such as guerrero-vladimir in https://baseballhall.org/hall-of-famers/guerrero-vladimir. This parameter is optional if Wikidata property P4164 exists, but required if not.

Default
Wikidata property P4164
Stringoptional
Namename 2

The link text, which should be the name of the Baseball Hall of Fame member. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(baseball)".

Default
{{PAGENAMEBASE}}
Stringoptional
[edit]