Template talk:V

From The Urban Dead Wiki
Jump to navigationJump to search

Example Usage:

{{V|Example User|Not Vandalism|None Taken}}

This Template is intended for inclusion on A/VB to simplify the larger number of templates currently inuse on that page to a single one. Please limit inclusions of this template as much as possible to prevent pages from hitting the inclusion limit due to over use and stick to the smaller {{{2}}} templates for Bot reports and the such.

V2.0

Cut out a number of things so this can now function as an actual template for inclusion purposes that way we can save some time on A/VB with filing new reports. Removed the substitution functionality as that's no way to run a template. Hopefully the relative ease of this template will help it see some use.--Karekmaps?! 05:52, 9 April 2011 (BST)

Isn't it best to advise substing this in the example provided above (and any sample code placed in A/VB comments), since if A/VB hits the inclusion limit, all of these will break? It'd be a huge mess. Aichon 06:00, 9 April 2011 (BST)
It's as likely either way actually as far as this template goes so the purpose here is simplicity. The header is currently a sticking point but I'll work on that more later. --Karekmaps?! 06:22, 9 April 2011 (BST)
Mmm...I'm not sure we're on the same wavelength, so let me restate for clarity. Since this entire template is included on A/VB, if A/VB reaches its inclusion limit, which it has several times in the last year, we'll suddenly lose access to all verdicts, links to vandal data, etc. for everyone who has had a case that month. Basically, it has little to do with the complexity of this template itself, and more to do with its usage, which should always be via subst and never as an inclusion, otherwise we face that issue. That's what I was saying. Aichon 07:51, 9 April 2011 (BST)
I understand perfectly well what you're saying. I was the one that started designing pages around here to prevent that issue, the reason you're running into it on A/VB is because of the use of the Bots page as a template and the inclusion of extraneous archives tables before the call. On top of that the goal here should be simplicity, ease of use, if inclusion size is so big of an issue that this one combined template call is the concern then I could simply make it the same as the other two templates but through code but you'd only lose something like 18kbs of inclusion per template which, actually, pretty close to all this would add per inclusion.--Karekmaps?! 08:14, 9 April 2011 (BST)
As discussed on IRC (but added here for the benefit of anyone else reading this), I wasn't worried about this template breaking A/VB. I was worried about this template breaking when A/VB breaks. That's all I was getting at, but thinking about it some more, when inclusions break, we already lose the vndl and verdict templates anyway, so ensuring that the header is intact when inclusions break would be the only issue. Aichon 08:38, 9 April 2011 (BST)
Yeah, I got ya now, hopefully what I just did should prevent that in the forseeable future. Other than that they'll pretty much need a templated sig policy or something. --Karekmaps?! 08:44, 9 April 2011 (BST)

dim red

If "Incomplete" and "None yet" are going to be the defaults for this inclusion of the Verdict template, can we program the verdict template to make those phrases into the dim red that the default verdict template has? Much better for spotting unconcluded cases when wrapping up the month etc. -- ϑanceϑanceevolution 15:42, 14 April 2011 (BST)

{{vndl|{{{1|Example User}}}}}{{Verdict|1={{{2|<span style="color:#C66">Incomplete</span>}}}|2={{{3|<span style="color:#C66">None yet</span>}}}}}
This does the trick, but I'll leave it to Karek since he's counting bytes right now. It's not an ideal fix, but it works. Aichon 18:28, 14 April 2011 (BST)
I ran with Aichon's suggestion about not transcluding A/VB/B onto A/VB so bytes are probably less of a problem now, though I can understand just removing (or in this case adding) one piece of the problem at a time to arrive at the root cause. ~Vsig.png 19:03, 14 April 2011
It's a reasonable compromise to add the color here I think. Although I'd honestly rather it was added as a ruling thing for completed cases at the inclusion of the template. That seems like the better choice to get intended functionality but, including it here isn't such a big deal. Go for it. --Karekmaps?! 04:33, 16 April 2011 (BST)
Incidentally, the code didn't work for you because of the equal sign in the span tag. You have to provide the variable name (e.g. "1=") to get around the issue, otherwise it doesn't recognize the variable. Aichon 18:09, 16 April 2011 (BST)
Heh, kinda a dumb thing for me to forget really. --Karekmaps 2.0?! 00:43, 17 April 2011 (BST)
No, for the reason Aichon said. A template that, in theory, would be included as much as this one should be code minimal when possible and the box makes the need for coloring simply a personal preference. --Karekmaps?! 21:45, 14 April 2011 (BST)
Shame really, it was good for visual scanning of the page,especially on uber long months. Perhaps replacing "None yet" with something more obviously different, like ONGOING ? --RosslessnessWant a Location Image? 21:50, 14 April 2011 (BST)
This discussion did actually remind me of something though. When I get home I'll be requesting {{vndl}} being modified in the same way I did {{bot}}. It's got needless code in it for no reason other than aesthetics. I'll give a list then(a few hours from now). --Karekmaps?! 21:54, 14 April 2011 (BST)
Why not? Ruining aesthetics and practicality so the 3 times in the last 3 years inclusion limits were breached can be avoided? Ty -- ϑanceϑanceevolution 06:38, 15 April 2011 (BST)
Because it's been more than that, it was broken just yesterday in large part because these templates have to compete with things like templated signatures and the such so every little bit here counts. It's not particularly ruined due to it, it never really got much benefit from it that isn't also provided by the big box surrounding the information anyway. --Karekmaps?! 06:41, 15 April 2011 (BST)
Well, that, and there are better ways to do it than coloring here or having the variables output Undefined. I'll test some stuff then put up new code for the sidebox's template too, see if I can get the red in there with less code. --Karekmaps?! 06:46, 15 April 2011 (BST)
Discussion about Verdict subtemplate continued on Verdict
Alright. Thanks for trying at least. For the record I think it was a great help is all. -- ϑanceϑanceevolution 09:56, 15 April 2011 (BST)

Rearranged

I rearranged the order of the two template calls here. First, {{verdict}} is called and then {{vndl}}. This way the entire thing takes less vertical space. ~Vapor 19:39, 18 April 2011