Hi,
I'm trying to make a template with a conditional argument (if-else if- else)
I see that the switch function might do it but I can't find a way to make it work (or if it exists).
I found a template that could work: https://www.vaultwiki.org/pages/Temp...mplate:testext
Then, I tried to mimic the template so it's something like this
What I get is 1, 2 or 3TestCode:[if={{{Tagname}}}==Mod]1[TABLE]|- | style="width: 150px; background-color:#6799C1; color:#FFFFFF; text-align: center" | Moderator [/TABLE] [else /][if={{{Tagname}}}==Wiki]2[TABLE]|- | style="width: 150px; background-color:#038303; color:#FFFFFF; text-align: center" | Wiki Team [/TABLE] [else /]3Test [/if][/if]
I do not see the tables. My conditions are working since I see 1 and 2 when I call the template. Is there a better way or a way to make the table appear when I enter the condition?
Bookmarks