Difference between revisions of "Template:FIL"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (If Wikidata property has multiple values, only use first one. Remove {{Trim|}} since {{#if:}} does same.)
imported>Zyxw
m (formatting)
Line 1: Line 1:
 
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P2990}}
 
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P2990}}
 +
 
| [http://www.fil-luge.org/en/athletes/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2990}}|sep=,}} }}#content {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[International Luge Federation]]<includeonly>{{EditAtWikidata|pid=P2990|{{{1|{{{id|}}}}}}}}</includeonly> {{#if: {{{archive|}}} | ([https://web.archive.org/web/{{{archive}}}/http://www.fil-luge.org/en/athletes/{{#if: {{{1|{{{id|}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2990}}|sep=,}} }}#content archive]) }}
 
| [http://www.fil-luge.org/en/athletes/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2990}}|sep=,}} }}#content {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[International Luge Federation]]<includeonly>{{EditAtWikidata|pid=P2990|{{{1|{{{id|}}}}}}}}</includeonly> {{#if: {{{archive|}}} | ([https://web.archive.org/web/{{{archive}}}/http://www.fil-luge.org/en/athletes/{{#if: {{{1|{{{id|}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2990}}|sep=,}} }}#content archive]) }}
 +
 
| <span class="error">&#123;&#123;[[Template:FIL|FIL]]&#125;&#125; template missing ID and not present in Wikidata.</span>
 
| <span class="error">&#123;&#123;[[Template:FIL|FIL]]&#125;&#125; template missing ID and not present in Wikidata.</span>
 +
 
}}{{#if: {{{1|{{{id|}}}}}}
 
}}{{#if: {{{1|{{{id|}}}}}}
 
|<!--has "id"-->{{WikidataCheck|property=P2990|value={{{1|{{{id|}}}}}}|category=FIL ID}}
 
|<!--has "id"-->{{WikidataCheck|property=P2990|value={{{1|{{{id|}}}}}}|category=FIL ID}}

Revision as of 21:10, 28 February 2019

{{{name}}} at the International Luge Federation

50px Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

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 Template:Property:

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

Examples

Unnamed parameters

URL:

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

Usage:

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

Output:

Named parameters

URL:

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

Usage:

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

Output:

No parameters and Wikidata property not defined

Usage:

* {{FIL}}

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 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 of 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
Stringoptional
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

Tracking categories

template with ID
template missing ID

External links