Forum:Help with Conditional Statements

I'm attempting to make the edit to this page

Template:ItemInfo

and an example where it should work is here

Type STF 200

If variable rarity is blank then add this text.

it correctly adds this but it's not listed in the source so I can't then place the variations under their headers. How do I automatically add this AND then have the ability to actually add things under the headers?

also if I try to include into the if statement

it doesn't seem to work.

Any help is greatly appreciated.

Jrlewis96 20:37, August 19, 2011 (UTC)


 * If the "Variations" are added by the template then the template has to be edited to modify them. You could include parameters to the template, like this:


 * which would allow the users to edit the content under the headers. Alternatively, you could substitute the template. The downside is that once you do that, you won't be able to edit the no longer transcluded templates on the template page.


 * I don't see the TOC neither in the template code nor in the example page, so I don't see the problem. Could you be more precise? On a side note - you might want to use  instead of this table, to keep it cleaner. — Sovq 06:52, August 19, 2011 (UTC)

I've tried adding  but no joy.

I added the variables like you suggested but when I attempt to edit the page the headers still aren't there.

Jrlewis96 20:37, August 19, 2011 (UTC)