40 275
ediciones
m (try this) |
m (+fn name) |
||
// 2018-08-22 auto-generate Cite:Arcanum pages for wob ref template
mw.hook('wikipage.editform').add(function Arcanum_autofill() {
// determine if this page is editing a Cite: Arcanum page
const edit_box = document.querySelector('#editform textarea');
// start fetching from Arcanum
fetch(url)
.then(function fetch_to_json(resp) { return resp.json() })
.then(function add_arcanum_entry_info_to_page(json) {
if (!json || !json.event) { return; }
// the arcanum-entry-info tag
|