1. From your wiki, use Contact staff to request the Gadgets extension be enabled for your wiki. 2. Follow installation instructions at Commons 3. Add the following code to Mediawiki:Common.js: function addLoadEvent(fn) { if (window.addEventListener) addEventListener("load", fn, false); else if (window.attachEvent) attachEvent("onload", fn); } 4. MediaWiki:LAPI.js assumes commons' image server. Change the following line for FANDOM: From if (src.search (new RegExp ('^http://upload.wikimedia.org/.*' + title.replace (/ /g, '_').replace (/(\.svg)$/i, '$1.png').escapeRE () + '$')) == 0) To if (src.search (new RegExp ('^http://images\\d.wikia.nocookie.net.*' + title.replace (/ /g, '_').replace (/(\.svg)$/i, '$1.png').escapeRE () + '$')) == 0)
Attributes | Values |
---|
rdfs:label
| |
rdfs:comment
| - 1. From your wiki, use Contact staff to request the Gadgets extension be enabled for your wiki. 2. Follow installation instructions at Commons 3. Add the following code to Mediawiki:Common.js: function addLoadEvent(fn) { if (window.addEventListener) addEventListener("load", fn, false); else if (window.attachEvent) attachEvent("onload", fn); } 4. MediaWiki:LAPI.js assumes commons' image server. Change the following line for FANDOM: From if (src.search (new RegExp ('^http://upload.wikimedia.org/.*' + title.replace (/ /g, '_').replace (/(\.svg)$/i, '$1.png').escapeRE () + '$')) == 0) To if (src.search (new RegExp ('^http://images\\d.wikia.nocookie.net.*' + title.replace (/ /g, '_').replace (/(\.svg)$/i, '$1.png').escapeRE () + '$')) == 0)
|
dcterms:subject
| |
abstract
| - 1. From your wiki, use Contact staff to request the Gadgets extension be enabled for your wiki. 2. Follow installation instructions at Commons 3. Add the following code to Mediawiki:Common.js: function addLoadEvent(fn) { if (window.addEventListener) addEventListener("load", fn, false); else if (window.attachEvent) attachEvent("onload", fn); } 4. MediaWiki:LAPI.js assumes commons' image server. Change the following line for FANDOM: From if (src.search (new RegExp ('^http://upload.wikimedia.org/.*' + title.replace (/ /g, '_').replace (/(\.svg)$/i, '$1.png').escapeRE () + '$')) == 0) To if (src.search (new RegExp ('^http://images\\d.wikia.nocookie.net.*' + title.replace (/ /g, '_').replace (/(\.svg)$/i, '$1.png').escapeRE () + '$')) == 0) For non wiki users, step 2 may not be necessary if your wiki already has this function. For step 3, note that regex backslashes must be escaped in literal strings. (\\d to get a \d).
|