Difference between revisions of "Template:CycleBase/doc"
imported>Zyxw m (Zyxw moved page Template:Cyclebase/doc to Template:CycleBase/doc: match move of template) |
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) |
||
| Line 16: | Line 16: | ||
=== Unnamed parameters === | === Unnamed parameters === | ||
''URL:'' | ''URL:'' | ||
| − | : < | + | : <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> | ||
| Line 24: | Line 24: | ||
=== Named parameters === | === Named parameters === | ||
''URL:'' | ''URL:'' | ||
| − | : < | + | : <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> | ||
Revision as of 06:55, 5 August 2018
| This is a documentation subpage for Template:CycleBase. It contains usage information, categories and other content that is not part of the original template page. |
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
URL:
Usage:
* {{CycleBase | 35840 | Anna van der Breggen }}
Output:
- Anna van der Breggen at CycleBase.nlScript error: No such module "EditAtWikidata".
Named parameters
URL:
Usage:
* {{CycleBase |id= 16289 |name= Alejandro Valverde Belmonte }}
Output:
- Alejandro Valverde Belmonte at CycleBase.nlScript error: No such module "EditAtWikidata".
TemplateData
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 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&news=en&pc=normal&page=renner&id=35840. | Number | required |
| 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 cyclist. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(cyclist)".
| String | optional |
See also