|Search user languages|
|This is a Wikipedia user page.
If you find this page on any site other than Wikipedia, you are viewing a mirror site. Be aware that the page may be outdated, and that the user this page belongs to may have no personal affiliation with any site other than Wikipedia itself. The original page is located at https://en.wikipedia.org/wiki/User:Superman768.
Pick from a list of template parameter choices
Do you have a list of possible choices for a template parameter? Use the #switch parser function to define the choices. Then simply enter the choice's numeric value into the template for the applicable parameter, e.g., 1="Sunday" 2="Monday" 3="Tuesday" ... Default choices also can be listed. For simplicity with lists, use a switch statement instead of a "nested if-then-else" conditional statement to control flow.