Template:Totd-random/testcases
This is the template test cases page for the sandbox of Template:Totd-random. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Main template[edit]
Tip of the moment...
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. – – Read more: To add this auto-randomizing template to your user page, use {{totd-random}}
|