Difference between revisions of "Template:DZFoot"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Use Wikidata property P3658 if no "id". Trim any leading spaces from unnamed parameter 1 that would break URL. Add external documentation and move categories to /doc.)
imported>Crazy1880
(WikidataCheck)
Line 1: Line 1:
 
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3658}}
 
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3658}}
|[http://www.dzfoot.com/fiche-joueur?id={{Trim|{{{1|{{{id<includeonly>|{{#property:P3658}}</includeonly>}}}}}}}} {{{2|{{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}}}}] at DZFoot.com {{fr icon}}<includeonly>{{EditAtWikidata|pid=P3658|{{{1|{{{id|}}}}}}}}</includeonly>
+
|[http://www.dzfoot.com/fiche-joueur?id={{Trim|{{{1|{{{id<includeonly>|{{#property:P3658}}</includeonly>}}}}}}}} {{{2|{{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}}}}] at DZFoot.com {{fr icon}}<includeonly>{{EditAtWikidata|pid=P3658|{{{1|{{{id|}}}}}}}}{{WikidataCheck|property=P3658|value={{{1|{{{id|}}}}}}|category=DZFoot ID}}</includeonly>
 
|<span class="error">&#123;&#123;[[Template:DZFoot|DZFoot]]&#125;&#125; template missing ID and not present in Wikidata.</span>
 
|<span class="error">&#123;&#123;[[Template:DZFoot|DZFoot]]&#125;&#125; template missing ID and not present in Wikidata.</span>
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
 
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
 
</noinclude>
 
</noinclude>

Revision as of 19:52, 17 January 2018

{{{name}}} at DZFoot.com Template:Fr icon

Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

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