User:Ernestvoice/vector.js: Difference between revisions
Appearance
Content deleted Content added
Ernestvoice (talk | contribs) m Finally, jeezz |
Ernestvoice (talk | contribs) added Episode template |
||
Line 3: | Line 3: | ||
importScript('User:Mr.Z-man/refToolbar 2.0.js'); |
importScript('User:Mr.Z-man/refToolbar 2.0.js'); |
||
//Custom Citation Templates for use with RefToolbar 2.0 |
|||
$j('head').one('reftoolbarbase', function() { |
$j('head').one('reftoolbarbase', function() { |
||
//Press Release Template |
|||
new citeTemplate('cite press release', 'Press Release', |
new citeTemplate('cite press release', 'Press Release', |
||
[ // Basic fields |
[ // Basic fields |
||
Line 20: | Line 23: | ||
{"field": "quote"}, |
{"field": "quote"}, |
||
{"field": "ref"} |
{"field": "ref"} |
||
]); |
|||
//TV Episode Template |
|||
new citeTemplate('cite episode', 'TV Episode', |
|||
[ // Basic fields |
|||
{"field": "url", "label":"URL"}, |
|||
{"field": "title"}, |
|||
{"field": "series"}, |
|||
{"field": "date"}, |
|||
{"field": "season"}, |
|||
{"field": "number"}, |
|||
{"field": "minutes"}, |
|||
{"field": "accessdate", "label":"Access Date"} |
|||
], |
|||
[ // Expanded fields |
|||
{"field": "eposidelink", "label":"Episode Link", "tooltip":"Wikipedia article of episode"}, |
|||
{"field": "serieslink", "label":"Series Link", "tooltip":"Wikipedia article of series"}, |
|||
{"field": "credits", "tooltip":"Writers, directors, performers, producers, etc."}, |
|||
{"field": "network", "tooltip":"Network the episode aired on"}, |
|||
{"field": "station", "tooltip":"Call letters of the station"}, |
|||
{"field": "city", "tooltip":"City of the local station (if any) or network"}, |
|||
{"field": "airdate", "tooltip":"The date the episode aired"}, |
|||
{"field": "began", "tooltip":"The date the first part of the episode aired"}, |
|||
{"field": "ended", "tooltip":"The date the last part of the episode aired"}, |
|||
{"field": "seriesno", "label":"Series No", "tooltip":"Season number if a UK program"}, |
|||
{"field": "transcript", "tooltip":"IF the source is a transcript"}, |
|||
{"field": "transcripturl", "label":"Transcript URL", "tooltip":"The URL for the transcript"}, |
|||
{"field": "quote"}, |
|||
{"field": "language", "tooltip":"Default is English"} |
|||
]); |
]); |
||
}); |
}); |
Revision as of 16:01, 20 December 2010
importScript('User:AzaToth/twinkle.js');
importScript('User:Henrik/js/automod.js');
importScript('User:Mr.Z-man/refToolbar 2.0.js');
//Custom Citation Templates for use with RefToolbar 2.0
$j('head').one('reftoolbarbase', function() {
//Press Release Template
new citeTemplate('cite press release', 'Press Release',
[ // Basic fields
{"field": "url", "label":"URL"},
{"field": "title"},
{"field": "publisher"},
{"field": "date"},
{"field": "accessdate", "label":"Access Date"}
],
[ // Expanded fields
{"field": "format", "tooltip":"Default is HTML"},
{"field": "language", "tooltip":"Default is English"},
{"field": "trans_title", "label":"Translated Title"},
{"field": "archiveurl", "label":"Archive URL"},
{"field": "archivedate", "label":"Archive Date"},
{"field": "quote"},
{"field": "ref"}
]);
//TV Episode Template
new citeTemplate('cite episode', 'TV Episode',
[ // Basic fields
{"field": "url", "label":"URL"},
{"field": "title"},
{"field": "series"},
{"field": "date"},
{"field": "season"},
{"field": "number"},
{"field": "minutes"},
{"field": "accessdate", "label":"Access Date"}
],
[ // Expanded fields
{"field": "eposidelink", "label":"Episode Link", "tooltip":"Wikipedia article of episode"},
{"field": "serieslink", "label":"Series Link", "tooltip":"Wikipedia article of series"},
{"field": "credits", "tooltip":"Writers, directors, performers, producers, etc."},
{"field": "network", "tooltip":"Network the episode aired on"},
{"field": "station", "tooltip":"Call letters of the station"},
{"field": "city", "tooltip":"City of the local station (if any) or network"},
{"field": "airdate", "tooltip":"The date the episode aired"},
{"field": "began", "tooltip":"The date the first part of the episode aired"},
{"field": "ended", "tooltip":"The date the last part of the episode aired"},
{"field": "seriesno", "label":"Series No", "tooltip":"Season number if a UK program"},
{"field": "transcript", "tooltip":"IF the source is a transcript"},
{"field": "transcripturl", "label":"Transcript URL", "tooltip":"The URL for the transcript"},
{"field": "quote"},
{"field": "language", "tooltip":"Default is English"}
]);
});