Feed The Beast Wiki
Advertisement

Remember how we added a dis= parameter to {{Gc}} a couple months back? Can/should we do that for {{NI}} as well? It would make a lot of navbox edits and NI calls simpler. PaladinAHOne Staff (talk) 23:03, 27 May 2015 (UTC)

I was thinking about making a separate template called {{NID}}, would be more compact. -Xbony2 (talk) 23:54, 27 May 2015 (UTC)
Wouldn't that just make the problem worse, as suddenly {{NI|Stone|mod=Mod|Stone (Mod)|Stone}} could also be {{NI|Stone|mod=Mod|dis=true}}, and there'd be no standard across the wiki? Also, it would be reversed to {{Gc}}'s dis as otherwise you'd have to change pretty much every navbox in some way. Chocohead NagEditsStaff 00:31, 28 May 2015 (UTC)
Inconsistency is not the problem I'm looking at; the problem I'm looking at is the unwieldy length of {{NI|Stone|mod=Mod|Stone (Mod)|Stone}} as opposed to {{NI|Stone|mod=Mod|dis=true}}. And as far as inconsistency, the long way still works, this way would just make the navbox calls more compact, more readable, and easier and quicker to edit when we need to add disambiguation pages. As for reversing {{Gc}}'s dis=, why was dis= set to default True anyway? It winds up manually being set to False most of the time. PaladinAHOne Staff (talk) 01:39, 29 May 2015 (UTC)
It was set to true as that was the whole point of the |mod parameter. As mods overlapped names, it would automatically disambiguate them, otherwise there's only be one mod with that icon name, so it wouldn't disambiguate. It'll be messed up no matter what now, because {{Gc}} has gone one way, and {{NI}} will end up partly going the other. Doubt |dis would actually improve performance for the wiki to process it anyway. Chocohead NagEditsStaff 02:17, 29 May 2015 (UTC)
Well hey I made a broken template Template:Navbox item/disambiguation -Xbony2 (talk) 11:51, 29 May 2015 (UTC)
Well hey I fixed it :P Chocohead NagEditsStaff 12:55, 29 May 2015 (UTC)
Reworded it a little. Also turned xbony's earlier {{NID}} into a {{Tl|NID}} because it had exploded into a script error. PaladinAHOne Staff (talk) 18:56, 29 May 2015 (UTC)

Speed

I made a page with 250 IC2 Generator Navbox Items, and timed the different template's speeds...

{{NI}}

CPU time usage 1.528 seconds
Real time usage 1.988 seconds

{{NID}}

CPU time usage 2.208 seconds
Real time usage 3.074 seconds

{{Navbox item/disambiguation/Slow}}

CPU time usage 1.952 seconds
Real time usage 2.801 seconds

{{NIA}} (Forgetting to set links)

CPU time usage 1.680 seconds
Real time usage 2.441 seconds

{{NIA}} (Used properly)

CPU time usage 1.736 seconds
Real time usage 2.494 seconds

This is why I don't like NID on the IC2 Navbox. On a small one, it doesn't make that much of a difference. On a massive one like the IC2 one it's adding a 1/5 (often more if the server is slow anyway) onto the load times. Chocohead NagEditsStaff 22:30, 3 June 2015 (UTC)


EDIT: I did change NID/Slow to avoid calling Lua, and it had a massive effect on the speed:
CPU time usage 1.632 seconds
Real time usage 2.145 seconds

So what's the plan, convert all {{NID}} calls to {{NID/Slow}} calls? Or just convert {{NID}} to {{NID/Slow}}? PaladinAHOne Staff (talk) 23:39, 3 June 2015 (UTC)
I vote the second. -Xbony2 (talk) 23:48, 3 June 2015 (UTC)
Advertisement