Thread:Arcaedia/@comment-30128802-20200906030511/@comment-30128802-20200916020813

Great work in bringing this over! I've tweaked the template code so that the number of tabs and the tab links are customizable (with up to 6 total tabs). I've also modified the code to show the tabs within the editor (whereas on the Witcher wiki, you cannot see the tabs when you press "edit").

The demo is located at User:Aeratus/Sandbox/Test

The modified template used in the above demo is "User:Aeratus/Sandbox/Subpage Tabs"

The original the template code from the Witcher wiki (link ) uses the "ifeq:" function to lock down the types of subpages that you can have. Currently, the only possible tabs that are allowed on the Witcher wiki are Main, Netflix, Store, and Quotes. I'm not familiar with what's going on in the Witcher wiki, but maybe they have it like that to prevent vandalism (I suppose Mechemik would know). Do you think we should have fixed or customizable tabs?

In any case, one problem with "ifeq:" is that the text editor will not render the tabs within the editor. So I've changed it to "if:", which allows the editor to render the tabs within the editor interface.

Another thing that I noticed is that the "span" tags on  the Witcher template don't seem to be stable. Whenever I try to use the "span" tab, the editor removed the closing "span." So I've changed  the "span" to "div." The purpose of the "span" (with the CSS for display:none) seems to be to control the page's appearance in the mobile layout.

I agree that we should make the tabs visually suited for our wiki. I can help with the CSS  design for the tab interface. We'll probably need to test on an actual page, since the "user" namespace doesn't use the mobile css layout, and "BASEPAGENAME" ignores the "user" namespace.

Here's another wiki that uses tabs, but with a CSS design that looks different from what's on the Witcher wiki. The tabs on the Mortal Kombat wiki are customizable, rather than fixed.