User:V111P/js/WebRef: Difference between revisions

Content deleted Content added
use the "Compact & Copy" button
m top: minor clarifications
Line 1:
[[File:WebRef citation tool.png|thumb|A text box with the Cite Web template is displayed on top of the page after activating the bookmarklet.]]
 
'''WebRef''' is a [[scripting language|script]] automating the filling of the {{template|cite web}} template. You runuse the script on the page you want to cite. A form will be displayed on top of that page with a text box containing the prefilled cite template. You should review the prefilled values and fill the missing ones and then press the "Compact & Copy" button (except for [[WP:LDR]] cites).
 
Not all the information can be autofilled on all sites, however it's easy to just drag or copy and paste the information from the page when the form with the cite template is on the same page.
Line 12:
</div>
 
To test the script, using a desktop/laptop computer, you can just execute [[User:V111P/js/webRef.js|its source code]] (or the code above, after removing the <code>javascript:</code> part) in your browser's JavaScript console (which in most browsers can be opened by pressing the F12 key). Make sure you are on a page with (only one) article on it, for example on a news site.