Topic on Nonbinary Wiki:General discussion

Summary by MediaWiki default

Explaining how the new NBDb-based infoboxes work

MediaWiki default (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:

Style

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 [ca.wikipedia.org/wiki/Mò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! :)

MediaWiki default (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.

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?

MediaWiki default (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.

MediaWiki default (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.

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

MediaWiki default (talkcontribs)

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