Difference between revisions of "Template:DZFoot/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(create documentation)
 
imported>Zyxw
m (update list, misc formatting)
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
{{Uses Wikidata|P3658}}
 
{{Uses Wikidata|P3658}}
{{Lua|Module:EditAtWikidata}}
+
{{Tracks Wikidata|P3658}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) player's profile at [http://www.dzfoot.com/ DZfoot.com], a website for [[football in Algeria]]. 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 profile at [http://www.dzfoot.com/ DZfoot.com], a website for [[football in Algeria]]. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
Line 15: Line 16:
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }}
 
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }}
  
Using [[Wikidata]] property [[d:Property:P3658|P3658]]:
+
Using [[Wikidata]] property {{Property|3658}}:
 
: {{tlcw|{{BASEPAGENAME}}}}
 
: {{tlcw|{{BASEPAGENAME}}}}
 
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }}
 
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }}
Line 22: Line 23:
  
 
=== Unnamed parameters ===  
 
=== Unnamed parameters ===  
''URL:''
 
: <tt>[http://www.dzfoot.com/fiche-joueur?id=1889 http://www.dzfoot.com/fiche-joueur?id={{Hilite|1889}}]</tt>
 
 
''Usage:''
 
''Usage:''
: {{tlcw|{{BASEPAGENAME}} | 1889 | Oussama Mesfar }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | 1889 | Oussama Mesfar }}
 +
 
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}} | 1889 | Oussama Mesfar }}
+
:* {{{{BASEPAGENAME}} | 1889 | Oussama Mesfar }}
 +
 
 +
''URL:''
 +
: <kbd>[http://www.dzfoot.com/fiche-joueur?id=1889 http://www.dzfoot.com/fiche-joueur?id={{Hilite|1889}}]</kbd>
  
 
=== Named parameters ===  
 
=== Named parameters ===  
''URL:''
 
: <tt>[http://www.dzfoot.com/fiche-joueur?id=620 http://www.dzfoot.com/fiche-joueur?id={{Hilite|620}}]</tt>
 
 
''Usage:''
 
''Usage:''
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 620 | name{{=}} Mohamed Benhamou }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 620 | name{{=}} Mohamed Benhamou }}
 +
 
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}} | id= 620 | name= Mohamed Benhamou }}
+
:* {{{{BASEPAGENAME}} | id= 620 | name= Mohamed Benhamou }}
 +
 
 +
''URL:''
 +
: <kbd>[http://www.dzfoot.com/fiche-joueur?id=620 http://www.dzfoot.com/fiche-joueur?id={{Hilite|620}}]</kbd>
  
 
=== 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 73: Line 79:
 
</templatedata>
 
</templatedata>
  
<includeonly>{{sandbox other||
+
== Tracking categories ==
 +
; template with ID
 +
* {{clc|DZFoot ID different from Wikidata}}
 +
* {{clc|DZFoot ID not in Wikidata}}
 +
; template missing ID
 +
* {{clc|DZFoot template missing ID and not in Wikidata}}
 +
 
 +
<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]]
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:External link templates using Wikidata]]
 
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 00:09, 10 May 2019

Template:Uses Wikidata Template:Tracks 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 Template:Property:

Template:Tlcw
Template:Tlcw

Examples

Unnamed parameters

Usage:

Template:Tlcw

Output:

URL:

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

Named parameters

Usage:

Template:Tlcw

Output:

URL:

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

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 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

Tracking categories

template with ID
template missing ID