View source for MediaWiki:Gadget-switch-infobox.js
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
"use strict";
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
/* switch infobox code for infoboxes
* contains switching code for both:
* * originalInfoboxes:
* older infobox switching, such as [[Template:Infobox Bonuses]]
* which works my generating complete infoboxes for each version
* * moduleInfoboxes:
* newer switching, as implemented by [[Module:Infobox]]
* which generates one infobox and a resources pool for switching
* * synced switches
* as generated by [[Module:Synced switch]] and its template
*
* The script also facilitates synchronising infoboxes, so that if a button of one is pressed
* and another switchfobox on the same page also has that button, it will 'press' itself
* This only activates if there are matching version parameters in the infoboxes (i.e. the button text is the same)
* - thus it works best if the version parameters are all identical
*
* TODO: OOUI? (probably not, its a little clunky and large for this. It'd need so much styling it isn't worthwhile)
000
1:0
Templates used on this page:
Return to MediaWiki:Gadget-switch-infobox.js.