Jump to content

User:Scott5834

From Wikipedia, the free encyclopedia
Please proofread the daily tip...

It's displayed below one day early.

Some tips are obsolete. So we need new tips too. Please share your best tips and tip ideas at the Tip of the day department.


edit Tomorrow's tip of the day...

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.

To add this auto-updating template to your user page, use {{totd-tomorrow}}