Difference between revisions of "Template:DZFoot/doc"

From blackwiki
Jump to navigation Jump to search
imported>Crazy1880
(Tracking categories)
imported>Zyxw
m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
Line 23: Line 23:
 
=== Unnamed parameters ===  
 
=== Unnamed parameters ===  
 
''URL:''
 
''URL:''
: <tt>[http://www.dzfoot.com/fiche-joueur?id=1889 http://www.dzfoot.com/fiche-joueur?id={{Hilite|1889}}]</tt>
+
: <kbd>[http://www.dzfoot.com/fiche-joueur?id=1889 http://www.dzfoot.com/fiche-joueur?id={{Hilite|1889}}]</kbd>
 
''Usage:''
 
''Usage:''
 
: {{tlcw|{{BASEPAGENAME}} | 1889 | Oussama Mesfar }}
 
: {{tlcw|{{BASEPAGENAME}} | 1889 | Oussama Mesfar }}
Line 31: Line 31:
 
=== Named parameters ===  
 
=== Named parameters ===  
 
''URL:''
 
''URL:''
: <tt>[http://www.dzfoot.com/fiche-joueur?id=620 http://www.dzfoot.com/fiche-joueur?id={{Hilite|620}}]</tt>
+
: <kbd>[http://www.dzfoot.com/fiche-joueur?id=620 http://www.dzfoot.com/fiche-joueur?id={{Hilite|620}}]</kbd>
 
''Usage:''
 
''Usage:''
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 620 | name{{=}} Mohamed Benhamou }}
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 620 | name{{=}} Mohamed Benhamou }}

Revision as of 06:56, 5 August 2018

Template:Uses Wikidata

Template:DZFoot displays an external link to an association football (soccer) player's profile at DZfoot.com, a website for football in Algeria. 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 P3658:

Template:Tlcw
Template:Tlcw

Examples

Unnamed parameters

URL:

http://www.dzfoot.com/fiche-joueur?id=1889

Usage:

Template:Tlcw

Output:

Oussama Mesfar at DZFoot.com (in French)Script error: No such module "EditAtWikidata".Template:WikidataCheck

Named parameters

URL:

http://www.dzfoot.com/fiche-joueur?id=620

Usage:

Template:Tlcw

Output:

Mohamed Benhamou at DZFoot.com (in French)Script error: No such module "EditAtWikidata".Template:WikidataCheck

No parameters and Wikidata property not defined

Usage:

Template:Tlcw

Output:

Template:PAGENAMEBASE at DZFoot.com (in French)Script error: No such module "EditAtWikidata".Template:WikidataCheck

Tracking categories

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 DZFoot

This template displays an external link to an association football (soccer) player's profile at DZfoot.com, a website for football in Algeria. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter should contain the ID portion of player's URL. Examples: "1889" is the ID portion of http://www.dzfoot.com/fiche-joueur?id=1889. This parameter is optional if Wikidata property P3658 exists, but required if not.

Default
Wikidata property P3658
Numberoptional
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