Difference between revisions of "Template:BDFutbol"
imported>MusikAnimal m (Protected "Template:BDFutbol": Highly visible template; thousands of transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))) |
imported>Zyxw (add tracking categories) |
||
| Line 1: | Line 1: | ||
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3655}} | {{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3655}} | ||
| − | |[http://www.bdfutbol.com/en/j/j{{Trim|{{{1|{{{id<includeonly>|{{#property:P3655}}</includeonly>}}}}}}}}.html {{{2|{{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}}}}] at BDFutbol{{#if:{{{accessdate|}}}|. Retrieved {{{accessdate}}}.}}<includeonly>{{EditAtWikidata|pid=P3655|{{{1|{{{id|}}}}}}}}</includeonly> | + | |
| − | |<span class="error">{{[[Template:BDFutbol|BDFutbol]]}} template missing ID and not present in Wikidata.</span> | + | | [http://www.bdfutbol.com/en/j/j{{Trim|{{{1|{{{id<includeonly>|{{#property:P3655}}</includeonly>}}}}}}}}.html {{{2|{{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}}}}] at BDFutbol{{#if:{{{accessdate|}}}|. Retrieved {{{accessdate}}}.}}<includeonly>{{EditAtWikidata|pid=P3655|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P3655|value={{{1|{{{id|}}}}}}|category=BDFutbol template with ID|namespaces=0}}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#if:{{{1|{{{id|}}}}}}||[[Category:BDFutbol template using Wikidata]]}}}} |
| + | |||
| + | | <span class="error">{{[[Template:BDFutbol|BDFutbol]]}} template missing ID and not present in Wikidata.</span>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:BDFutbol template missing ID and not in Wikidata]]}} | ||
| + | |||
}}<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 17:40, 20 November 2017
{{{name}}} at BDFutbolTemplate:WikidataCheck
Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
Template:BDFutbol displays an external link to an association football (soccer) player's profile at BDFutbol.com.
Contents
Usage
- Unnamed parameters
{{BDFutbol | ID }}{{BDFutbol | ID | NAME }}
- Named parameters
{{BDFutbol | id= ID }}{{BDFutbol | id= ID | name= NAME }}{{BDFutbol | id= ID | name= NAME | accessdate= ACCESS DATE }}
Examples
Unnamed parameters
- Usage
{{BDFutbol | 1753 | Lionel Messi }}
- Output
- Lionel Messi at BDFutbolScript error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
- Usage
{{BDFutbol | id= 1213 | name= Javier Saviola | accessdate= 30 December 2025 }}
- Output
- Javier Saviola at BDFutbol. Retrieved 30 December 2025.Script error: No such module "EditAtWikidata".Template:WikidataCheck
No parameters and Wikidata property not defined
- Usage
{{BDFutbol}}
- Output
- Template:PAGENAMEBASE at BDFutbolScript error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
TemplateData for BDFutbol
This template displays an external link to an association football (soccer) player's profile at BDFutbol.com.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 1753 is the ID portion of http://www.bdfutbol.com/en/j/j1753.html. This parameter is optional if Wikidata property P3655 exists, but required if not.
| Number | optional |
| name | name 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)".
| String | optional |
| accessdate | accessdate | The "accessdate" parameter may be used to specify the date when the player's page was last accessed. It allows the template to be used as a reference, rather than as an external link. This parameter is optional. | Date | optional |
Tracking categories
- ID parameter exists
- Category:BDFutbol template with ID different from Wikidata (0)
- Category:BDFutbol template with ID not in Wikidata (0)
- ID parameter does not exist
See also
| The above documentation is transcluded from Template:BDFutbol/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |