Board Thread:Support Requests - Getting Technical/@comment-4334693-20140809174631

Hi, I'm having trouble creating an infobox with the right parameters and parser functions. I'm working on the WoD Wiki, a wiki for the Wings of Destiny browser game. Like any MMORPG, there are items, pieces of armor, weapons, etc. I'm trying to make the name of the item in the infobox change colors according to the grade of the item.

Here is the template im working on. What I'd like to have is a hidden parameter that would set the desired color for the  parameter text and I figured it could be done with a series of "|{{#if:..." parser functions.

Can someone let me know if these logical tests could be integrated into an infobox. If not I'll just create 6 simple "itembox" templates for each grade. The logic im trying to implement is this:

If = D, then --> |

If {{{grade}}} = C, then --> | {{{itemname}}}

If {{{grade}}} = B, then --> | {{{itemname}}}

and so on...

If anyone can help me out or redirect me to a page where this type of thing is explained, I'd appreciate it!

Thanks,

Mayor Adam West (profile | wall | contribs) WoD Wiki (Admin) 17:46, August 9, 2014 (UTC)  