Template talk:Verdict: Difference between revisions
The Rooster (talk | contribs) (New page: ==Usage== Just fill the following template call: <pre>{{verdict|1|2}}</pre> Where '''1''' is the verdict given, and '''2''' is the action taken. If no values are passed to 1 or 2, it au...) |
(Modificatins for Verdict) |
||
Line 29: | Line 29: | ||
<pre>{{Verdict|Not Vandalism|Warning Retracted}}</pre> | <pre>{{Verdict|Not Vandalism|Warning Retracted}}</pre> | ||
{{Verdict|Not Vandalism|Warning Retracted}} | {{Verdict|Not Vandalism|Warning Retracted}} | ||
== Modificatins for Verdict == | |||
So, because of some tests I decided to run this template's new code through my ProjDev pages, what I ended up with was [[User:Karek/ProjDev/PD16AVBT01PT01|this]]. In two edits I managed to remove 394 of 554 bytes from the inclusion size. About a third of that came from documentation with 259 coming from extraneous code. Visually it's roughly the same without red text and with backgrounds behind the verdict texts(due to using precreated classes to save space). The inclusion limit for A/VB is .3 MB. So, basically, if we make my modifications we'll be opening up one hell of a lot of space from this template. --<small>[[User:Karek#K|Karek]]<sup><font face="Monotype Corsiva">[[User:Karek/ProjDev/OmegaMap|maps?!]]</font></sup></small> 08:17, 15 April 2011 (BST) | |||
===Color=== | |||
So, for those who were rooting for default colors. Just wanted to clarify why I left them out here, partly it's inclusion size, partly it's any method of doing it would add yet another template to the chain here and usually a fairly large block of one. In this case it would have to be Switch or something like the span default used before around the piped variable which, if that were to be included, needs to be done in {{tl|V}} due to the necessity of that to assign default values there for default values to fill. --<small>[[User:Karek#K|Karek]]<sup><font face="Monotype Corsiva">[[User:Karek/ProjDev/OmegaMap|maps?!]]</font></sup></small> 08:17, 15 April 2011 (BST) |
Revision as of 07:17, 15 April 2011
Usage
Just fill the following template call:
{{verdict|1|2}}
Where 1 is the verdict given, and 2 is the action taken. If no values are passed to 1 or 2, it automatically fills them as undefined.
Entering "Not Vandalism" for 1 will automatically fill in 2 with "None Required" unless 2 is specified.
Example
{{Verdict}}
Verdict | {{{1}}} |
---|---|
Action taken | {{{2}}} |
{{Verdict|Awaiting Clarification}}
Verdict | Awaiting Clarification |
---|---|
Action taken | {{{2}}} |
{{Verdict|Vandalism|Warned}}
Verdict | Vandalism |
---|---|
Action taken | Warned |
{{Verdict|Not Vandalism}}
Verdict | Not Vandalism |
---|---|
Action taken | {{{2}}} |
{{Verdict|Not Vandalism|Warning Retracted}}
Verdict | Not Vandalism |
---|---|
Action taken | Warning Retracted |
Modificatins for Verdict
So, because of some tests I decided to run this template's new code through my ProjDev pages, what I ended up with was this. In two edits I managed to remove 394 of 554 bytes from the inclusion size. About a third of that came from documentation with 259 coming from extraneous code. Visually it's roughly the same without red text and with backgrounds behind the verdict texts(due to using precreated classes to save space). The inclusion limit for A/VB is .3 MB. So, basically, if we make my modifications we'll be opening up one hell of a lot of space from this template. --Karekmaps?! 08:17, 15 April 2011 (BST)
Color
So, for those who were rooting for default colors. Just wanted to clarify why I left them out here, partly it's inclusion size, partly it's any method of doing it would add yet another template to the chain here and usually a fairly large block of one. In this case it would have to be Switch or something like the span default used before around the piped variable which, if that were to be included, needs to be done in {{V}} due to the necessity of that to assign default values there for default values to fill. --Karekmaps?! 08:17, 15 April 2011 (BST)