Fandom

Community Central

Admin Forum:Need to understand how

19,006pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

This Forum has been archived

Forums: Admin Central Index Technical Help Need to understand how
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.


As seen Here, this whole template works with the #if thingy. What I don't get is how this template can make "other versions" and "other fields" disappear when not needed. I need some assistance in understanding how #if works so that I can apply them to future template boxes in my wiki, like http://monsterhunter.wikia.com/wiki/Template%3AInfoBoxMonster3 so I can make some content there disappear to some articles, but appear on other articles. Thanks Mckrongs 06:13, January 31, 2012 (UTC)

It's a Parser Functiom. Basically, the syntax is:

{{#if variable | what's displayed if it exists | what's displayed if it's not }}

Hope this helps! —Airhogs777 WCB WS 06:18, January 31, 2012 (UTC)


Hm, that explains the #if, but not so sure as to how the "other versions" and "other fields" still disappear. Mckrongs 06:22, January 31, 2012 (UTC)

Say for instance the following code is on a template:
{{#if:{{{example|}}}| '''Example: {{{example}}} | No text given }}
If the variable example is used, "Example: {{{example}}}" will be displayed. If not, "No text given" will show up. If you want to make the text disappear if the variable isn't used, rather than display the alternate text, you would apply the following:
{{#if:{{{example|}}}| '''Example: {{{example}}} | }}
--Dser (wall | email) 13:20, 1/31/2012

Also on Fandom

Random Wiki