Jump to content

Template:Fotbal DNES/doc

From Wikipedia, the free encyclopedia

Template:Fotbal DNES displays an external link to an association football (soccer) player's Czech First League statistics at iDNES.cz [cs; fr; nl; pl; sk]. It is intended for use in the external links section of an article.

Usage

[edit]
New ID
{{Fotbal DNES|new_id=NEWID}}
{{Fotbal DNES|new_id=NEWID|name=NAME}}
Old ID
{{Fotbal DNES|old_id=OLDID}}
{{Fotbal DNES|old_id=OLDID|name=NAME}}
{{Fotbal DNES|id=OLDID}}
{{Fotbal DNES|id=OLDID|name=NAME}}
{{Fotbal DNES|OLDID}}
{{Fotbal DNES|OLDID|NAME}}
New ID in Wikidata property Fotbal DNES player ID (P3663)
{{Fotbal DNES}}
{{Fotbal DNES|name=Displayed Name}}

Examples

[edit]

New ID in template

[edit]
Usage in Milan Baroš
* {{Fotbal DNES | new_id= 106 }}
Output
URLs with new ID number
https://www.idnes.cz/fotbal/databanka/Uplr106
https://www.idnes.cz/fotbal/databanka/milan-baros.Uplr106

Old ID in template

[edit]
Usage in Milan Baroš
* {{Fotbal DNES | old_id= 3000263 }}
* {{Fotbal DNES | id= 3000263 }}
* {{Fotbal DNES | 3000263 }}
Output
URLs with old ID number
https://fotbal.idnes.cz/databanka.aspx?t=hrac&id=3000263 (redirect to URL with new ID number)
http://fotbal.idnes.cz/db_fotbal.asp?hrac=3000263 (redirect to URL with new ID number)

New ID in Wikidata

[edit]
Usage in the article Marek Heinz
* {{Fotbal DNES}}
* {{Fotbal DNES | name= Marek Heinz }}
Output
URLs with new ID number
https://www.idnes.cz/fotbal/databanka/Uplr3025
https://www.idnes.cz/fotbal/databanka/marek-heinz.Uplr3025
URLs with old ID number
https://fotbal.idnes.cz/databanka.aspx?t=hrac&id=3003389 (redirect to URL with new ID number)
http://fotbal.idnes.cz/db_fotbal.asp?hrac=3003389 (redirect to URL with new ID number)

No parameters and Wikidata property not defined

[edit]
Usage
* {{Fotbal DNES}}
Output
  • {{Fotbal DNES}} 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:Fotbal DNES in articles based on its TemplateData.

TemplateData for Fotbal DNES

This template displays an external link to an association football (soccer) player's Czech First League statistics at iDNES.cz. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
New IDnew_id

The ID number in the current URL, such as 106 in https://www.idnes.cz/fotbal/databanka/Uplr106 or https://www.idnes.cz/fotbal/databanka/milan-baros.Uplr106. This parameter is optional if the "id" parameter (or unnamed parameter "1") is used or if Wikidata property P3663 exists.

Numberoptional
Namename 2

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
Old IDold_id id 1

The ID number in the former URL, such as 3000263 in https://fotbal.idnes.cz/databanka.aspx?t=hrac&id=3000263. This parameter is optional if the "new_id" parameter is used or if Wikidata property P3663 exists, but required if not.

Default
Wikidata property P3663
Numberoptional

Tracking categories

[edit]

See also

[edit]

Other sportsperson external link templates with multiple IDs: