සැකිල්ල:Select parameter/උපදෙස්
පෙනුම
|
|
මෙය "සැකිල්ල:Select parameter" සඳහා උපදෙස් උප පිටුවක් වේ (සැකිල්ල සඳහා එම පිටුව වෙතට යොමු වන්න). මෙහි ඇත්තේ භාවිත තොරතුරු, ප්රවර්ග, සහ මූලික සැකිල්ල පිටුවට අදාළ නොවන වෙනත් අන්තර්ගතය වේ. |
This simple template provides an alternative to using a switch statement. Instead, it may be replaced by a call to this template. This allows the syntax to be simplified slightly by using unnamed parameters.
Usage
[සංස්කරණය]Instead of using the following:
{{#switch:{{{n}}}
|1=entry1
|2=entry2
|3=entry3
...
}}
the following may be used:
{{Select parameter|n={{{n}}}
|entry1
|entry2
|entry3
...
}}
The only named parameter {{{n}}} which is passed to this template should be a natural number.