Difference between revisions of "Template:BDFutbol"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Changed protection level for "Template:BDFutbol": high-risk template with 4000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
imported>Elegie
(Use HTTPS for BDFutbol link(s) in order to provide increased privacy and security for users. (From what it appears, an HTTP URL generates an HTTP 301 (Moved Permanently) redirect to an HTTPS URL.))
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>{{WikidataCheck|property=P3655|value={{{1|{{{id|}}}}}}|category=BDFutbol template with ID|namespaces=0}}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#if:{{{1|{{{id|}}}}}}||[[Category:BDFutbol template using Wikidata]]}}}}
+
| [https://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">&#123;&#123;[[Template:BDFutbol|BDFutbol]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:BDFutbol template missing ID and not in Wikidata]]}}
 
| <span class="error">&#123;&#123;[[Template:BDFutbol|BDFutbol]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:BDFutbol template missing ID and not in Wikidata]]}}

Revision as of 13:23, 1 June 2018

{{{name}}} at BDFutbolTemplate:WikidataCheck

Template documentation[view] [edit] [history] [purge]

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.

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 }}
Using Wikidata property P3655
{{BDFutbol}}
{{BDFutbol | name= NAME }}

Examples

Unnamed parameters

URL
http://www.bdfutbol.com/en/j/j1753.html
Usage
{{BDFutbol | 1753 | Lionel Messi }}
Output
Lionel Messi at BDFutbolScript error: No such module "EditAtWikidata".Template:WikidataCheck

Named parameters

URL
http://www.bdfutbol.com/en/j/j1213.html
Usage
{{BDFutbol | id= 1213 | name= Javier Saviola | accessdate= 29 December 2025 }}
Output
Javier Saviola at BDFutbol. Retrieved 29 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

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 BDFutbol

This template displays an external link to an association football (soccer) player's profile at BDFutbol.com.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Default
Wikidata property P3655
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
accessdateaccessdate

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.

Dateoptional

Tracking categories

ID parameter exists
ID parameter does not exist

See also