Jump to content

Template:FIL/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m add example for missing ID using AWB
Line 87: Line 87:


}}</includeonly>
}}</includeonly>
[[Category:External link templates using Wikidata]]

Revision as of 19:12, 5 March 2017

Template:FIL displays an external link to a luge athlete's profile at www.FIL-Luge.org, the official website of the International Luge Federation (FIL: Fédération Internationale de Luge de Course). It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{FIL | ID }}
{{FIL | ID | NAME }}

Named parameters:

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

Using Wikidata property P2990:

{{FIL}}
{{FIL | name= NAME }}

TemplateData

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

TemplateData for FIL

This template displays an external link to a luge athlete's profile at www.FIL-Luge.org, the official website of the International Luge Federation (FIL: Fédération Internationale de Luge de Course). 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 the URL. Example: veronika-halder is the ID portion of http://www.fil-luge.org/en/athletes/veronika-halder. This parameter is optional if Wikidata property P2990 exists, but required if not.

Default
Wikidata property P2990
Stringrequired
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 "(luger)".

Default
{{PAGENAMEBASE}}
Stringoptional

.

Examples

Unnamed parameters

URL:

http://www.fil-luge.org/en/athletes/veronika-halder

Usage:

{{FIL | veronika-halder | Veronika Halder }}

Output:

Veronika Halder at the International Luge Federation

Named parameters

URL:

http://www.fil-luge.org/en/athletes/gerhard-plankensteiner

Usage:

{{FIL |id= gerhard-plankensteiner |name= Gerhard Plankensteiner }}

Output:

Gerhard Plankensteiner at the International Luge Federation

No parameters and Wikidata property not defined

Usage:

{{FIL}}

Output:

{{FIL}} template missing ID and not present in Wikidata.

Tracking categories

"id" parameter exists
"id" parameter does not exist