Template talk:Gr

From Guild Wars Wiki
Jump to: navigation, search

May I suggest using < span > instead of < font >? It's used in most skill articles now, and iirc LordBiro presented a good reason on a formatting talk page.. Doh, don't remember where. — Anja 18:19, 15 March 2007 (EDT)

Feel free to modify it to use more efficient or less trouble-prone coding. I just created it based on the formatting that was being added to some skills. As long as the output remains bold/green, everyone should be happy. --- Barek (talkcontribs) - 18:22, 15 March 2007 (EDT)
Changed it to span to meet the XHTML Specifications. Poke 18:27, 15 March 2007 (EDT)

template name?[edit]

So ... awkward question now that the template's already out ... should this be named "gr" or "green"? Using gr would be easier for experienced editors, while green is more understandable for newer users. I'm actually leaning towards renaming this as "green" before its use becomes too widespread. Opinions? --- Barek (talkcontribs) - 18:41, 15 March 2007 (EDT)

Template:Grrrr! For when you've changed umpteen million skill ranges after a skill ballance?  ;) --Rainith 18:45, 15 March 2007 (EDT)
I actually like the name :P It's so easy on the fingers ^^ But I don't mind using "green" either. — Anja 18:46, 15 March 2007 (EDT)
I guess that I can live with either. If no one comes along with a strong argument for changing it, we might as well leave the current name. If it's decided to be changed later, we can do a skill update crusade at some point (we'll be doing several anyway of those anyway as our formatting is tweaked). --- Barek (talkcontribs) - 18:50, 15 March 2007 (EDT)
Actually, I think a more appropriate name other than both gr or green should be used. The primary use of this template is not to make things green, it is to provide the range of a variable as part of a skill description. I have very little familiarity with wiki naming conventions, but something along the lines of 'range' would seem far more intuitive. (Albeit almost as generic.) I would prefer more informative template names to promote readability and make things easier for the, hopefully, large number of users that will be making a few additions here and there for us. Obviously, 'range' only makes a small improvement on this, but from other posts on the discussion page people also seem to want template identifiers that are easily typed? DeathFlame131 12:34, 4 April 2007 (EDT)
gr is great, just see it as "Green Range". :-) -- CoRrRan (CoRrRan / talk) 12:44, 4 April 2007 (EDT)

Gr + formula[edit]

Is it somehow possible to do something like this:

Users types in: {{gr|10|100}} and the template converts it using:

<span style="color: green; font-weight: bold;">{{{1|}}}..{{#expr:({{{1}}}+12*({{{2}}}-{{{1}}})/15) round 0}}..{{{2|}}}</span><noinclude>

to: 10..82..100

Again I'm lost as how to test this myself, since I don't know how I can test a template in my own userspace. -- CoRrRan (CoRrRan / talk) 08:45, 16 March 2007 (EDT)

Create the template, like in User:CoRrRan/Template, then you refer to it like this {{User:CoRrRan/Template|parameters and stuff...}} — Anja 09:08, 16 March 2007 (EDT)
Why do you use 0-12-15 when the progression is 0-12-16 ? As far as i know values for runes are +1-3 and one more for the head. So I change this to 16. 82.249.133.253 11:49, 5 April 2007 (EDT)Truthseeker
We use 0-12-15 for a number of reasons:
  • 0-15 are the values used in the linear calculation of the entire progression.
  • 12 is the highest possible value for secondary profession lines.
Also, have a look at: Guild_Wars_Wiki_talk:Formatting/Skills#Attribute_levels_in_skill_descriptions -- CoRrRan (CoRrRan / talk) 11:54, 5 April 2007 (EDT)