Module:Switcher: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

10 December 2025

  • curprev 12:4612:46, 10 December 2025 Ethan talk contribs 548 bytes +548 Created page with "local p = {} function p.main(frame) local args = frame:getParent().args local root = mw.html.create('div'):addClass('switcher-container') local default = (tonumber(args.default) or 0) * 2 - 1 for i,v in ipairs(args) do if i % 2 == 1 then local span = root :tag('div') :wikitext(args[i]) :tag('span') :addClass('switcher-label') :css('display', 'none') :wikitext(mw.text.trim(args[i + 1] or '')) if i == default then span:attr(..."