Template talk:Navbox

From Tardis Wiki, the free Doctor Who reference
Revision as of 14:13, 21 January 2021 by CIA391 (talk | contribs) (Added extra note that may assist fixing this issue.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Edits to this page

I've been reformatting the Alien templates to match the wiki's style, and I'm nearly complete. I'm unable to complete the K9 Series 1 aliens template due to it's 26 episodes and only 20 groups allowed in this template.

The following text needs to be added to the template (as an IP editor, I am not allowed to do this):

Under --Body--, under imageleft, and underneath the {{#if:{{{list20|}}}|+2}}}} part, this needs to be added word for word
-->{{#if:{{{list21|}}}|+2}}{{#if:{{{list22|}}}|+2}}{{#if:{{{list23|}}}|+2}}{{#if:{{{list24|}}}|+2}}}}><!--
 -->{{#if:{{{list25|}}}|+2}}{{#if:{{{list26|}}}|+2}}><!--
Then, still under --Body--, under image, and underneath, the {{#if:{{{list20|}}}|+2}}}}> part, this needs to be added too:
-->{{#if:{{{list21|}}}|+2}}{{#if:{{{list22|}}}|+2}}{{#if:{{{list23|}}}|+2}}{{#if:{{{list24|}}}|+2}}}}><!--
  -->{{#if:{{{list25|}}}|+2}}{{#if:{{{list26|}}}|+2}}><!--
(Yes, it's the same thing, twice). Further down, there's a --Remaining groups/lists-- section. These should be added:
-->{{#if:{{{list21|}}}|<!--
 --><tr style="height:2px"><td></td></tr><tr><!--
 -->{{#if:{{{group21|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group21style|}}}"><!--
 -->{{{group21}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list21style|}}}" <!--
 -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 --><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list21}}}</div></td></tr>}}<!--
-->{{#if:{{{list22|}}}|<!--
 --><tr style="height:2px"><td></td></tr><tr><!--
 -->{{#if:{{{group22|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group22style|}}}"><!--
 -->{{{group22}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list22style|}}}" <!--
 -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 --><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list22}}}</div></td></tr>}}<!--
-->{{#if:{{{list23|}}}|<!--
 --><tr style="height:2px"><td></td></tr><tr><!--
 -->{{#if:{{{group23|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group23style|}}}"><!--
 -->{{{group23}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list23style|}}}" <!--
 -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 --><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list23}}}</div></td></tr>}}<!--
-->{{#if:{{{list24|}}}|<!--
 --><tr style="height:2px"><td></td></tr><tr><!--
 -->{{#if:{{{group24|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group24style|}}}"><!--
 -->{{{group24}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list24style|}}}" <!--
 -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 --><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list24}}}</div></td></tr>}}<!--
-->{{#if:{{{list25|}}}|<!--
 --><tr style="height:2px"><td></td></tr><tr><!--
 -->{{#if:{{{group25|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group25style|}}}"><!--
 -->{{{group25}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list25style|}}}" <!--
 -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 --><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list25}}}</div></td></tr>}}<!--
-->{{#if:{{{list26|}}}|<!--
 --><tr style="height:2px"><td></td></tr><tr><!--
 -->{{#if:{{{group26|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group26style|}}}"><!--
 -->{{{group26}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 -->{{#if:{{{groupwidth|}}}||width:100%;}}padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list26style|}}}" <!--
 -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 --><div style="padding:{{{listpadding|0em 0.25em}}}">
{{{list26}}}</div></td></tr>}}<!--

All that needs to be done is to copy and paste all of these, and the template should work out just fine.

Below is my rough draft for the K9 template. When the above text is added, it'll show all 26 episodes, not just the first 20:

Thanks alot to anyone who can handle this for me!--99.29.140.149 05:40, April 4, 2011 (UTC)

The above probably won't be implemented until and unless we get another 20+ episode series. 20 groups is really more than enough for everything but this one exception.
czechout<staff />    00:34: Sat 02 Feb 2013


Links are hard to see when the page has not already been visited

Ok so here is a unfortunate issue. The templates design does not support "unvisited" pages very well.

Example here. Template used as example link here.

This is due to the fact the "blue" text matching 1 to 1 with the blue background of certain sections (Well lists but you get the just). This causes text to effectively vanish, the text is still clickable but if you cant read the text you likely wont click it. If the page has been visited already however the text is visible.

This issue is present in a grand majority of templates that use this template at its core so I thought it would be wise to bring it up here! - CIA391 14:09, 21 January 2021 (UTC)

Minor update: Just noted it "might" be just templates that are under "Template:Navbox with collapsible groups". But the root cause my go this far back. My bad for missing that. - CIA391 14:13, 21 January 2021 (UTC)