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)


 * Like I said; you won't be able to edit the sections themselves on the article page if they are added by the template. You will be able to edit the content underneath the section headers if this content is defined by template parameters like in the example above. The user will then have to use and fill out parameters


 * White=
 * Green=
 * Blue=
 * in the template call.


 * As for the tocright issue - not sure if that's what you wanted but I aligned the toc to the right using a separate parser funtion in the template. If that's not the solution you had in mind, then you need to be more precise about the position of the TOC you want. — Sovq 06:30, August 20, 2011 (UTC)