#"Tab" Feature

5 messages · Page 1 of 1 (latest)

modest perch
#

I'm trying to import your "Tab" template to my wiki because I want to find a convenient way to navigate through certain information via tabs. But I tried importing it, and it came up saying that there was "no such module." I even the following code on my wiki's MediaWiki:Common.js page, but still to no avail:

mw.loader.load("https://cdn.jsdelivr.net/gh/lihaohong6/MirahezeDevScripts@07f9f958de4c4136f8b2f8e882b3afeebf58d4a5/dist/Tab/gadget-impl.js");

Is there any way to fix this?

Miraheze Developers Wiki
compact igloo
#

You need to import the dependencies as well, they're listed on the template page

modest perch
#

Well, I imported both of them, and also the "Module:Tab/styles.css", and I want to say it worked, 'cause I don't see any error messages this time:

compact igloo
#

Nice

#

I would assume it doesn't display anything in your screenshot as you're previewing (and I'm not sure if the gadget is invoked when that happens) and the template only displays something if it is included