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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(updates for new URL and ID format)
imported>Zyxw
(updates for change from http to https at website)
Line 5: Line 5:
 
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
 
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) player's statistics at the [http://www.footballdatabase.eu/ FootballDatabase.eu] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
+
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) player's statistics at the [https://www.footballdatabase.eu/ FootballDatabase.eu] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
  
 
== Usage ==
 
== Usage ==
Line 26: Line 26:
 
==== Unnamed parameters ====
 
==== Unnamed parameters ====
 
''URLs:''
 
''URLs:''
: <kbd>[http://www.footballdatabase.eu/en/player/details/2306-roberto-baggio http://www.footballdatabase.eu/en/player/details/{{Highlight|2306-roberto-baggio}}]</kbd>
+
: <kbd>[https://www.footballdatabase.eu/en/player/details/2306-roberto-baggio https://www.footballdatabase.eu/en/player/details/{{Highlight|2306-roberto-baggio}}]</kbd>
: <kbd>[http://www.footballdatabase.eu/en/player/details/2306-roberto-baggio http://www.footballdatabase.eu/en/player/details/{{Highlight|2306}}]</kbd>
+
: <kbd>[https://www.footballdatabase.eu/en/player/details/2306-roberto-baggio https://www.footballdatabase.eu/en/player/details/{{Highlight|2306}}]</kbd>
  
 
''Usage:''
 
''Usage:''
Line 39: Line 39:
 
==== Named parameters ====
 
==== Named parameters ====
 
''URLs:''
 
''URLs:''
: <kbd>[http://www.footballdatabase.eu/en/player/details/415--cafu http://www.footballdatabase.eu/en/player/details/{{Highlight|415--cafu}}]</kbd>
+
: <kbd>[https://www.footballdatabase.eu/en/player/details/415--cafu https://www.footballdatabase.eu/en/player/details/{{Highlight|415--cafu}}]</kbd>
: <kbd>[http://www.footballdatabase.eu/en/player/details/415--cafu http://www.footballdatabase.eu/en/player/details/{{Highlight|415}}]</kbd>
+
: <kbd>[https://www.footballdatabase.eu/en/player/details/415--cafu https://www.footballdatabase.eu/en/player/details/{{Highlight|415}}]</kbd>
  
 
''Usage:''
 
''Usage:''
Line 54: Line 54:
 
==== Unnamed parameters ====
 
==== Unnamed parameters ====
 
''URL:''
 
''URL:''
: <kbd>[http://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html http://www.footballdatabase.eu/football.joueurs.{{Highlight|roberto.baggio.2306}}.en.html]</kbd>
+
: <kbd>[https://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html https://www.footballdatabase.eu/football.joueurs.{{Highlight|roberto.baggio.2306}}.en.html]</kbd>
: Redirects to: <kbd>[http://www.footballdatabase.eu/en/player/details/2306-roberto-baggio http://www.footballdatabase.eu/en/player/details/{{Highlight|2306-roberto-baggio|lightgreen}}]</kbd>
+
: Redirects to: <kbd>[https://www.footballdatabase.eu/en/player/details/2306-roberto-baggio https://www.footballdatabase.eu/en/player/details/{{Highlight|2306-roberto-baggio|lightgreen}}]</kbd>
  
 
''Usage:''
 
''Usage:''
Line 65: Line 65:
 
==== Named parameters ====
 
==== Named parameters ====
 
''URL:''
 
''URL:''
: <kbd>[http://www.footballdatabase.eu/football.joueurs..cafu.415.en.html http://www.footballdatabase.eu/football.joueurs.{{Highlight|.cafu.415}}.en.html]</kbd>
+
: <kbd>[https://www.footballdatabase.eu/football.joueurs..cafu.415.en.html https://www.footballdatabase.eu/football.joueurs.{{Highlight|.cafu.415}}.en.html]</kbd>
: Redirects to: <kbd>[http://www.footballdatabase.eu/en/player/details/415--cafu http://www.footballdatabase.eu/en/player/details/{{Highlight|415--cafu|lightgreen}}]</kbd>
+
: Redirects to: <kbd>[https://www.footballdatabase.eu/en/player/details/415--cafu https://www.footballdatabase.eu/en/player/details/{{Highlight|415--cafu|lightgreen}}]</kbd>
  
 
''Usage:''
 
''Usage:''
Line 90: Line 90:
 
       "label": "id",
 
       "label": "id",
 
       "aliases": ["1"],  
 
       "aliases": ["1"],  
       "description": "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 http://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 http://www.footballdatabase.eu/football.joueurs.roberto.baggio.2306.en.html. This parameter is optional if Wikidata property P3537 exists, but required if not.",
+
       "description": "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.",
 
       "type": "string",
 
       "type": "string",
 
       "required": false,
 
       "required": false,

Revision as of 02:10, 1 October 2018

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:

Roberto Baggio at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck
Roberto Baggio at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck

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:

Cafu at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck
Cafu at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck

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:

Roberto Baggio at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck

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:

Cafu at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck

No parameters and Wikidata property not defined

Usage:

Template:Tlcw

Output:

Template:PAGENAMEBASE at FootballDatabase.euScript error: No such module "EditAtWikidata".Template:WikidataCheck

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

"id" parameter exists
"id" parameter does not exist