Template:BDFA/doc: Difference between revisions
m HTTP → HTTPS for Wayback Machine, replaced: http://web.archive.org/ → https://web.archive.org/ (3) |
merge templates |
||
(13 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{High-use}} |
|||
⚫ | |||
{{Template redirect|BDFA player}} |
|||
{{Tracks and uses Wikidata|P6188}} |
|||
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}} |
|||
'''{{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 6: | Line 9: | ||
==Usage== |
==Usage== |
||
=== External |
=== External links === |
||
; ID without name (uses Wikipedia article name as link text) |
; ID without name (uses Wikipedia article name as link text) |
||
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} |
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} |
||
Line 15: | Line 18: | ||
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> }} |
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> }} |
||
⚫ | |||
⚫ | |||
: {{tlcw|{{BASEPAGENAME}}}} |
|||
: {{tlcw|{{BASEPAGENAME}} | name {{=}} <var>NAME</var> }} |
|||
⚫ | |||
; ID without name (uses Wikipedia article name as link text) |
; ID without name (uses Wikipedia article name as link text) |
||
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | |
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | access-date {{=}} <var>DATE</var> }} |
||
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | |
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | access-date {{=}} <var>DATE</var> }} |
||
; ID with name |
; ID with name |
||
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> | |
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> | access-date {{=}} <var>DATE</var> }} |
||
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> | |
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> | access-date {{=}} <var>DATE</var> }} |
||
; Using Wikidata property |
|||
: {{tlcw|{{BASEPAGENAME}} | access-date {{=}} <var>DATE</var> }} |
|||
: {{tlcw|{{BASEPAGENAME}} | name {{=}} <var>NAME</var> | access-date {{=}} <var>DATE</var> }} |
|||
==Examples== |
==Examples== |
||
=== As external link === |
=== As external link === |
||
[[Emiliano Vecchio]] |
|||
; Usage |
; Usage |
||
: {{ |
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | EMILIANO-GABRIEL-VECCHIO-42110 | Emiliano Vecchio }}</code> |
||
: {{ |
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id {{=}} 42110 | name {{=}} Emiliano Vecchio }}</code> |
||
; Output |
; Output |
||
:* {{{{BASEPAGENAME}} | |
:* {{{{BASEPAGENAME}} | EMILIANO-GABRIEL-VECCHIO-42110 | Emiliano Vecchio }} |
||
:* {{{{BASEPAGENAME}} | id = 42110 | name = Emiliano Vecchio }} |
|||
; Current URLs |
; Current URLs |
||
: <kbd>[ |
: <kbd>[https://www.bdfa.com.ar/jugadores-EMILIANO-GABRIEL-VECCHIO-42110.html https://www.bdfa.com.ar/jugadores-{{Highlight|EMILIANO-GABRIEL-VECCHIO-42110}}.html]</kbd> |
||
: <kbd>[ |
: <kbd>[https://www.bdfa.com.ar/jugadores-42110.html https://www.bdfa.com.ar/jugadores-{{Highlight|42110}}.html]</kbd> |
||
: <kbd>[http://www.bdfa.com.ar/jugadores-42110.html http://www.bdfa.com.ar/jugadores-{{hilite|42110}}.html]</kbd> |
|||
; Former URLs |
; Former URLs |
||
: <kbd> |
: <kbd>https://<nowiki/>www.bdfa.com.ar/jugador.asp?codigo={{Highlight|42110}}</kbd> ([https://web.archive.org/web/20210825082221/https://www.bdfa.com.ar/jugador.asp?codigo=42110 archive 2021-08-25]) |
||
: <kbd>http://<nowiki/>bdfa.com.ar/ |
: <kbd>http://<nowiki/>www.bdfa.com.ar/jugador2.asp?codigo={{Highlight|42110}}</kbd> ([https://web.archive.org/web/20110429173605/http://www.bdfa.com.ar/jugador2.asp?codigo=42110 archive 2011-04-29]) |
||
⚫ | |||
[[Nestor Subiat]] |
|||
⚫ | |||
; Usage |
; Usage |
||
: {{ |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | NESTOR-SUBIAT-2815 | Nestor Subiat | access-date= {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code> |
||
: {{ |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 2815 | name= Nestor Subiat | accessdate= {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code> |
||
; Output |
; Output |
||
: {{{{BASEPAGENAME}} | |
: {{{{BASEPAGENAME}} | NESTOR-SUBIAT-2815 | Nestor Subiat | access-date = {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }} |
||
: {{{{BASEPAGENAME}} | id = 2815 | name = Nestor Subiat | accessdate = {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }} |
|||
; Current URLs |
; Current URLs |
||
: <kbd>[ |
: <kbd>[https://www.bdfa.com.ar/jugadores-NESTOR-SUBIAT-2815.html https://www.bdfa.com.ar/jugadores-{{Highlight|NESTOR-SUBIAT-2815}}.html]</kbd> |
||
: <kbd>[ |
: <kbd>[https://www.bdfa.com.ar/jugadores-2815.html https://www.bdfa.com.ar/jugadores-{{Highlight|2815}}.html]</kbd> |
||
: <kbd>[http://www.bdfa.com.ar/jugadores-2815.html http://www.bdfa.com.ar/jugadores-{{hilite|2815}}.html]</kbd> |
|||
; Former URLs |
; Former URLs |
||
: <kbd> |
: <kbd>https://<nowiki/>www.bdfa.com.ar/jugador.asp?codigo={{Highlight|2815}}</kbd> ([https://web.archive.org/web/20210825084013/https://www.bdfa.com.ar/jugador.asp?codigo=2815 archive 2021-08-25]) |
||
: <kbd>http://<nowiki/>bdfa.com.ar/ |
: <kbd>http://<nowiki/>www.bdfa.com.ar/jugador2.asp?codigo={{Highlight|2815}}</kbd> ([https://web.archive.org/web/20120314125537/http://www.bdfa.com.ar/jugador2.asp?codigo=2815 archive 2012-03-14]) |
||
=== No parameters === |
=== No parameters and Wikidata property not defined === |
||
; Usage |
; Usage |
||
: {{tlcw|a=1|{{BASEPAGENAME}}}} |
: {{tlcw|a=1|{{BASEPAGENAME}}}} |
||
Line 66: | Line 81: | ||
; 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": { |
|||
"id": { |
|||
"label": "ID", |
|||
"aliases": ["1"], |
|||
"description": "ID portion of the URL such as EMILIANO-GABRIEL-VECCHIO-42110 in https://www.bdfa.com.ar/jugadores-EMILIANO-GABRIEL-VECCHIO-42110.html or 42110 in https://www.bdfa.com.ar/jugadores-42110.html and https://www.bdfa.com.ar/jugador.asp?codigo=42110. This parameter is optional if Wikidata property P6188 exists, but required if not.", |
|||
"type": "string", |
|||
"required": false, |
|||
"default": "Wikidata property P6188" |
|||
}, |
|||
"name": { |
|||
"label": "Name", |
|||
"aliases": ["2"], |
|||
"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}}" |
|||
}, |
|||
"access-date": { |
|||
"label": "Access Date", |
|||
"aliases": ["accessdate"], |
|||
"description": "Date that the URL was accessed.", |
|||
"type": "date", |
|||
"required": false |
|||
} |
|||
}, |
|||
"paramOrder": [ |
|||
"id", |
|||
"name", |
|||
"access-date" |
|||
] |
|||
} |
|||
</templatedata> |
|||
== Tracking categories == |
|||
; template with ID |
|||
: ID is converted to numeric value before comparison with Wikidata |
|||
: EMILIANO-GABRIEL-VECCHIO-42110 → {{#invoke:String|match|s=EMILIANO-GABRIEL-VECCHIO-42110|pattern=%d+$|ignore_errors=true}} |
|||
: MARCELO-CA%C3%91ETE-81773 → {{#invoke:String|match|s=MARCELO-CA%C3%91ETE-81773|pattern=%d+$|ignore_errors=true}} |
|||
: 42110 → {{#invoke:String|match|s=42110|pattern=%d+$|ignore_errors=true}} |
|||
* {{clc|BDFA template with ID different from Wikidata}} |
|||
* {{clc|BDFA template with ID not in Wikidata}} |
|||
; template missing ID |
|||
* {{clc|BDFA template missing ID and not in Wikidata}} |
|||
== See also == |
|||
; Association football external link templates which convert ID to number before Wikidata comparison |
|||
* {{braces|[[Template:BeSoccer#Tracking categories|BeSoccer]]}} |
|||
* {{braces|[[Template:ESPN FC#Tracking categories|ESPN FC]]}} |
|||
* {{braces|[[Template:FootballDatabase.eu#Tracking categories|FootballDatabase.eu]]}} |
|||
* {{braces|[[Template:FootballFacts.ru#Tracking categories|FootballFacts.ru]]}} |
|||
* {{braces|[[Template:NFT player#Tracking categories|NFT player]]}} |
|||
== External links == |
|||
* [https://www.bdfa.com.ar/buscar.asp Search page at BDFA.com.ar] {{in lang|es}} |
|||
<includeonly>{{Sandbox other|| |
<includeonly>{{Sandbox other|| |
||
Line 71: | Line 146: | ||
[[Category:People and person external link templates]] |
[[Category:People and person external link templates]] |
||
[[Category:External link templates with accessdate parameter]] |
[[Category:External link templates with accessdate parameter]] |
||
[[Category:External link templates using Wikidata]] |
|||
[[Category:Templates that add a tracking category]] |
|||
[[Category:Templates that wrap Cite web]] |
|||
}}</includeonly> |
}}</includeonly> |
Latest revision as of 09:01, 5 August 2024
This is a documentation subpage for Template:BDFA. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 3,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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).
Usage
[edit]External links
[edit]- ID without name (uses Wikipedia article name as link text)
{{BDFA | ID }}
{{BDFA | id = ID }}
- ID with name
{{BDFA | ID | NAME }}
{{BDFA | id = ID | name = NAME }}
- Using Wikidata property
{{BDFA}}
{{BDFA | name = NAME }}
Citation with access-date
[edit]- ID without name (uses Wikipedia article name as link text)
{{BDFA | ID | access-date = DATE }}
{{BDFA | id = ID | access-date = DATE }}
- ID with name
{{BDFA | ID | NAME | access-date = DATE }}
{{BDFA | id = ID | name = NAME | access-date = DATE }}
- Using Wikidata property
{{BDFA | access-date = DATE }}
{{BDFA | name = NAME | access-date = DATE }}
Examples
[edit]As external link
[edit]- Usage
* {{BDFA | EMILIANO-GABRIEL-VECCHIO-42110 | Emiliano Vecchio }}
* {{BDFA | id = 42110 | name = Emiliano Vecchio }}
- Output
-
- Emiliano Vecchio at BDFA (in Spanish)
- Emiliano Vecchio at BDFA (in Spanish)
- Current URLs
- https://www.bdfa.com.ar/jugadores-EMILIANO-GABRIEL-VECCHIO-42110.html
- https://www.bdfa.com.ar/jugadores-42110.html
- Former URLs
- https://www.bdfa.com.ar/jugador.asp?codigo=42110 (archive 2021-08-25)
- http://www.bdfa.com.ar/jugador2.asp?codigo=42110 (archive 2011-04-29)
As citation with access-date
[edit]- Usage
{{BDFA | NESTOR-SUBIAT-2815 | Nestor Subiat | access-date= 27 September 2024 }}
{{BDFA | id= 2815 | name= Nestor Subiat | accessdate= 27 September 2024 }}
- Output
- "Nestor Subiat". BDFA (in Spanish). Retrieved 27 September 2024.
- "Nestor Subiat". BDFA (in Spanish). Retrieved 27 September 2024.
- Current URLs
- https://www.bdfa.com.ar/jugadores-NESTOR-SUBIAT-2815.html
- https://www.bdfa.com.ar/jugadores-2815.html
- Former URLs
- https://www.bdfa.com.ar/jugador.asp?codigo=2815 (archive 2021-08-25)
- http://www.bdfa.com.ar/jugador2.asp?codigo=2815 (archive 2012-03-14)
No parameters and Wikidata property not defined
[edit]- Usage
* {{BDFA}}
- Output
-
- {{BDFA}} template missing ID and not present in Wikidata.
TemplateData
[edit]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 | |
---|---|---|---|---|
ID | id 1 | ID portion of the URL such as EMILIANO-GABRIEL-VECCHIO-42110 in https://www.bdfa.com.ar/jugadores-EMILIANO-GABRIEL-VECCHIO-42110.html or 42110 in https://www.bdfa.com.ar/jugadores-42110.html and https://www.bdfa.com.ar/jugador.asp?codigo=42110. This parameter is optional if Wikidata property P6188 exists, but required if not.
| String | optional |
Name | name 2 | 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 | access-date accessdate | Date that the URL was accessed. | Date | optional |
Tracking categories
[edit]- template with ID
- ID is converted to numeric value before comparison with Wikidata
- EMILIANO-GABRIEL-VECCHIO-42110 → 42110
- MARCELO-CA%C3%91ETE-81773 → 81773
- 42110 → 42110
- Category:BDFA template with ID different from Wikidata (0)
- Category:BDFA template with ID not in Wikidata (18)
- template missing ID
See also
[edit]- Association football external link templates which convert ID to number before Wikidata comparison
- {{BeSoccer}}
- {{ESPN FC}}
- {{FootballDatabase.eu}}
- {{FootballFacts.ru}}
- {{NFT player}}
External links
[edit]- Search page at BDFA.com.ar (in Spanish)