Topic on Nonbinary Wiki:General discussion

Jump to navigation Jump to search
Summary by Ondo

Explaining how the new NBDb-based infoboxes work

Ondo (talkcontribs)

Hi! A while ago we renovated some of the templates, now I'm working on an infobox renovation. We currently have two infoboxes: {{infobox identity}} and {{infobox person}}. This time, the renovation has three parts:


I've changed the style of the infobox to a cleaner one, similar to the last template renovation. You can see an example of the new {{infobox identity}} concept in User:Ondo/Sandbox.

The change is basically for consistency with the general wiki style (main page boxes, new templates) and it also adds more contrast to the infobox contents (black on white, instead of black on yellow).

Infobox building

With the Module:infobox and the generic template {{infobox}} (not to be used directly on articles) building infoboxes is now even easier. The code for the sandbox example is in User:Ondo/tests.

This system is flexible enough to create any kind of infobox (it's the system used by Wikipedia) in a very straight-forward way.

NBDb integration

If you edit User:Ondo/Sandbox, you will notice that the template has no parameters, and yet there's a lot of information when you view it! That's because the template connects to the NBDb, our sister project, and grabs the data from there. In particular, this page is taking the data from this test item (which will be deleted when/if this proposal is approved). Since it's a test item, feel free to mess around with it to see how the infobox contents change!

The advantage of that is that it will be easier to update information (for example, when the gender census results come out), since everything is unified in a single page, It might even be possible to do it with a bot, since the NBDb is already structured in a machine-friendly way.

This integration uses Module:NBDb, by the way, which is a copy of Catalan Wikipedia's [òdul:Wikidades Wikidades module].

Also, note that I'm still checking that all NBDb identity items are complete so that the transition is seamingless, but it should be ready by the end of June (and manually-inputted parameters have priority over NBDb statements, so it shouldn't be a problem anyway).

Whew, sorry for the long post. But what do you think about these three changes? Let me know! :)

Ondo (talkcontribs)

Quick update: {{infobox identity}} is now updated with the new system. Next step is the person infobox, but it will be a while since I'm able to do that.

TXJ (talkcontribs)

So if I'm understanding right, we have to edit NNDB to get information in the infoboxes now? On another note, the infoboxes now appear above the article instead of to the right. Can that be fixed?

Ondo (talkcontribs)

@TXJ for the identity infoboxes, yes. A quick way to get to the linked NBDb page is using the Edit links option in the In other languages section (sidebar). New identities created here need to have an item created on the NBDb too, but it's a quick process (and I generally do it when I see a new one popping up in the recent changes).

The infoboxes still appear on the right side from my end, so that's weird. Can you send a screenshot of exactly how you see an article like nonbinary? You can upload it here on the wiki if you want.

TXJ (talkcontribs)
Ondo (talkcontribs)

Apparently I forgot to update the CSS for the infobox, my bad! It should be fixed now. Clear the browser cache with Ctrl+Shift+R on Chrome if you don't see it fixed.

TXJ (talkcontribs)

It's fixed now, except on at least one page (birl) the infobox doesn't show up.

Ondo (talkcontribs)

For some reason I deleted the old infobox instead of replacing it with the new. Fixed!