Rusty Hearts Wiki
Advertisement
Forums: Index > Watercooler > Hidden Categories



What're your opinions on using hidden categories for templates such as Template:Item? To clarify, hidden categories allow categorising of pages without the author having to add Categories at the bottom. This is done through a branching (#if:condition_true) in the relevant template ({{Item}}) such that depending on the parameter ({{Item|type = foo}}), it will categorise the page into the corresponding category (Category:Items/Foo). Of course, this implies that pages using the template will become less cluttered but the template itself will become more complex. --BryghtShadow talk works 18:33, November 25, 2011 (UTC)

I was actually wondering why we hadn't done it yet as well, so good point on raising the issue. Both Template:Item, Template:NPC, Template:Quest, Template:Dungeon (When created) should all be using it. It would be put in <includeonly></includeonly> tags. As for conditional categorizing, certainly. Category:Item would be added by default for the item template. Category:Item/Rare could be a conditional addition. If you're familiar enough with wikis, I'd encourage you to give it a start.  - Zurgat talk / cont  18:39, November 25, 2011 (UTC)
Cool. As a safeguard, I'll have a go at it via the Sandbox when I have the chance to. --BryghtShadow talk works 19:23, November 25, 2011 (UTC)
Edit: Template:NPC is almost ready. Hidden categories have been implemented, and can be seen in action at the RH:Sandbox. Once missing image parameter is tweaked (rather than exposing template bones, it should bind to a default name like NPCName.png and provide uploading links if it doesn't exist) --BryghtShadow talk works 21:12, November 25, 2011 (UTC)
Edit (Status update): The TL looks ready to go. I've made the image width parameter fixed, since that didn't seem relevant for an NPC info -- It would be like setting font size, and that's why we have Templates. The image parameter I've set to optional (and it defaults to NPCname.png or NPCpagename.png), but I can always fix it to be mandatory, in the spirit of the Template:NPC -- --BryghtShadow talk works 00:43, November 26, 2011 (UTC)
Advertisement