Difference between revisions of "Template:BDFA/doc"
imported>Zyxw (update URLs in examples) |
imported>Zyxw (updates for use of Wikidata, add TemplateData section, add link to search page) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | {{Wikidata | + | {{Uses Wikidata|P6188}} |
| + | {{Lua|Module:EditAtWikidata}} | ||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an [[Wikipedia:External links|external link]] or [[Wikipedia:Citing sources|citation]] to an [[association football]] (soccer) player's page at [http://www.bdfa.com.ar BDFA.com.ar] (''Base de Datos del Futbol Argentino''). | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an [[Wikipedia:External links|external link]] or [[Wikipedia:Citing sources|citation]] to an [[association football]] (soccer) player's page at [http://www.bdfa.com.ar BDFA.com.ar] (''Base de Datos del Futbol Argentino''). | ||
| Line 14: | Line 15: | ||
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }} | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }} | ||
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> }} | : {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> }} | ||
| + | |||
| + | ; Using [[Wikidata]] property [[d:Property:P6188|P6188]] | ||
| + | : {{tlcw|{{BASEPAGENAME}}}} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | name {{=}} <var>NAME</var> }} | ||
=== Citation with accessdate === | === Citation with accessdate === | ||
| Line 23: | Line 28: | ||
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> | accessdate {{=}} <var>DATE</var> }} | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> | accessdate {{=}} <var>DATE</var> }} | ||
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> | accessdate {{=}} <var>DATE</var> }} | : {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> | accessdate {{=}} <var>DATE</var> }} | ||
| + | |||
| + | ; Using Wikidata property P6188 | ||
| + | : {{tlcw|{{BASEPAGENAME}} | accessdate {{=}} <var>DATE</var> }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | name {{=}} <var>NAME</var> | accessdate {{=}} <var>DATE</var> }} | ||
==Examples== | ==Examples== | ||
| Line 60: | Line 69: | ||
: <kbd>http://<nowiki/>bdfa.com.ar/jugador.asp?codigo={{hilite|2815}}</kbd> ([https://web.archive.org/web/20180705151625/http://bdfa.com.ar/jugador.asp?codigo=2815 archive]) | : <kbd>http://<nowiki/>bdfa.com.ar/jugador.asp?codigo={{hilite|2815}}</kbd> ([https://web.archive.org/web/20180705151625/http://bdfa.com.ar/jugador.asp?codigo=2815 archive]) | ||
| − | === No parameters === | + | === No parameters and Wikidata property not defined === |
; Usage | ; Usage | ||
: {{tlcw|a=1|{{BASEPAGENAME}}}} | : {{tlcw|a=1|{{BASEPAGENAME}}}} | ||
| Line 66: | Line 75: | ||
; Output | ; Output | ||
:* {{{{BASEPAGENAME}} }} | :* {{{{BASEPAGENAME}} }} | ||
| + | |||
| + | == TemplateData == | ||
| + | {{TemplateData header}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "description": "This template displays an external link or citation to an association football (soccer) player's page at BDFA.com.ar (Base de Datos del Futbol Argentino).", | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Player ID", | ||
| + | "aliases": ["id"], | ||
| + | "description": "ID portion of the URL for player's profile at BDFA.com.ar. Example: 42110 is the ID portion of https://www.bdfa.com.ar/jugadores-42110.html, https://www.bdfa.com.ar/jugadores-EMILIANO-GABRIEL-VECCHIO-42110.html, or https://www.bdfa.com.ar/jugador.asp?codigo=42110. This parameter is optional if Wikidata property P6188 exists, but required if not.", | ||
| + | "type": "number", | ||
| + | "required": false, | ||
| + | "default": "Wikidata property P6188" | ||
| + | }, | ||
| + | "2": { | ||
| + | "label": "Player Name", | ||
| + | "aliases": ["name"], | ||
| + | "description": "Name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(footballer)\" or \"(soccer)\".", | ||
| + | "type": "string", | ||
| + | "required": false, | ||
| + | "default": "{{PAGENAMEBASE}}" | ||
| + | }, | ||
| + | "accessdate": { | ||
| + | "label": "Access Date", | ||
| + | "description": "Date that the URL was accessed.", | ||
| + | "type": "date", | ||
| + | "required": false | ||
| + | } | ||
| + | }, | ||
| + | "paramOrder": [ | ||
| + | "1", | ||
| + | "2", | ||
| + | "accessdate" | ||
| + | ] | ||
| + | } | ||
| + | </templatedata> | ||
| + | |||
| + | == External links == | ||
| + | * [https://www.bdfa.com.ar/buscar.asp Search page at BDFA.com.at] {{in lang|es}} | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
Revision as of 01:29, 5 March 2020
| This is a documentation subpage for Template:BDFA. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Template:BDFA displays an external link or citation to an association football (soccer) player's page at BDFA.com.ar (Base de Datos del Futbol Argentino).
Contents
Usage
External link
- ID without name (uses Wikipedia article name as link text)
- Template:Tlcw
- Template:Tlcw
- ID with name
- Template:Tlcw
- Template:Tlcw
- Using Wikidata property P6188
- Template:Tlcw
- Template:Tlcw
Citation with accessdate
- ID without name (uses Wikipedia article name as link text)
- Template:Tlcw
- Template:Tlcw
- ID with name
- Template:Tlcw
- Template:Tlcw
- Using Wikidata property P6188
- Template:Tlcw
- Template:Tlcw
Examples
As external link
- Usage
- Template:Tlcw
- Template:Tlcw
- Output
-
- Emiliano Gabriel Vecchio at BDFA (in Spanish)Script error: No such module "EditAtWikidata".
- Current URLs
- https://www.bdfa.com.ar/jugadores-42110.html
- https://www.bdfa.com.ar/jugadores-EMILIANO-GABRIEL-VECCHIO-42110.html
- https://www.bdfa.com.ar/jugador.asp?codigo=42110
- Former URLs
- http://www.bdfa.com.ar/jugador2.asp?codigo=42110 (archive)
- http://bdfa.com.ar/jugador.asp?codigo=42110
As citation with accessdate
- Usage
- Template:Tlcw
- Template:Tlcw
- Output
- Nestor Subiat at BDFA (in Spanish). Retrieved 2018-05-28.Script error: No such module "EditAtWikidata".
- Current URLs
- https://www.bdfa.com.ar/jugadores-2815.html
- https://www.bdfa.com.ar/jugadores-NESTOR-SUBIAT-2815.html
- https://www.bdfa.com.ar/jugador.asp?codigo=2815
- Former URLs
- http://www.bdfa.com.ar/jugador2.asp?codigo=2815 (archive)
- http://bdfa.com.ar/jugador.asp?codigo=2815 (archive)
No parameters and Wikidata property not defined
- Usage
- Template:Tlcw
- Output
-
- Template:PAGENAMEBASE at BDFA (in Spanish)Script error: No such module "EditAtWikidata".
TemplateData
TemplateData for BDFA
This template displays an external link or citation to an association football (soccer) player's page at BDFA.com.ar (Base de Datos del Futbol Argentino).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Player ID | 1 id | ID portion of the URL for player's profile at BDFA.com.ar. Example: 42110 is the ID portion of https://www.bdfa.com.ar/jugadores-42110.html, https://www.bdfa.com.ar/jugadores-EMILIANO-GABRIEL-VECCHIO-42110.html, or https://www.bdfa.com.ar/jugador.asp?codigo=42110. This parameter is optional if Wikidata property P6188 exists, but required if not.
| Number | optional |
| Player Name | 2 name | 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 |
| Access Date | accessdate | Date that the URL was accessed. | Date | optional |
External links
- Search page at BDFA.com.at (in Spanish)