Template talk:Div

From PinataIsland.info, the Viva Piñata wiki
Jump to: navigation, search

Discussion regarding revision 18757

This is turning into a maintenance nightmare. If you can't decide whether it should be svp or svpc or vpc or vpcs, then perhaps it's not ready for live use.

The objective isn't to give you or me or other editors three or four different shorthands for the exact same div. We're already ending up with different live articles that use different abbreviations, depending on what the favorite spelling was at the time, and that's just not reasonable. While backward compatibility might be reasonable for 1.x to 2.x, after a template was in live use for an extended time, I don't see the point of supporting the earlier string ideas that transpired in the last day or so, from 0.1x to 0.4x.

Perhaps a good place to start is to look at the different class names in MediaWiki:Common.css. The object-game-qualifier style you see there isn't just a CSS naming convention, but one that is meant to be consistent across the wiki too, such as with templates and images:

  • Template:Species-TroubleInParadise-JustForFun
  • Image:Quackberry-TroubleInParadise-Wildcard-1.jpg

Since it appears that you're trying to compress classes into a 3-4 character string, you might want to look at some questions to consider:

  • Are your parameter values consistent? In other words, do all "article" strings start with a... and all "species" arguments start with s...?
  • Are you using a robust name for the game portion of the string? As suggested elsewhere, can your current scheme support VP3 JfF, down the road?
  • How do you handle collisions in your shorthand? Suppose we added a wildcard object in addition to the weed object. If wtip means "weed_tip_content", what are you using for "wildcard_tip_content?"

I was willing to adopt this and give it a shot, but it looks like this is still in development, and you haven't finalized your values yet. It would be helpful, please, if you'd clean up any other live articles that have various iterations of svp or whatever, and switch them back to the original div markup, for now. In the future, let's try things like this out on Mousezilla or some other sandbox, first, until it's ready for adoption.

I'm going to catch up with whatever else is going on, then get back to my plant articles, and just use our longer conventional names. Once you feel this is robust and stable, Jim or I would be happy to take another look at this and see if it's ready for actual use. --FeralKitty (talk) 10:45, 22 August 2008 (UTC)

I was thinking about this whole thing on the way into work and I think it's best if we just use the actual div code in the articles. They will be fairly stable and stay in location, and then the article won't require a template call. I've been bred to "not worry about performance" on en.wiki and performance is clearly something we need to be concerned about here. This template can still be used but it should be subst'ed. –xenocidic (talk) 12:32, 22 August 2008 (UTC)
Ok. Why don't you go ahead and roll its use back out of wherever it's used then, please. I do think the articles looked "neater," and it was a good idea to try. Thanks for your work on it. --FeralKitty (talk) 12:47, 22 August 2008 (UTC)
It's completely deprecated. I think that it might have utility as a subst'able template but for some reason it was subst'ing the entire code rather than just the code that matched the switch. Perhaps template subpages like div/vpc-article div/vpc-species, then when someone needed the div code they could just subst the appropriate subtemplate. but then we'll have an awful lot of templates. –xenocidic (talk) 13:06, 22 August 2008 (UTC)


divcodes

Can you look at User:Xenocidic#Div codes for tabs/formatting and tell me if I'm missing anything? Is there a jff article div code? –xenocidic (talk) 13:25, 22 August 2008 (UTC) Never mind - I'll pull the necessary codes from MediaWiki:Common.css
Sure, I can glance at it in a bit, but I need to get back to the plants stuff and make some more progress first. Those articles need to get done by today, so most of my attention needs to be there. --FeralKitty (talk) 13:53, 22 August 2008 (UTC)
Ok. I've re-purposed div, by the way. It should be more useful and less resource intensive - instead of a switch it just accepts the class name and puts it in. defaults to a TIP article so you can just use subst:div to create the tab for a TIP article. As it is now, it will only create tabs though, perhaps it should be renamed to "tab". –xenocidic (talk) 14:03, 22 August 2008 (UTC)
Ok, but I don't really understand why we need it. We don't tend to create a lot of articles, and I know the ones I create I just copy-and-paste from a similar article, or the "blank" species and plant templates. It may be a neat thing, but it seems like a lot of effort working on it, for little reward. Got to get back to the plants. --FeralKitty (talk) 14:13, 22 August 2008 (UTC)
True enough. I mainly plan to use it to convert articles that already exist that need tabs. –xenocidic (talk) 14:47, 22 August 2008 (UTC)

div & divclear

OK, the new and improved {{div}} & {{divclear}} (divclear was {{clear}}</div></div>) should help people create tabs on the fly a lot easier and are inline with the css names. divclear will clear all text and close a tab. I suppose it can be subst'ed, do you think it will be heavy on the processor if we leave it transcluded? how about the new div, which passes the paramaters directly rather than through a switch? –xenocidic (talk) 01:04, 23 August 2008 (UTC)

Consider using this for tabbing

I still think we should consider using this (new far simpler version) in its transcluded form to create tabs. The template would be renamed to "tab" and a new template called "tab close" will close the tabs. Using this template will also future proof things in case we need to change the way tabs are done and it's also much more intuitive for people than having to learn the div markup with the css classes. –xenocidic (talk) 16:23, 25 August 2008 (UTC)

We need to put this on the shelf. I am not Seedos. Please don't repeatedly hit me over the head with your div/divclear.
Did you read Jim's review of Pocket Paradise? We have some shop/NPC differences to work on, and that might be a good priority for today. --FeralKitty (talk) 16:29, 25 August 2008 (UTC)
hehe. as I said elsewhere, feel free to not respond to my thoughts right away, especially when you've got stuff to be doing. I'll go check that out. also, to follow up your question from the other day, I didn't realize DS'es were so cheap, I might try to pick a used one up for VPP. –xenocidic (talk) 16:35, 25 August 2008 (UTC)