Forum:Would this work in a template

Would this code work in a template to switch if any of the specified articles are present?

{{#switch:{{{Species}}}|Dragon|Varik|Raptor|Wyvern=

 Helloher    (Death is not my phone number)  20:18, July 19, 2010 (UTC)
 * No, unfortunately the code would have to be:

{{#switch:{{{Species}}}|Dragon= Foo|Varik= Foo|Raptor= Foo|Wyvern= Foo -- Random Time  21:05, July 19, 2010 (UTC)


 * (edit conflict) - That does not look right from when i've seen it used. But i cannot remember were it was to look at the code it was in, but i think it was used to test which namspace a page was in & then display a different message. So in your application it would not work as more than one could be true at once, so which would it chose ? #ifexist may be more suitable ? but i'm not totally sure what you are looking to do with it.


 * Here is the help page at mediaWiki.org about the switch function and other parser functions. - BulldozerD11 21:09, July 19, 2010 (UTC)


 * Please explain exactly what you are trying to do. Bad wikicode fragments without context will just lead to alot of round-about guessing. -- Fandyllic  (talk &middot; contr) 5:54 PM PST 19 Jul 2010