Template talk:Navbox

From Feed The Beast Wiki
Jump to: navigation, search

More than 20 groups[edit source]

We need to be able to have more than 20 groups. Someone that knows what they are doing *cough* Peter *cough* should deal with this. -- SatanicSantaFTB Wiki Admin 04:38, 20 December 2014 (UTC)

On the surface, that's pretty easy, you'd just add
 --><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}}}">
where the 21 would increase for each extra group you add. Not sure if they'd be performance side effects from just adding this though. Chocohead NagEditsStaff 11:23, 20 December 2014 (UTC)
test it on a sandbox then -- SatanicSantaFTB Wiki Admin 19:32, 20 December 2014 (UTC)