WoWWiki
Advertisement

Talk about my template.

Needs a failsafe for orange

Some items, such as Heavy Wool Bandage, start at yellow, so I would recommend including a failsafe. I am not sure if there are recipes that skip other colors, such as going directly from orange to green or yellow to grey. The template would need to take this into consideration with some decision logic. Right now, this is your first line.

<center><span style="color:orange;">{{{1}}}</span></center>

Change it to this:

<center><span style="color:orange;">{{#if:{{{1|}}}|{{{1}}}|---}}</span></center>

If a value is provided for the orange skill level, that value will be displayed. If the field is left blank, three dashes will be shown instead.

Any questions, or if you want to address this in a different way, drop me a note on my Talk page -- Wige (Talk - Contribs) 13:33, 12 March 2009 (UTC)

  • i changed it so all 4 lines have your suggestion Ewolfg1 (talk) 16:19, 17 March 2009 (UTC)
Advertisement