Wikipedia:Tip of the day/November 26

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by TheImaCow (talk | contribs) at 10:39, 20 December 2020 (rm cat "Wikipedia editing aids", cat:tip of the day is a subcat of Cat:Editing aids). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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.