User:Guywan/Scripts/RefCruncher

From WikiProjectMed
Jump to navigation Jump to search



User script
Reference Cruncher
Description'Collapses' references into small, unobtrusive tags.
Author(s)Guywan
StatusBeta
First releasedDecember 3, 2019; 4 years ago (2019-12-03)
Version23.03.20
UpdatedMarch 23, 2020; 4 years ago (2020-03-23)
Skin supportGreen tickY All skins supported.
SourceUser:Guywan/Scripts/RefCruncher.js

Ref Cruncher

Ref Cruncher allows you to 'crunch' references into small, unobtrusive tags.

The script is activated while in edit mode by pressing Ctrl+Alt+R.

This is an example.<ref>http://example.com</ref>
This is an example.<ref 0/>

Of course, this provides only an inkling as to the usefulness of Ref Cruncher. Some references are so large that it is hard to see where references end and prose begins. To 'uncrunch' the refs, press Ctrl+Alt+R again. Remember to do this before saving, as the script will not do this automatically.

Installation

To use this script, add the following to your common.js (or other):

mw.loader.load("/w/index.php?title=User:Guywan/Scripts/RefCruncher.js&action=raw&ctype=text/javascript"); // Backlink: [[User:Guywan/Scripts/RefCruncher.js]]