User talk:WardPhoenix

From GodWiki
Jump to: navigation, search

This is a talk page. Maybe. Or not. Don't know. Leaving this just in case : GodWardPhoenix (U • C • T) 

This page has an /Archive

Old and/or inactive discussions have been moved to the archive subpage.

Leave a note for me there

Navbox formatting

Hey, {{Navbox pets}} is a great idea! How did we not think of that sooner?

I made a couple of changes to the code, just wanted to fill you in on them.

  1. Group names (especially if they're wide or nested) tend to be a problem on mobile, since they end up eating all of the available width of the table. I realized with {{Navbox JanuWiki 2019}} that it made more sense to use the |above=title parameter with {{Navbox subgroup}}, and create a separate row for the heading, instead of burning up width. So, I made the same change at {{Navbox pets}}. See what you think. (I'm questioning whether the "Normal" is even really necessary, or just implied...)

  2. You DEFINITELY want to use {{Navbox items}}, instead of {{Navbox list}}, when building infoboxes. {{Navbox list}} was Djonni's first version of the template, and we addressed a lot of its shortcomings with the replacement {{Navbox items}}. (The documentation unfortunately didn't all get updated to reflect that change.) Our plan, way back when, was to go through and replace all of the {{Navbox list}} transclusions with {{Navbox items}}, and then deprecate that template. Unfortunately that never got done either.

    The biggest advantage to {{Navbox items}} is that it'll autolink the parameters for you (unless you turn that off with |mode=nolink), so for example this:

    {{Navbox list| [[Ballpoint Penguin]] || [[Biowolf]] || [[Bipolar Bear]] | [[Crypt Creeper]] | [[Dreaded Gazebo]] | [[Dust Bunny]] | [[Firefox]] | [[Hyper Lynx]] | [[Lightsaber-Toothed Tiger]] | [[Ninja Tortoise]] | [[Rocky Raccoon]] | [[Santa Claws]] | [[Satan Claus]] | [[Significant Otter]] | [[Sun Dog]] | [[Talking Donkey]] | [[Terror Bull]] | [[Vogon Poet]] | }}
    becomes this:
    {{Navbox items| Ballpoint Penguin || Biowolf || Bipolar Bear | Crypt Creeper | Dreaded Gazebo | Dust Bunny | Firefox | Hyper Lynx | Lightsaber-Toothed Tiger | Ninja Tortoise | Rocky Raccoon | Santa Claws | Satan Claus | Significant Otter | Sun Dog | Talking Donkey | Terror Bull | Vogon Poet | }}

    The other advantage is that {{Navbox items}} by default allows the items to be word-wrapped, which (again, for mobile) tends to be better since it means less space is wasted. That can also be turned off if needed with |wrap=no.

Anyway, I pulled the code into an editor and converted all of the lists to {{Navbox items}} with a quick regexp to drop the square brackets. -- FeRDNYC (talk) 20:59, 20 April 2019 (UTC)

I also just stuck a note at the top of the {{Navbox}} and {{Navbox list}} documentation, explaining that {{Navbox items}} is the New Hotness. I realized we did a really bad job of documenting that, since the change happened during JanuWiki 2019. -- FeRDNYC (talk) 21:26, 20 April 2019 (UTC)
I'll be honest, I just pasted from the navbox beastie S624 made juste before, so that one probably need the same corrections (thanks by the way for them). And yes, I was like "Wait, there is no navbox for pets? What the hell?!" --WardPhoenix (talk) 00:01, 21 April 2019 (UTC)
Yeah, which is exactly how any reasonable person would expect most navboxes to be created (hell, it's how most of anything on the wiki is created), which is why it's so bad that we left most of them in the "wrong" format for so long. I've hopefully cleaned up at least most of them, now, so there are at least more examples of the right way than the "wrong" (or at least outdated) way. -- FeRDNYC (talk) 00:15, 21 April 2019 (UTC)
And I just copy/pasted from the documentation... Agreed on navbox pets, good one WardPhoenix. Maybe not the place for this, but how deep down the rabbit hole do we want to go? I've found 28 candidates for a navbox birds (from A to I only so far) & could put together a fairly well populated rodents and insects as well up to that point. -- S624 (talk) 18:35, 21 April 2019 (UTC)

It's as you will I'd say. There is already some unofficial navbox for monsters like cat, dogs and dragons. So nothing stops you from doing more of those navbox. -- WardPhoenix (talk) 22:21, 21 April 2019 (UTC)