Jump to content

Template:BDFA/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Bender the Bot (talk | contribs)
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}}
{{Wikidata property|P6188}}
{{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 link ===
=== 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> }}


; Using Wikidata property
=== Citation with accessdate ===
: {{tlcw|{{BASEPAGENAME}}}}
: {{tlcw|{{BASEPAGENAME}} | name {{=}} <var>NAME</var> }}

=== Citation with access-date ===
; 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> | accessdate {{=}} <var>DATE</var> }}
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | access-date {{=}} <var>DATE</var> }}
: {{tlcw|{{BASEPAGENAME}} | id {{=}} <var>ID</var> | accessdate {{=}} <var>DATE</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> | accessdate {{=}} <var>DATE</var> }}
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> | access-date {{=}} <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> | 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
: {{tlcw|a=1|{{BASEPAGENAME}} | 42110 | Emiliano Gabriel Vecchio }}
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | EMILIANO-GABRIEL-VECCHIO-42110 | Emiliano Vecchio }}</code>
: {{tlcw|a=1|{{BASEPAGENAME}} | id {{=}} 42110 | name {{=}} Emiliano Gabriel Vecchio }}
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id {{=}} 42110 | name {{=}} Emiliano Vecchio }}</code>


; Output
; Output
:* {{{{BASEPAGENAME}} | id = 42110 | name = Emiliano Gabriel Vecchio }}
:* {{{{BASEPAGENAME}} | EMILIANO-GABRIEL-VECCHIO-42110 | Emiliano Vecchio }}
:* {{{{BASEPAGENAME}} | id = 42110 | name = Emiliano Vecchio }}


; Current URLs
; Current URLs
: <kbd>[http://www.bdfa.com.ar/jugador.asp?codigo=42110 http://www.bdfa.com.ar/jugador.asp?codigo={{hilite|42110}}]</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>[http://www.bdfa.com.ar/jugadores-EMILIANO-GABRIEL-VECCHIO-42110.html http://www.bdfa.com.ar/jugadores-EMILIANO-GABRIEL-VECCHIO-{{hilite|42110}}.html]</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>http://<nowiki/>www.bdfa.com.ar/jugador2.asp?codigo={{hilite|42110}}</kbd> ([https://web.archive.org/web/20090817230317/http://www.bdfa.com.ar/jugador2.asp?codigo=42110 archive])
: <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/jugador.asp?codigo={{hilite|42110}}</kbd>
: <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])

=== As citation with access-date ===
[[Nestor Subiat]]


=== As citation with accessdate ===
; Usage
; Usage
: {{tlcw|{{BASEPAGENAME}} | 2815 | Nestor Subiat | accessdate {{=}} 2018-05-28 }}
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | NESTOR-SUBIAT-2815 | Nestor Subiat | access-date= {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code>
: {{tlcw|{{BASEPAGENAME}} | id {{=}} 2815 | name {{=}} Nestor Subiat | accessdate {{=}} 2018-05-28 }}
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 2815 | name= Nestor Subiat | accessdate= {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code>


; Output
; Output
: {{{{BASEPAGENAME}} | id = 2815 | name = Nestor Subiat | accessdate = 2018-05-28 }}
: {{{{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>[http://www.bdfa.com.ar/jugador.asp?codigo=2815 http://www.bdfa.com.ar/jugador.asp?codigo={{hilite|2815}}]</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>[http://www.bdfa.com.ar/jugadores-NESTOR-SUBIAT-2815.html http://www.bdfa.com.ar/jugadores-NESTOR-SUBIAT-{{hilite|2815}}.html]</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>http://<nowiki/>www.bdfa.com.ar/jugador2.asp?codigo={{hilite|2815}}</kbd> ([https://web.archive.org/web/20110531171314/http://www.bdfa.com.ar/jugador2.asp?codigo=2815 archive])
: <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/jugador.asp?codigo={{hilite|2815}}</kbd> ([https://web.archive.org/web/20180705151625/http://bdfa.com.ar/jugador.asp?codigo=2815 archive])
: <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

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]
[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]
[edit]

Emiliano Vecchio

Usage
* {{BDFA | EMILIANO-GABRIEL-VECCHIO-42110 | Emiliano Vecchio }}
* {{BDFA | id = 42110 | name = Emiliano Vecchio }}
Output
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]

Nestor Subiat

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]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:BDFA in articles based on its 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).

Template parameters

ParameterDescriptionTypeStatus
IDid 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.

Default
Wikidata property P6188
Stringoptional
Namename 2

Name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".

Default
{{PAGENAMEBASE}}
Stringoptional
Access Dateaccess-date accessdate

Date that the URL was accessed.

Dateoptional

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
template missing ID

See also

[edit]
Association football external link templates which convert ID to number before Wikidata comparison
[edit]