Difference between revisions of "Template:BDFutbol"
imported>Zyxw m (Fixes for empty id/name parameters. Remove {{Trim|}} since {{#if:}} does same. If Wikidata property has multiple values, only use first one.) |
imported>Zyxw (don't add categories for "same as Wikidata" or "using Wikidata") |
||
| Line 1: | Line 1: | ||
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3655}} | {{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3655}} | ||
| − | | [https://www.bdfutbol.com/en/j/j{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3655}}|sep=,}} }}.html {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] 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 | + | | [https://www.bdfutbol.com/en/j/j{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P3655}}|sep=,}} }}.html {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] 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|nocatsame=1}} |
| <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]]}} | | <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]]}} | ||
Latest revision as of 17:56, 27 April 2019
{{{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= 28 December 2025 }}
- Output
- Javier Saviola at BDFutbol. Retrieved 28 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. |