Forum:Adding game tabs to articles

Whilst looking at another Wikia looking for some information I noticed they had separated Single Player and Multiplayer details via a tab system. I feel this made the page look quite tidy and I believe this could be incorporated into our pages. We could do this by adding game tabs to weapons and characters that appear in multiple games, such as the M4A1 and M1911. The page I saw this being utilised on was this. 06:20, October 22, 2012 (UTC)
 * I have made a sandbox of what this could look like here. 06:32, October 22, 2012 (UTC)

Discussion
Comment/Question - I like the idea, but the current version doesn't look good in my opinion, at least on mobile layout. And why does there have to be "action=render"? --MLGisNot4Me talk 06:39, October 22, 2012 (UTC)
 * I assume it has something to do with the tab coding. 06:50, October 22, 2012 (UTC)

I like the idea of doing different tabs for different games. Keeps it organised and is very sexy. Will we put game specific Trivia in each tab? 06:40, October 22, 2012 (UTC)
 * As shown in my example we will put all game-specfic info in its own tab. 06:50, October 22, 2012 (UTC)

Support - It really trims down the length of the page so that viewers can see information for their relevant game much faster. I'm sure there are people who have given up on finding info for MW3 because it was all the way at the bottom. But, PLEASE make sure you change the colour of the tab when you hover over it. Pale blue is definitely not right for the current theme! 08:42, October 22, 2012 (UTC)

Hi, im just a fan of the game and i contribute elsewhere and just came across this subject. The tabs used are known as DPL (Dynamic Page Listing) the functions use the <<<<tags. As questioned above by [-MLGisNot4Me] why dose it use the "action=render". Basically say you have the article which in question is the "M4A1" article you would create subpages ie M4A1/COD4, M4A1/MW2 & M4A1/MW3 so that when you use the "tabview" extension on the main article and click on any of the tabs it renders the article from the sub page to be viewed on the main article under the tab. Apart from the first tab all the other tabs haven't been loaded/downloaded to view yet so it renders them through when clicking the corresponding tabs. you can define which tab loads first by placing ||true on the tab to load first upon loading the page in the code. < (which is used in the example by "crazy sam above). The whole point from "tabview" functions is to make less data downloaded when viewing a page to make quicker load times for which the rest of the information has to be rendered.(which is fast) And helps organize your page layout much better. As per [-MLGisNot4Me] again. DPL is unlikely to work on a mobile but you will need to seek more information regarding that. I will support the request (if i can) as i know the use of DPL well and what is dose achieve for a wiki.   User:Woolva
 * Thanks for answering, and anyone with an account can support (or oppose or be neutral). --MLGisNot4Me talk 09:14, October 22, 2012 (UTC)
 * Just a heads-up, please don't create links that have no destination, it's a violation of COD:RED. 09:28, October 22, 2012 (UTC)

A set of manual links to each section might be worth adding as a redundancy for if the tabs fail to work in some unforeseen event (example being someone tries to load up the page with a broken browser) but I think this is a great idea.   This is the best sig I can make (talk to Grif)  10:58, October 22, 2012 (UTC)
 * If the tabs fail they provide manual links automatically in their place :)

Support - I really like this idea. It tidies the Article up, and even makes it extremely good (in my opinion, at least). 11:02, October 22, 2012 (UTC)

- Just saying, the tab system doesn't work on Monobook. 11:05, October 22, 2012 (UTC)
 * It does work, just not as visually well. Clicking the render options loads up that part of the page. Ergo clicking all the tabs will cause the page to look like it does now. 11:12, October 22, 2012 (UTC)
 * Looks like this if i click the tab.  11:21, October 22, 2012 (UTC)
 * I think something on your end is buggered. If I click a tab it just extends the page with no issue. And my page looks like this:  11:30, October 22, 2012 (UTC)
 * Hm, ok my pc is derping then. 11:35, October 22, 2012 (UTC)

Yes. - Looks pretty damn good. On mobile layout it's just links to separate pages, which aren't even formatted because of the "action=render", hence my previous pessimism. But on PC I must say it looks very neat and could be very handy too. --MLGisNot4Me talk 11:22, October 22, 2012 (UTC)