Difference between revisions of "Template:FootballDatabase.eu/doc"
imported>Zyxw (update URLs) |
imported>Zyxw (updates for new URL and ID format) |
||
| Line 16: | Line 16: | ||
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }} | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }} | ||
| − | Using [[Wikidata]] property | + | Using [[Wikidata]] property {{Property|3537}}: |
: {{tlcw|{{BASEPAGENAME}}}} | : {{tlcw|{{BASEPAGENAME}}}} | ||
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }} | : {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }} | ||
| Line 22: | Line 22: | ||
== Examples == | == Examples == | ||
| − | === Unnamed parameters === | + | === Current URL === |
| + | |||
| + | ==== Unnamed parameters ==== | ||
| + | ''URLs:'' | ||
| + | : <kbd>[http://www.footballdatabase.eu/en/player/details/2306-roberto-baggio http://www.footballdatabase.eu/en/player/details/{{Highlight|2306-roberto-baggio}}]</kbd> | ||
| + | : <kbd>[http://www.footballdatabase.eu/en/player/details/2306-roberto-baggio http://www.footballdatabase.eu/en/player/details/{{Highlight|2306}}]</kbd> | ||
| + | |||
| + | ''Usage:'' | ||
| + | : {{tlcw|{{BASEPAGENAME}} | 2306-roberto-baggio | Roberto Baggio }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | 2306 | Roberto Baggio }} | ||
| + | |||
| + | ''Output:'' | ||
| + | : {{{{BASEPAGENAME}} | 2306-roberto-baggio | Roberto Baggio }} | ||
| + | : {{{{BASEPAGENAME}} | 2306 | Roberto Baggio }} | ||
| + | |||
| + | ==== Named parameters ==== | ||
| + | ''URLs:'' | ||
| + | : <kbd>[http://www.footballdatabase.eu/en/player/details/415--cafu http://www.footballdatabase.eu/en/player/details/{{Highlight|415--cafu}}]</kbd> | ||
| + | : <kbd>[http://www.footballdatabase.eu/en/player/details/415--cafu http://www.footballdatabase.eu/en/player/details/{{Highlight|415}}]</kbd> | ||
| + | |||
| + | ''Usage:'' | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} 415--cafu | name{{=}} Cafu }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} 415 | name{{=}} Cafu }} | ||
| + | |||
| + | ''Output:'' | ||
| + | : {{{{BASEPAGENAME}} | id= 415--cafu | name= Cafu }} | ||
| + | : {{{{BASEPAGENAME}} | id= 415 | name= Cafu }} | ||
| + | |||
| + | === Former URL === | ||
| + | |||
| + | ==== Unnamed parameters ==== | ||
| + | ''URL:'' | ||
| + | : <kbd>[http://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html http://www.footballdatabase.eu/football.joueurs.{{Highlight|roberto.baggio.2306}}.en.html]</kbd> | ||
| + | : Redirects to: <kbd>[http://www.footballdatabase.eu/en/player/details/2306-roberto-baggio http://www.footballdatabase.eu/en/player/details/{{Highlight|2306-roberto-baggio|lightgreen}}]</kbd> | ||
''Usage:'' | ''Usage:'' | ||
| Line 30: | Line 63: | ||
: {{{{BASEPAGENAME}} | roberto.baggio.2306 | Roberto Baggio }} | : {{{{BASEPAGENAME}} | roberto.baggio.2306 | Roberto Baggio }} | ||
| − | '' | + | ==== Named parameters ==== |
| − | + | ''URL:'' | |
| − | : Redirects to: <kbd>[http://www.footballdatabase.eu/en/player/details/ | + | : <kbd>[http://www.footballdatabase.eu/football.joueurs..cafu.415.en.html http://www.footballdatabase.eu/football.joueurs.{{Highlight|.cafu.415}}.en.html]</kbd> |
| + | : Redirects to: <kbd>[http://www.footballdatabase.eu/en/player/details/415--cafu http://www.footballdatabase.eu/en/player/details/{{Highlight|415--cafu|lightgreen}}]</kbd> | ||
| − | |||
''Usage:'' | ''Usage:'' | ||
: {{tlcw|{{BASEPAGENAME}} | id{{=}} .cafu.415 | name{{=}} Cafu }} | : {{tlcw|{{BASEPAGENAME}} | id{{=}} .cafu.415 | name{{=}} Cafu }} | ||
| Line 40: | Line 73: | ||
''Output:'' | ''Output:'' | ||
: {{{{BASEPAGENAME}} | id= .cafu.415 | name= Cafu }} | : {{{{BASEPAGENAME}} | id= .cafu.415 | name= Cafu }} | ||
| − | |||
| − | |||
| − | |||
| − | |||
=== No parameters and Wikidata property not defined === | === No parameters and Wikidata property not defined === | ||
| Line 61: | Line 90: | ||
"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: roberto.baggio.2306 is the ID portion of http://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html. This parameter is optional if Wikidata property P3537 exists, but required if not.", | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example of ID in current URL: 2306-roberto-baggio or 2306 is the ID portion on http://www.footballdatabase.eu/en/player/details/2306-roberto-baggio. Example of ID in former URL (redirects to current URL): roberto.baggio.2306 is the ID portion of http://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html. This parameter is optional if Wikidata property P3537 exists, but required if not.", |
"type": "string", | "type": "string", | ||
"required": false, | "required": false, | ||
Revision as of 20:01, 10 September 2018
| 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
Current URL
Unnamed parameters
URLs:
- http://www.footballdatabase.eu/en/player/details/2306-roberto-baggio
- http://www.footballdatabase.eu/en/player/details/2306
Usage:
Output:
- Roberto Baggio at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck
- Roberto Baggio at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
URLs:
- http://www.footballdatabase.eu/en/player/details/415--cafu
- http://www.footballdatabase.eu/en/player/details/415
Usage:
Output:
- Cafu at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck
- Cafu at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck
Former URL
Unnamed parameters
URL:
- http://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html
- Redirects to: http://www.footballdatabase.eu/en/player/details/2306-roberto-baggio
Usage:
Output:
- Roberto Baggio at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
URL:
- http://www.footballdatabase.eu/football.joueurs..cafu.415.en.html
- Redirects to: http://www.footballdatabase.eu/en/player/details/415--cafu
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-roberto-baggio or 2306 is the ID portion on http://www.footballdatabase.eu/en/player/details/2306-roberto-baggio. Example of ID in former URL (redirects to current URL): roberto.baggio.2306 is the ID portion of http://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html. This parameter is optional if Wikidata property P3537 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 player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".
| String | optional |
Tracking categories
- "id" parameter exists
- Category:FootballDatabase.eu template with ID same as Wikidata (0)
- Category:FootballDatabase.eu template with ID not in Wikidata (0)
- Category:FootballDatabase.eu template with ID different from Wikidata (0)
- "id" parameter does not exist
- Category:FootballDatabase.eu template using Wikidata (0)
- Category:FootballDatabase.eu template missing ID and not in Wikidata (0)