Template:HOO profile/doc

From blackwiki
Jump to navigation Jump to search

Template:Template redirect Template:Uses Wikidata

Template:HOO profile displays an external link to an athlete's profile at the official website of the Croatian Olympic Committee, known in Croatian as Hrvatski olimpijski odbor (HOO). It is intended for use in the external links section of an article.

Usage

Unnamed parameters
{{HOO profile | ID }}
{{HOO profile | ID | NAME }}
Named parameters
{{HOO profile | id= ID }}
{{HOO profile | id= ID | name= NAME }}
Using Wikidata property Template:Property
{{HOO profile}}
{{HOO profile | name= NAME }}

Examples

Unnamed parameters

Usage
* {{HOO profile | 4140 | Blanka Vlašić }}
Output
URLs
https://www.hoo.hr/en/athletes/biographies-of-athletes?idsportas=4140
https://www.hoo.hr/hr/sportasi/biografije-sportasa?idsportas=4140

Named parameters

Usage
* {{HOO profile | id= 16104 | name= Bruno Gudelj }}
Output
URLs
https://www.hoo.hr/en/athletes/biographies-of-athletes?idsportas=16104
https://www.hoo.hr/hr/sportasi/biografije-sportasa?idsportas=16104

No parameters and Wikidata property not defined

Usage
* {{HOO profile}}
Output

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 HOO profile

This template displays an external link to an athlete's profile at the official website of the Croatian Olympic Committee, known in Croatian as Hrvatski olimpijski odbor (HOO). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 4140 is the ID portion of https://www.hoo.hr/en/athletes/biographies-of-athletes?idsportas=4140 or https://www.hoo.hr/hr/sportasi/biografije-sportasa?idsportas=4140. This parameter is optional if Wikidata property P4541 exists, but required if not.

Default
Wikidata property P4541
Numberoptional
namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the athlete. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(athlete)".

Default
{{PAGENAMEBASE}}
Stringoptional

Templates and modules used

See also

External links