Forum:Wikitext programming help

how can you make some code in wiki text (for a template) that look something like this in java switch (parameter_a) { case a:(text for a); break; case b:(text for a); break; case c:(text for a); break; case d:(text for a); break; default:(default text); break; } where "parameter_a" is the argument made by the code {{#if:{{{parameter_a|}}}| a,b,c and d are the possible valid arguments of the parameters and the default is the one used if the argument is not valid. if you have any questions about this, please comment. Person3434 12:01, September 5, 2010 (UTC)
 * It would look like this:

{{#switch:{{{parameter a}}} }} --{{User:Pcj/sig}} 12:22, September 5, 2010 (UTC)
 * a=text for a
 * b=text for b
 * c=text for c
 * d=text for d
 * default text

thanks a lot. i needed it for conjugating nouns by declension groups.Person3434 14:37, September 5, 2010 (UTC)