User talk:Mattamue

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search

Craft navbox lists format

Hi,

Seeing that you might keep updating the crafting information of items, may I suggest you a different way to display long lists of tools, components, etc?

To keep it consistent with the rest of the navbox lists it'd be better if you use dots to separate the items of a list instead of commas.

There's a template now in the wiki that takes care of the "drawing" of the dot correctly: Template:md. To use it you just have to put this {{md}} at the start of each item (except the first one). To increase readability and make the updating process easier it's also good to separate each item with empty comments.

For an example of what I mean check the wiki code of the stone hammer page.

The empty comments are there to make sure the list will be displayed correctly. By using the comments code that way, the wiki thinks you input all the items in a single line, instead of multiple lines. Otherwise the last line height uses to be higher than normal.

Anyway, if you feel like this is too much trouble you can keep using commas. But I'd appreciate if you at least consider it.

--Kenoxite (talk) 00:53, 9 October 2013 (PDT)

Yes, thank you for the guidance. Happy to help create a similar look. --Mattamue (talk) 07:54, 10 October 2013 (PDT)
Great. You might have noticed that I've kept tweaking template:craft. Now it allows you so set every different tool and component separately. So far it allows up to 6 of each, but it's easy to expand it to whatever the amount of needed tools or comps are. For a recent example check 9mm. --Kenoxite (talk) 08:08, 10 October 2013 (PDT)
I've noticed that the crafting window starts minimized on some pages and you have to click [show] to make it show up - is that on purpose? --Mattamue (talk) 08:10, 10 October 2013 (PDT)
Yes, it autocollapses now when there's more than one navbox present, to keep the page height more or less under control. It can be reverted to always show it by adding a single line of code to the template, anyway. --Kenoxite (talk) 08:12, 10 October 2013 (PDT)
For me the list of ammunition is a browsing tool, but crafting information is more relevant to the item like its stats in the infobox on the right. What do you think about making the craft box the open one and closing the others, like ammunition? --Mattamue (talk) 08:43, 10 October 2013 (PDT)
Actually, now that we're both starting to reformat how the crafting is displayed the height of that navbox will become "soon" a non-issue. I guess I'll just make it uncollapsed now, anyway, as I don't quite like the idea of collapsing the "section" navboxes. Should be done when you read this. --Kenoxite (talk) 09:00, 10 October 2013 (PDT)


As a matter of fact, all this discussion has got me thinking about how all the crafting data in this wiki works. I didn't want to get to this partly because I was waiting for BMacZero's bot, and partly because I'm currently busy updating other sections. But I guess it'd be better to start with this as soon as possible. The idea here is to use a system similar to the one I'm using to integrate item pages into item lists, without having to enter the data twice. The crafting data of an item would be in its own page, and it would then be called either from the main crafting page or the item page simply by embedding it (say {{:crafting/longbow}}, {{:crafting/<whatever>}}). That would allow both to implement the crafting data in the item pages and updating the data itself way easily than now, as you'd only need to update the crafting page for that given item. I guess I'll start to work on this tomorrow (heck, I'm tempted to start now) and halt my update of the ammo area. I'll keep you updated. --Kenoxite (talk) 09:20, 10 October 2013 (PDT)

Okay, I will stop for now. Let me know what you would like to do! --Mattamue (talk) 09:23, 10 October 2013 (PDT)
Looking good so far. Does this mean that the wiki will be able to built its own component in, tool in and category lists? --Mattamue (talk) 05:49, 11 October 2013 (PDT)
Thanks. No, it's not that smart. All I'm doing is to tell the wiki to use one template or another depending on the page it's embedded in. No semantic database stuff here. The parameters you mention have to be entered manually, so you have to do a quick search in your text editor of choice for the instances where it's used as comp or tool. BTW, I can't go on for today. I stopped at grenade (I always update from top to bottom, in this case from recipes.json). Do you think you can go on your own for a while without instructions? If no, I'll try to create a cheat sheet in the following hours. We also should probably split the workload, if you're willing to help me on this. Say, me odd categories and you even, or something like that. --Kenoxite (talk) 06:15, 11 October 2013 (PDT)
I think I can copy the stuff on the crafting pages, but I am not sure how to add them back to the item page as a template. --Mattamue (talk) 06:17, 11 October 2013 (PDT)
OK, I'll see if I can squeeze some time and post somewhere instructions about how to proceed. It'll be in about a couple of hours, I guess. --Kenoxite (talk) 06:24, 11 October 2013 (PDT)