Jump to content

User:Ernestvoice/vector.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
copied from monobook.js
 
added press release template
Line 2: Line 2:
importScript('User:Henrik/js/automod.js');
importScript('User:Henrik/js/automod.js');
importScript('User:Mr.Z-man/refToolbar 2.0.js');
importScript('User:Mr.Z-man/refToolbar 2.0.js');

{{cite press release
| language =
| trans_title =
| accessdate =
| archiveurl =
| archivedate =
| quote =
| ref =
}}

// Custom cite template definitions
new citeTemplate('cite press release', 'Press Release',
[ // Basic fields
{"field": "url", "label":"URL"},
{"field": "title", "label":"Title"},
{"field": "publisher", "label":"Publisher"},
{"field": "date", "label":"Date"},
{"field": "accessdate", "label":"Access Date"},
],
[ // Expanded fields
{"field": "format", "tooltip":"HTML is default"},
{"field": "language", "label":"Language", "tooltip":"English is default"},
{"field": "trans_title", "label":"Translated Title"},
{"field": "archiveurl", "label":"Archive URL"},
{"field": "archivedate", "label":"Archive Date"},
{"field": "quote"},
{"field": "ref"}
]);

Revision as of 07:44, 20 December 2010

importScript('User:AzaToth/twinkle.js');
importScript('User:Henrik/js/automod.js');
importScript('User:Mr.Z-man/refToolbar 2.0.js');

{{cite press release
 | language = 
 | trans_title =
 | accessdate = 
 | archiveurl = 
 | archivedate = 
 | quote = 
 | ref =
 }}

// Custom cite template definitions
new citeTemplate('cite press release', 'Press Release',
[ // Basic fields
{"field": "url", "label":"URL"},
{"field": "title", "label":"Title"}, 
{"field": "publisher", "label":"Publisher"},
{"field": "date", "label":"Date"},
{"field": "accessdate", "label":"Access Date"},
],
[ // Expanded fields
{"field": "format", "tooltip":"HTML is default"},
{"field": "language", "label":"Language", "tooltip":"English is default"},
{"field": "trans_title", "label":"Translated Title"},
{"field": "archiveurl", "label":"Archive URL"},
{"field": "archivedate", "label":"Archive Date"},
{"field": "quote"},
{"field": "ref"}
]);