Template:BDFA/doc: Difference between revisions
formatting |
merge templates |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{High-use}} |
|||
⚫ | |||
{{Template redirect|BDFA player}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
'''{{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 7: | 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 16: | Line 18: | ||
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> }} |
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> }} |
||
; Using |
; Using Wikidata property |
||
: {{tlcw|{{BASEPAGENAME}}}} |
: {{tlcw|{{BASEPAGENAME}}}} |
||
: {{tlcw|{{BASEPAGENAME}} | name {{=}} <var>NAME</var> }} |
: {{tlcw|{{BASEPAGENAME}} | name {{=}} <var>NAME</var> }} |
||
Line 29: | Line 31: | ||
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> | access-date {{=}} <var>DATE</var> }} |
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | name {{=}} <var>NAME</var> | access-date {{=}} <var>DATE</var> }} |
||
; Using Wikidata property |
; Using Wikidata property |
||
: {{tlcw|{{BASEPAGENAME}} | access-date {{=}} <var>DATE</var> }} |
: {{tlcw|{{BASEPAGENAME}} | access-date {{=}} <var>DATE</var> }} |
||
: {{tlcw|{{BASEPAGENAME}} | name {{=}} <var>NAME</var> | access-date {{=}} <var>DATE</var> }} |
: {{tlcw|{{BASEPAGENAME}} | name {{=}} <var>NAME</var> | access-date {{=}} <var>DATE</var> }} |
||
Line 86: | Line 88: | ||
"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).", |
"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": { |
"params": { |
||
" |
"id": { |
||
"label": " |
"label": "ID", |
||
"aliases": [" |
"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.", |
"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", |
"type": "string", |
||
Line 94: | Line 96: | ||
"default": "Wikidata property P6188" |
"default": "Wikidata property P6188" |
||
}, |
}, |
||
" |
"name": { |
||
"label": " |
"label": "Name", |
||
"aliases": [" |
"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)\".", |
"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", |
"type": "string", |
||
Line 111: | Line 113: | ||
}, |
}, |
||
"paramOrder": [ |
"paramOrder": [ |
||
" |
"id", |
||
" |
"name", |
||
"access-date" |
"access-date" |
||
] |
] |
||
} |
} |
||
</templatedata> |
</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 == |
== External links == |
||
Line 125: | 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)