Difference between revisions of "Template:Cite RCDB/doc"

From blackwiki
Jump to navigation Jump to search
imported>GoneIn60
imported>Vanisaac
m (→‎TemplateData: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
 
 
This template is used to cite [http://rcdb.com/ Roller Coaster Database (RCDB)] pages. It must be wrapped with <nowiki><ref></nowiki> tags.
 
This template is used to cite [http://rcdb.com/ Roller Coaster Database (RCDB)] pages. It must be wrapped with <nowiki><ref></nowiki> tags.
  
Line 46: Line 47:
 
| accessdate || The date the database was accessed. In local format. || 1 January 2010
 
| 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. || http://www.rcdb.com/r.htm?ot=2&nm=na&ty=1&de=5&page=1&order=10
+
| url || The full URL of the webpage. Can be used when referencing search results. || https://rcdb.com/1.htm
 
|}
 
|}
  
Line 54: Line 55:
 
! Wiki Markup !! Result
 
! Wiki Markup !! Result
 
|-
 
|-
| <nowiki>{{cite RCDB|coaster_name=Raptor|location=Cedar Point|rcdb_number=1|accessdate=1 January 2010}}</nowiki> || {{cite RCDB|coaster_name=Raptor|location=Cedar Point|rcdb_number=1|accessdate=1 January 2010}}
+
| style="width: 60%;" | <nowiki>{{cite RCDB|coaster_name=Raptor|location=Cedar Point|rcdb_number=1|accessdate=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}<nowiki>}}</nowiki> || {{cite RCDB|coaster_name=Raptor|location=Cedar Point|rcdb_number=1|accessdate={{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}}}
 
|-
 
|-
| <nowiki>{{cite RCDB|coaster_name=SLC|location=|rcdb_number=8106|accessdate=1 January 2010}}</nowiki> || {{cite RCDB|coaster_name=SLC|location=|rcdb_number=8106|accessdate=1 January 2010}}
+
| style="width: 60%;" | <nowiki>{{cite RCDB|coaster_name=SLC|location=|rcdb_number=8106|accessdate=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}<nowiki>}}</nowiki> || {{cite RCDB|coaster_name=SLC|location=|rcdb_number=8106|accessdate={{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}}}
|}<includeonly>
+
|}
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Roller coaster templates]]
 
[[Category:Specific-source templates]]
 
</includeonly>
 
  
==Template Data==
+
==TemplateData==
 +
{{TemplateData header}}
 
<templatedata>{
 
<templatedata>{
 
"description": "A template to create citations from RCDB to be used within articles.",
 
"description": "A template to create citations from RCDB to be used within articles.",
Line 92: Line 90:
 
}
 
}
 
}}</templatedata>
 
}}</templatedata>
 +
 +
<includeonly>{{Sandbox other||
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
[[Category:Roller coaster templates]]
 +
[[Category:Specific-source templates]]
 +
}}</includeonly>

Latest revision as of 14:23, 24 April 2020

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 19, 2026}} Marden, Duane. "Raptor  (Cedar Point)". Roller Coaster DataBase. Retrieved January 19, 2026.
{{cite RCDB|coaster_name=SLC|location=|rcdb_number=8106|accessdate=January 19, 2026}} Marden, Duane. "SLC". Roller Coaster DataBase. Retrieved January 19, 2026.

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 Cite RCDB

A template to create citations from RCDB to be used within articles.

Template parameters

ParameterDescriptionTypeStatus
Coaster Namecoaster_name

The name of the roller coaster in question (The article's name)

Stringrequired
Locationlocation

The location of the roller coaster (Park name)

Stringrequired
Urlurl

The url of the RCDB entry for the roller coaster

Stringrequired
Access Dateaccessdate

The date when the url/reference was found

Stringrequired