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

From blackwiki
Jump to navigation Jump to search
imported>Themeparkgc
(update)
imported>Themeparkgc
(no more direct links to metric pages)
Line 9: Line 9:
 
|location=
 
|location=
 
|rcdb_number=
 
|rcdb_number=
|metric=
 
 
|accessdate=
 
|accessdate=
 
|url=
 
|url=
Line 25: Line 24:
 
{"field": "coaster_name", "label":"Coaster name"},
 
{"field": "coaster_name", "label":"Coaster name"},
 
{"field": "location", "label":"Park name"},  
 
{"field": "location", "label":"Park name"},  
{"field": "metric", "tooltip":"Optional"},
 
 
{"field": "rcdb_number", "label":"RCDB Number"},
 
{"field": "rcdb_number", "label":"RCDB Number"},
 
{"field": "accessdate", "label":"Access date"},
 
{"field": "accessdate", "label":"Access date"},
Line 45: Line 43:
 
|-
 
|-
 
| rcdb_number || The number of the roller coaster. It appears in the URL. || 1
 
| rcdb_number || The number of the roller coaster. It appears in the URL. || 1
|-
 
| metric || Should the metric database page be linked? Include only if yes. || yes
 
 
|-
 
|-
 
| 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
Line 57: Line 53:
 
|-
 
|-
 
! Wiki Markup !! Result
 
! Wiki Markup !! Result
|-
 
| <nowiki>{{cite RCDB|coaster_name=Raptor|location=Cedar Point|rcdb_number=1|metric=yes|accessdate=1 January 2010}}</nowiki> || {{cite RCDB|coaster_name=Raptor|location=Cedar Point|rcdb_number=1|metric=yes|accessdate=1 January 2010}}
 
 
|-
 
|-
 
| <nowiki>{{cite RCDB|coaster_name=Raptor|location=Cedar Point|rcdb_number=1|accessdate=1 January 2010|metric=}}</nowiki> || {{cite RCDB|coaster_name=Raptor|location=Cedar Point|rcdb_number=1|accessdate=1 January 2010|metric=}}
 
| <nowiki>{{cite RCDB|coaster_name=Raptor|location=Cedar Point|rcdb_number=1|accessdate=1 January 2010|metric=}}</nowiki> || {{cite RCDB|coaster_name=Raptor|location=Cedar Point|rcdb_number=1|accessdate=1 January 2010|metric=}}
 
|-
 
|-
| <nowiki>{{cite RCDB|coaster_name=SLC|location=|rcdb_number=8106|metric=yes|accessdate=1 January 2010}}</nowiki> || {{cite RCDB|coaster_name=SLC|location=|rcdb_number=8106|metric=yes|accessdate=1 January 2010}}
+
| <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}}
 
|}<includeonly>
 
|}<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->

Revision as of 06:07, 23 April 2013

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 it's 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. http://www.rcdb.com/r.htm?ot=2&nm=na&ty=1&de=5&page=1&order=10

Examples

Wiki Markup Result
{{cite RCDB|coaster_name=Raptor|location=Cedar Point|rcdb_number=1|accessdate=1 January 2010|metric=}} Marden, Duane. "Raptor  (Cedar Point)". Roller Coaster DataBase. Retrieved 1 January 2010.
{{cite RCDB|coaster_name=SLC|location=|rcdb_number=8106|accessdate=1 January 2010}} Marden, Duane. "SLC". Roller Coaster DataBase. Retrieved 1 January 2010.