Difference between revisions of "Template:CycleBase/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
imported>Zyxw
(note available Wikidata property, show alternative URL)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- 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 -->
 +
{{Wikidata property|P4508}}
  
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[cycling (sport)|cyclist's]] page at the [http://cyclebase.nl/ CycleBase.nl] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[cycling (sport)|cyclist's]] page at the [http://cyclebase.nl/ CycleBase.nl] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
Line 14: Line 15:
  
 
== Examples ==
 
== Examples ==
 +
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
''URL:''
+
''URLs:''
 +
: <kbd>[http://www.cyclebase.nl/?lang=en&page=renner&id=35840 http://www.cyclebase.nl/?lang=en&page=renner&id={{hilite|35840}}]</kbd>
 
: <kbd>[http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id=35840 http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id={{hilite|35840}}]</kbd>
 
: <kbd>[http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id=35840 http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id={{hilite|35840}}]</kbd>
 +
 
''Usage:''
 
''Usage:''
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 35840 | Anna van der Breggen }}</code>
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 35840 | Anna van der Breggen }}</code>
 +
 
''Output:''
 
''Output:''
 
:* {{{{BASEPAGENAME}} | 35840 | Anna van der Breggen }}
 
:* {{{{BASEPAGENAME}} | 35840 | Anna van der Breggen }}
  
 
=== Named parameters ===
 
=== Named parameters ===
''URL:''
+
''URLs:''
 +
: <kbd>[http://www.cyclebase.nl/?lang=en&page=renner&id=16289 http://www.cyclebase.nl/?lang=en&page=renner&id={{hilite|16289}}]</kbd>
 
: <kbd>[http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id=16289 http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id={{hilite|16289}}]</kbd>
 
: <kbd>[http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id=16289 http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id={{hilite|16289}}]</kbd>
 +
 
''Usage:''
 
''Usage:''
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= 16289 |name= Alejandro Valverde Belmonte }}</code>
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= 16289 |name= Alejandro Valverde Belmonte }}</code>
 +
 
''Output:''
 
''Output:''
 
:* {{{{BASEPAGENAME}} |id= 16289 |name= Alejandro Valverde Belmonte }}
 
:* {{{{BASEPAGENAME}} |id= 16289 |name= Alejandro Valverde Belmonte }}
Line 39: Line 47:
 
       "label": "id",
 
       "label": "id",
 
       "aliases": ["1"],
 
       "aliases": ["1"],
       "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 35840 is the ID portion of http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id=35840.",
+
       "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 35840 is the ID portion of http://www.cyclebase.nl/?lang=en&page=renner&id=35840 or http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id=35840.",
 
       "type": "number",
 
       "type": "number",
 
       "required": true
 
       "required": true

Revision as of 02:00, 21 November 2018

Template:Wikidata property

Template:CycleBase displays an external link to a cyclist's page at the CycleBase.nl website. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

* {{CycleBase | ID }}
* {{CycleBase | ID | NAME }}

Named parameters:

* {{CycleBase | id= ID }}
* {{CycleBase | id= ID | name= NAME }}

Examples

Unnamed parameters

URLs:

http://www.cyclebase.nl/?lang=en&page=renner&id=35840
http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id=35840

Usage:

* {{CycleBase | 35840 | Anna van der Breggen }}

Output:

Named parameters

URLs:

http://www.cyclebase.nl/?lang=en&page=renner&id=16289
http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id=16289

Usage:

* {{CycleBase |id= 16289 |name= Alejandro Valverde Belmonte }}

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 CycleBase

This template displays an external link to a cyclist's page at the CycleBase.nl website. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 35840 is the ID portion of http://www.cyclebase.nl/?lang=en&page=renner&id=35840 or http://www.cyclebase.nl/?lang=en&news=en&pc=normal&page=renner&id=35840.

Numberrequired
namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the cyclist. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cyclist)".

Default
{{PAGENAMEBASE}}
Stringoptional

See also