Template:Cite RCDB/doc

This template is used to cite Roller Coaster Database (RCDB) pages. It must be wrapped with tags.

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 ]); });

TemplateData
{ "description": "A template to create citations from RCDB to be used within articles.", "params": { "coaster_name": { "label": "Coaster Name", "description": "The name of the roller coaster in question (The article's name)", "type": "string", "required": true }, "location": { "label": "Location", "description": "The location of the roller coaster (Park name)", "type": "string", "required": true }, "url": { "label": "Url", "description": "The url of the RCDB entry for the roller coaster", "type": "string", "required": true }, "accessdate": { "label": "Access Date", "description": "The date when the url/reference was found", "type": "string", "required": true } }}