ढाँचा:Select parameter/doc
स्वरूप
This is a documentation subpage for ढाँचा:Select parameter (see that page for the ढाँचा itself). It contains usage information, categories, and other content that are not part of the original ढाँचा page. |
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.