Difference between revisions of "Template:FootballDatabase.eu/doc"
imported>Zyxw m (update list, misc formatting) |
imported>Zyxw m (update examples and list of tracking categories) |
||
| Line 22: | Line 22: | ||
== Examples == | == Examples == | ||
| − | === | + | === Unnamed parameters === |
| + | ''Current URL:'' | ||
| + | : <kbd>[https://www.footballdatabase.eu/en/player/details/2306-roberto-baggio https://www.footballdatabase.eu/en/player/details/{{Highlight|2306}}-roberto-baggio]</kbd> | ||
| − | + | ''Former URL:'' | |
| − | '' | + | : <kbd>[https://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html https://www.footballdatabase.eu/football.joueurs.roberto.baggio.{{Highlight|2306}}.en.html]</kbd> |
| − | : <kbd>[https://www.footballdatabase.eu/ | ||
| − | |||
''Usage:'' | ''Usage:'' | ||
| − | |||
: {{tlcw|a=1|{{BASEPAGENAME}} | 2306 | Roberto Baggio }} | : {{tlcw|a=1|{{BASEPAGENAME}} | 2306 | Roberto Baggio }} | ||
''Output:'' | ''Output:'' | ||
| − | |||
:* {{{{BASEPAGENAME}} | 2306 | Roberto Baggio }} | :* {{{{BASEPAGENAME}} | 2306 | Roberto Baggio }} | ||
| − | + | === Named parameters === | |
| − | '' | + | ''Current URL:'' |
| − | : <kbd>[https://www.footballdatabase.eu/en/player/details/415--cafu https://www.footballdatabase.eu/en/player/details/{{Highlight|415--cafu | + | : <kbd>[https://www.footballdatabase.eu/en/player/details/415--cafu https://www.footballdatabase.eu/en/player/details/{{Highlight|415}}--cafu]</kbd> |
| − | : <kbd>[https://www.footballdatabase.eu/en | + | |
| + | ''Former URL:'' | ||
| + | : <kbd>[https://www.footballdatabase.eu/football.joueurs..cafu.415.en.html https://www.footballdatabase.eu/football.joueurs..cafu.{{Highlight|415}}.en.html]</kbd> | ||
''Usage:'' | ''Usage:'' | ||
| − | |||
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 415 | name{{=}} Cafu }} | : {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 415 | name{{=}} Cafu }} | ||
''Output:'' | ''Output:'' | ||
| − | |||
:* {{{{BASEPAGENAME}} | id= 415 | name= Cafu }} | :* {{{{BASEPAGENAME}} | id= 415 | name= Cafu }} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=== No parameters and Wikidata property not defined === | === No parameters and Wikidata property not defined === | ||
| Line 90: | Line 64: | ||
"label": "id", | "label": "id", | ||
"aliases": ["1"], | "aliases": ["1"], | ||
| − | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example of ID in current URL: | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example of ID in current URL: 2306 is the ID portion of https://www.footballdatabase.eu/en/player/details/2306-roberto-baggio or https://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html. This parameter is optional if Wikidata property P3537 exists, but required if not.", |
| − | "type": " | + | "type": "number", |
"required": false, | "required": false, | ||
"default": "Wikidata property P3537" | "default": "Wikidata property P3537" | ||
| Line 115: | Line 89: | ||
* {{clc|FootballDatabase.eu template with ID different from Wikidata}} | * {{clc|FootballDatabase.eu template with ID different from Wikidata}} | ||
* {{clc|FootballDatabase.eu template with ID not in Wikidata}} | * {{clc|FootballDatabase.eu template with ID not in Wikidata}} | ||
| + | * {{clc|FootballDatabase.eu template using non-numeric ID}} | ||
; template missing ID | ; template missing ID | ||
* {{clc|FootballDatabase.eu template missing ID and not in Wikidata}} | * {{clc|FootballDatabase.eu template missing ID and not in Wikidata}} | ||
Revision as of 21:51, 23 April 2020
| 40px | This is a documentation subpage for Template:FootballDatabase.eu. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
| 30px | This template uses Lua: |
Template:FootballDatabase.eu displays an external link to an association football (soccer) player's statistics at the FootballDatabase.eu website. It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property Template:Property:
Examples
Unnamed parameters
Current URL:
Former URL:
Usage:
Output:
- Roberto Baggio at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
Current URL:
Former URL:
Usage:
Output:
- Cafu at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck
No parameters and Wikidata property not defined
Usage:
Output:
- Template:PAGENAMEBASE at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
TemplateData for FootballDatabase.eu
This template displays an external link to an association football (soccer) player's statistics at the FootballDatabase.eu website. 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 of ID in current URL: 2306 is the ID portion of https://www.footballdatabase.eu/en/player/details/2306-roberto-baggio or https://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html. This parameter is optional if Wikidata property P3537 exists, but required if not.
| Number | 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 player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".
| String | optional |
Tracking categories
- template with ID
- Category:FootballDatabase.eu template with ID different from Wikidata (0)
- Category:FootballDatabase.eu template with ID not in Wikidata (0)
- Category:FootballDatabase.eu template using non-numeric ID (0)
- template missing ID