Jump to content

User:Guywan/Scripts/RefCruncher

From Wikipedia, the free encyclopedia



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

Ref Cruncher

[edit]

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

[edit]

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]]