VisualEditor/Gadgets/Creating a custom command

This is an example for how to create a custom command. It will show up in the “Page options” menu and unlink all years (i.e. remove all links to pages with a numeric title, keeping the label). Currently it only works in the 2017 wikitext editor and only when text is selected.