Template:Editions: Difference between revisions
Jump to navigation
Jump to search
(changed as described in talk page and added documentation. #ifexpr cannot be used here because non numeric parameters are also used.) |
(adding a before) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>(''{{#switch: {{{1}}} | <includeonly> ({{spc}}''{{#switch: {{{1|}}} | ||
|0 =no editions available | |0 =no editions available | ||
|1 =one edition available | |1 =one edition available | ||
Line 5: | Line 5: | ||
|x =multiple editions available | |x =multiple editions available | ||
| =<font color=red>Error: please specify number of editions</font> | | =<font color=red>Error: please specify number of editions</font> | ||
|{{{1}}} editions available}}{{{2|}}}'')</includeonly><noinclude> | |{{{1}}} editions available}}{{{2|}}}''{{spc}})</includeonly><noinclude> | ||
{{DisplayBox| | {{DisplayBox|title=Documentation|text= | ||
;Usage: | ;Usage: | ||
* | *{{tl|editions|0}} or <br>{{tl|editions|no}} display | ||
*:{{editions|0}} | *:{{editions|0}} | ||
* | *{{tl|editions|1}} displays | ||
*:{{editions|1}} | *:{{editions|1}} | ||
* | *{{tl|editions|2}} (3,4,5 etc.) displays | ||
*:{{editions|2}} | *:{{editions|2}} | ||
* | *{{tl|editions|x}} or <br>{{tl|editions|n}} or <br>{{tl|editions|multiple}} display | ||
*:{{editions|n}} | *:{{editions|n}} | ||
* | *{{tl|editions}} (without a parameter) displays | ||
*:{{editions}} | *:{{editions}} | ||
}} | }} | ||
[[Category:Templates | [[Category:Templates]]</noinclude> |