Template:FIL/doc: Difference between revisions
create documentation |
m update examples |
||
(13 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
{{Uses Wikidata|P2990}} |
{{Uses Wikidata|P2990}} |
||
{{Tracks Wikidata|P2990}} |
{{Tracks Wikidata|P2990}} |
||
{{Lua|Module:WikidataCheck}} |
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}} |
||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[luge]] athlete's profile at [http://www.fil-luge.org 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 [[Wikipedia:External links|external links]] section of an article. |
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[luge]] athlete's profile at [http://www.fil-luge.org 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 [[Wikipedia:External links|external links]] section of an article. |
||
== Usage == |
== Usage == |
||
Unnamed parameters |
; Unnamed parameters |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code> |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code> |
||
Named parameters |
; Named parameters |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' | archive= ''NUMBER'' }}</code> |
|||
Using [[Wikidata]] property |
; Using [[Wikidata]] property {{Property|2990|id=first}} |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' | archive= ''NUMBER'' }}</code> |
|||
== TemplateData == |
|||
{{TemplateDataHeader}} |
|||
<templatedata>{ |
|||
"description": "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.", |
|||
"params": { |
|||
"id": { |
|||
"label": "ID", |
|||
"aliases": ["1"], |
|||
"description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion the URL for the athlete's page at the FIL-Luge.org web site. 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.", |
|||
"type": "string", |
|||
"default": "Wikidata property P2990", |
|||
"required": true |
|||
}, |
|||
"name": { |
|||
"label": "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 athlete. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(luger)\".", |
|||
"type": "string", |
|||
"default": "{{PAGENAMEBASE}}", |
|||
"required": false |
|||
} |
|||
}}</templatedata>. |
|||
== Examples == |
== Examples == |
||
=== Unnamed parameters === |
=== Unnamed parameters === |
||
; Usage |
|||
[[Veronika Halder]] |
|||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | veronika-halder | Veronika Halder }}</code> |
|||
; Output |
|||
''URL:'' |
|||
:* {{{{BASEPAGENAME}} | veronika-halder | Veronika Halder }} |
|||
: <tt>[http://www.fil-luge.org/en/athletes/veronika-halder http://www.fil-luge.org/en/athletes/{{hilite|veronika-halder}}]</tt> |
|||
''Usage:'' |
|||
; URL |
|||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | veronika-halder | Veronika Halder }}</code> |
|||
: <kbd>[https://www.fil-luge.org/en/athletes/veronika-halder https://www.fil-luge.org/en/athletes/{{hilite|veronika-halder}}]</kbd> ([https://web.archive.org/web/20190819192718/https://www.fil-luge.org/en/athletes/veronika-halder archived 2019-08-19]) |
|||
''Output:'' |
|||
: {{{{BASEPAGENAME}} | veronika-halder | Veronika Halder }} |
|||
=== Named parameters === |
=== Named parameters === |
||
; Usage |
|||
[[Gerhard Plankensteiner]] |
|||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= gerhard-plankensteiner |name= Gerhard Plankensteiner }}</code> |
|||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= gerhard-plankensteiner |name= Gerhard Plankensteiner |archive= 20190902122503 }}</code> |
|||
; Output |
|||
''URL:'' |
|||
:* {{{{BASEPAGENAME}} |id= gerhard-plankensteiner |name= Gerhard Plankensteiner }} |
|||
: <tt>[http://www.fil-luge.org/en/athletes/gerhard-plankensteiner http://www.fil-luge.org/en/athletes/{{hilite|gerhard-plankensteiner}}]</tt> |
|||
:* {{{{BASEPAGENAME}} |id= gerhard-plankensteiner |name= Gerhard Plankensteiner |archive= 20190902122503 }} |
|||
''Usage:'' |
|||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id= gerhard-plankensteiner |name= Gerhard Plankensteiner }}</code> |
|||
''Output:'' |
|||
: {{{{BASEPAGENAME}} |id= gerhard-plankensteiner |name= Gerhard Plankensteiner }} |
|||
; URL |
|||
==Tracking categories== |
|||
: <kbd>[https://www.fil-luge.org/en/athletes/gerhard-plankensteiner https://www.fil-luge.org/en/athletes/{{hilite|gerhard-plankensteiner}}]</kbd> ([https://web.archive.org/web/20190902122503/https://www.fil-luge.org/en/athletes/gerhard-plankensteiner archived 2019-09-02]) |
|||
; ''id'' parameter exists |
|||
* [[:Category:FIL ID not in Wikidata]] ({{PAGESINCAT:FIL ID not in Wikidata}} pages) |
|||
=== No parameters and Wikidata property not defined === |
|||
* [[:Category:FIL ID different from Wikidata]] ({{PAGESINCAT:FIL ID different from Wikidata}} pages) |
|||
; Usage |
|||
* [[:Category:FIL ID same as Wikidata]] ({{PAGESINCAT:FIL ID same as Wikidata}} pages) |
|||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> |
|||
; ''id'' parameter does not exist |
|||
* [[:Category:FIL template using Wikidata]] ({{PAGESINCAT:FIL template using Wikidata}} pages) |
|||
; Output |
|||
* [[:Category:FIL template missing ID]] ({{PAGESINCAT:FIL template missing ID}} pages) |
|||
:* {{ {{BASEPAGENAME}} }} |
|||
== TemplateData == |
|||
{{TemplateData header}} |
|||
<templatedata> |
|||
{ |
|||
"description": "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.", |
|||
"params": { |
|||
"id": { |
|||
"label": "id", |
|||
"aliases": ["1"], |
|||
"description": "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.", |
|||
"type": "string", |
|||
"required": false, |
|||
"default": "Wikidata property P2990" |
|||
}, |
|||
"name": { |
|||
"label": "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 athlete. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(luger)\".", |
|||
"type": "string", |
|||
"required": false, |
|||
"default": "{{PAGENAMEBASE}}" |
|||
}, |
|||
"archive": { |
|||
"label": "archive", |
|||
"description": "Number representing the date/time in an Internet Archive URL, such as 20190902122503 in https://web.archive.org/web/20190902122503/https://www.fil-luge.org/en/athletes/gerhard-plankensteiner.", |
|||
"type": "number", |
|||
"required": false |
|||
} |
|||
}, |
|||
"paramOrder": [ |
|||
"id", |
|||
"name", |
|||
"archive" |
|||
] |
|||
} |
|||
</templatedata> |
|||
== Tracking categories == |
|||
; template with ID |
|||
* {{clc|FIL template with ID different from Wikidata}} |
|||
* {{clc|FIL template with ID not in Wikidata}} |
|||
; template missing ID |
|||
* {{clc|FIL template missing ID and not in Wikidata}} |
|||
== External links == |
|||
* [http://www.fil-luge.org/en/athletes Athlete search at FIL-luge.org] |
|||
<includeonly>{{sandbox other|| |
<includeonly>{{sandbox other|| |
||
<!-- Categories below this line, please; interwikis at Wikidata --> |
<!-- Categories below this line, please; interwikis at Wikidata --> |
||
[[Category:People and person external link templates]] |
|||
[[Category:Sports external link templates]] |
|||
[[Category:Luge templates]] |
[[Category:Luge templates]] |
||
[[Category:People and person external link templates]] |
|||
[[Category:Sports governing body external link templates]] |
|||
[[Category:Templates that add a tracking category]] |
[[Category:Templates that add a tracking category]] |
||
[[Category:External link templates using Wikidata]] |
|||
[[Category:External link templates with archive parameter]] |
|||
}}</includeonly> |
}}</includeonly> |
Latest revision as of 05:43, 8 April 2022
This is a documentation subpage for Template:FIL. It may contain usage information, categories and other content that is not part of the original template page. |
- FIL athlete ID (P2990) (see uses)
This template uses Lua: |
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
[edit]- Unnamed parameters
{{FIL | ID }}
{{FIL | ID | NAME }}
- Named parameters
{{FIL | id= ID }}
{{FIL | id= ID | name= NAME }}
{{FIL | id= ID | name= NAME | archive= NUMBER }}
- Using Wikidata property P2990: FIL athlete ID
{{FIL}}
{{FIL | name= NAME }}
{{FIL | name= NAME | archive= NUMBER }}
Examples
[edit]Unnamed parameters
[edit]- Usage
* {{FIL | veronika-halder | Veronika Halder }}
- Output
Named parameters
[edit]- Usage
* {{FIL |id= gerhard-plankensteiner |name= Gerhard Plankensteiner }}
* {{FIL |id= gerhard-plankensteiner |name= Gerhard Plankensteiner |archive= 20190902122503 }}
- Output
No parameters and Wikidata property not defined
[edit]- Usage
* {{FIL}}
- Output
-
- {{FIL}} template missing ID and not present in Wikidata.
TemplateData
[edit]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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 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.
| String | optional |
name | name 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)".
| String | optional |
archive | archive | Number representing the date/time in an Internet Archive URL, such as 20190902122503 in https://web.archive.org/web/20190902122503/https://www.fil-luge.org/en/athletes/gerhard-plankensteiner. | Number | optional |
Tracking categories
[edit]- template with ID
- Category:FIL template with ID different from Wikidata (0)
- Category:FIL template with ID not in Wikidata (1)
- template missing ID
External links
[edit]