Difference between revisions of "Template:Cite RCDB"
imported>GoneIn60 (www.rcdb.com → rcdb.com (fixes broken links created by the use of this template)) |
(Changed protocol from http to https.) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{cite web|title=</includeonly>{{#if: {{{coaster_name<includeonly>|</includeonly>}}} | <includeonly>{{{coaster_name}}}</includeonly> }} {{#if: {{{name<includeonly>|</includeonly>}}} | <includeonly>{{{name}}}</includeonly> }} {{#if: {{{location<includeonly>|</includeonly>}}} | <includeonly> ({{{location}}})</includeonly>}}<includeonly>|url=</includeonly>{{#if: {{{url<includeonly>|</includeonly>}}} | <includeonly>{{{url}}}</includeonly> | <includeonly> | + | <includeonly>{{cite web|title=</includeonly>{{#if: {{{coaster_name<includeonly>|</includeonly>}}} | <includeonly>{{{coaster_name}}}</includeonly> }} {{#if: {{{name<includeonly>|</includeonly>}}} | <includeonly>{{{name}}}</includeonly> }} {{#if: {{{location<includeonly>|</includeonly>}}} | <includeonly> ({{{location}}})</includeonly>}}<includeonly>|url=</includeonly>{{#if: {{{url<includeonly>|</includeonly>}}} | <includeonly>{{{url}}}</includeonly> | <includeonly>https://rcdb.com/</includeonly>{{#if: {{{rcdb_number<includeonly>|</includeonly>}}} | <includeonly>{{{rcdb_number}}}.htm</includeonly> }} }}<includeonly>|publisher=[[Roller Coaster DataBase]]|first=Duane|last=Marden|accessdate=</includeonly>{{#if: {{{accessdate<includeonly>|</includeonly>}}} | <includeonly>{{{accessdate}}}</includeonly> }}<includeonly>}}</includeonly> |
<noinclude>{{doc}}</noinclude> | <noinclude>{{doc}}</noinclude> | ||
Revision as of 18:39, 7 September 2016
This template is used to cite Roller Coaster Database (RCDB) pages. It must be wrapped with <ref> tags.
Usage
{{cite RCDB
|coaster_name=
|location=
|rcdb_number=
|accessdate=
|url=
}}
RefToolbar 2.0
The simplest way to use this template is with RefToolbar. Registered users can enable this option in the Gadgets tab of the My Preferences menu. After this is enabled, the following code needs to be copied to your skin Javascript file. You will then notice a new Cite tab when editing a page. By clicking on the templates drop down you will find RCDB. Fill in the details and click insert.
importScript('User:Mr.Z-man/refToolbar 2.0.js');
$j('head').one('reftoolbarbase', function() {
new citeTemplate('cite RCDB', 'cite RCDB',
[ // Basic fields
{"field": "coaster_name", "label":"Coaster name"},
{"field": "location", "label":"Park name"},
{"field": "rcdb_number", "label":"RCDB Number"},
{"field": "accessdate", "label":"Access date"},
{"field": "url", "label":"URL"}
],
[ // Expanded fields
]);
});
Parameters
| Parameter | Description | Example |
|---|---|---|
| coaster_name | The name of the roller coaster as listed on its RCDB page. | Raptor |
| location | The park where the roller coaster is located. | Cedar Point |
| rcdb_number | The number of the roller coaster. It appears in the URL. | 1 |
| accessdate | The date the database was accessed. In local format. | 1 January 2010 |
| url | The full URL of the webpage. Can be used when referencing search results. | https://rcdb.com/1.htm |
Examples
| Wiki Markup | Result |
|---|---|
| {{cite RCDB|coaster_name=Raptor|location=Cedar Point|rcdb_number=1|accessdate=January 17, 2026}} | Marden, Duane. "Raptor (Cedar Point)". Roller Coaster DataBase. Retrieved January 17, 2026. |
| {{cite RCDB|coaster_name=SLC|location=|rcdb_number=8106|accessdate=January 17, 2026}} | Marden, Duane. "SLC". Roller Coaster DataBase. Retrieved January 17, 2026. |
TemplateData
TemplateData for Cite RCDB
A template to create citations from RCDB to be used within articles.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Coaster Name | coaster_name | The name of the roller coaster in question (The article's name) | String | required |
| Location | location | The location of the roller coaster (Park name) | String | required |
| Url | url | The url of the RCDB entry for the roller coaster | String | required |
| Access Date | accessdate | The date when the url/reference was found | String | required |
| The above documentation is transcluded from Template:Cite RCDB/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. |