Difference between revisions of "Template:FootballDatabase.eu/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(updates for change from http to https at website)
imported>Zyxw
m (update list, misc formatting)
Line 30: Line 30:
  
 
''Usage:''
 
''Usage:''
: {{tlcw|{{BASEPAGENAME}} | 2306-roberto-baggio | Roberto Baggio }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | 2306-roberto-baggio | Roberto Baggio }}
: {{tlcw|{{BASEPAGENAME}} | 2306 | Roberto Baggio }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | 2306 | Roberto Baggio }}
  
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}} | 2306-roberto-baggio | Roberto Baggio }}
+
:* {{{{BASEPAGENAME}} | 2306-roberto-baggio | Roberto Baggio }}
: {{{{BASEPAGENAME}} | 2306 | Roberto Baggio }}
+
:* {{{{BASEPAGENAME}} | 2306 | Roberto Baggio }}
  
 
==== Named parameters ====
 
==== Named parameters ====
Line 43: Line 43:
  
 
''Usage:''
 
''Usage:''
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 415--cafu | name{{=}} Cafu }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 415--cafu | name{{=}} Cafu }}
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 415 | name{{=}} Cafu }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 415 | name{{=}} Cafu }}
  
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}} | id= 415--cafu | name= Cafu }}
+
:* {{{{BASEPAGENAME}} | id= 415--cafu | name= Cafu }}
: {{{{BASEPAGENAME}} | id= 415 | name= Cafu }}
+
:* {{{{BASEPAGENAME}} | id= 415 | name= Cafu }}
  
 
=== Former URL ===
 
=== Former URL ===
Line 58: Line 58:
  
 
''Usage:''
 
''Usage:''
: {{tlcw|{{BASEPAGENAME}} | roberto.baggio.2306 | Roberto Baggio }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | roberto.baggio.2306 | Roberto Baggio }}
  
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}} | roberto.baggio.2306 | Roberto Baggio }}
+
:* {{{{BASEPAGENAME}} | roberto.baggio.2306 | Roberto Baggio }}
  
 
==== Named parameters ====
 
==== Named parameters ====
Line 69: Line 69:
  
 
''Usage:''
 
''Usage:''
: {{tlcw|{{BASEPAGENAME}} | id{{=}} .cafu.415 | name{{=}} Cafu }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} .cafu.415 | name{{=}} Cafu }}
  
 
''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 ===
 
''Usage:''
 
''Usage:''
: {{tlcw|{{BASEPAGENAME}}}}
+
: {{tlcw|a=1|{{BASEPAGENAME}}}}
  
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}}<!-- -->}}
+
:* {{{{BASEPAGENAME}}<!-- -->}}
  
 
== TemplateData ==
 
== TemplateData ==
Line 112: Line 112:
  
 
== Tracking categories ==
 
== Tracking categories ==
; "id" parameter exists
+
; template with ID
* {{clc|FootballDatabase.eu template with ID same as Wikidata}}
+
* {{clc|FootballDatabase.eu template with ID different from Wikidata}}
 
* {{clc|FootballDatabase.eu template with ID not in Wikidata}}
 
* {{clc|FootballDatabase.eu template with ID not in Wikidata}}
* {{clc|FootballDatabase.eu template with ID different from Wikidata}}
+
; template missing ID
; "id" parameter does not exist
 
* {{clc|FootballDatabase.eu template using Wikidata}}
 
 
* {{clc|FootballDatabase.eu template missing ID and not in Wikidata}}
 
* {{clc|FootballDatabase.eu template missing ID and not in Wikidata}}
  
<includeonly>{{sandbox other||
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line; interwikis at Wikidata -->
 
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:Association football external link templates]]
 
[[Category:Association football external link templates]]

Revision as of 09:05, 6 May 2019

Template:Uses Wikidata Template:Tracks Wikidata

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.

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw

Using Wikidata property Template:Property:

Template:Tlcw
Template:Tlcw

Examples

Current URL

Unnamed parameters

URLs:

https://www.footballdatabase.eu/en/player/details/2306-roberto-baggio
https://www.footballdatabase.eu/en/player/details/2306

Usage:

Template:Tlcw
Template:Tlcw

Output:

Named parameters

URLs:

https://www.footballdatabase.eu/en/player/details/415--cafu
https://www.footballdatabase.eu/en/player/details/415

Usage:

Template:Tlcw
Template:Tlcw

Output:

Former URL

Unnamed parameters

URL:

https://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html
Redirects to: https://www.footballdatabase.eu/en/player/details/2306-roberto-baggio

Usage:

Template:Tlcw

Output:

Named parameters

URL:

https://www.footballdatabase.eu/football.joueurs..cafu.415.en.html
Redirects to: https://www.footballdatabase.eu/en/player/details/415--cafu

Usage:

Template:Tlcw

Output:

No parameters and Wikidata property not defined

Usage:

Template:Tlcw

Output:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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.

Template parameters

ParameterDescriptionTypeStatus
idid 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 https://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 https://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html. This parameter is optional if Wikidata property P3537 exists, but required if not.

Default
Wikidata property P3537
Stringoptional
namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

template with ID
template missing ID