Forum:Subpage tabs: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "{{Forumheader|The Panopticon}} <!-- Please put your content under this line. Be sure to sign your edits with four tildes ~~~~ --> == Opening post == With the conclusion of Forum:Temporary forums/Subpages 2.0, subpages are now allowed to exist on this wiki and, while they are still a little thin on the ground, I expect that more and more will be created as time progresses. A problem, however, is that there is currently no easy way to navigate between subpages. {{tlx|...")
 
No edit summary
Line 18: Line 18:
The overall result is something like this:
The overall result is something like this:
<div class="tech" style="height:800px;">
<div class="tech" style="height:800px;">
{{/example}}
{{Subpage tabs/example}}
</div>
</div>



Revision as of 21:32, 3 June 2023

IndexThe Panopticon → Subpage tabs
Spoilers are strongly policed here.
If this thread's title doesn't specify it's spoilery, don't bring any up.

Opening post

With the conclusion of Forum:Temporary forums/Subpages 2.0, subpages are now allowed to exist on this wiki and, while they are still a little thin on the ground, I expect that more and more will be created as time progresses. A problem, however, is that there is currently no easy way to navigate between subpages. {{Main}} and {{GalleryLink}} both work well enough, creating links in the relevant sections, but I feel that it would be nicer to have some centralised way to navigate between these pages, and for that I suggest some form of tab system. This is pretty common across other wikis. Starting with a well-known example, Wookieepedia uses subpages to separate "canon" content from "legends" content and uses a basic tab system to switch between them, for example on w:c:Wookieepedia:Luke Skywalker. A better example I know of is the RWBY Wiki. See w:c:RWBY:Ruby Rose for an example. In general, tabs are a common and easy to understand system for navigation and I feel work well with subpages.

Therefore, I have put together {{subpage tabs}}. It looks like this:

It automatically includes any of the "default" subpages (any approved for general use on the wiki) that exist for the page it is used on (or, in this case, the page specified). Additional, custom tabs can also be specified:

It also displays on mobile. It doesn't look great, but it functions and could be updated to look better there later on.

One problem that this introduces is that it adds to the general clutter that currently exists at the top of pages: {{cleanup}}, {{update}}, {{rename}}, {{speedy}}, {{delete}}, {{conjecture}}, {{NCMaterial}} and so on. I have a potential solution for this as well in the form of {{pullout}}. The idea is that templates that only matter to editors can be placed inside this template, creating a box that is hidden by default but can be "pulled out" from the right of the page. See the example below and to the right.

<>
Any text can go here, but the main intention is that templates like {{cleanup}} go here

I feel that this is an acceptable compromise because, lets be honest, not many readers actually care about the conclusion of Thread:264489 or similar things that are noted in these templates just for editors. These templates are just more clutter that they have to scroll past to get to the content that they want to read. Tabs are, in my opion, a much more useful thing to place there instead.

The overall result is something like this:

Thoughts? Bongo50 21:31, 3 June 2023 (UTC)

Discussion