Template talk:Editions: Difference between revisions
Jump to navigation
Jump to search
(Ok!) |
m (Text replace - "\[\[Category:(.*)\|{{PAGENAME}}]]" to "Category:$1") |
||
Line 8: | Line 8: | ||
<nowiki>|default=''({{{1}}} editions available{{{2|}}})'' </nowiki> | <nowiki>|default=''({{{1}}} editions available{{{2|}}})'' </nowiki> | ||
<nowiki>}}<noinclude> </nowiki> | <nowiki>}}<noinclude> </nowiki> | ||
<nowiki>[[Category:Templates | <nowiki>[[Category:Templates]]</noinclude> </nowiki> | ||
Cases 0 and 1 are just to be prepared for the worst, in case someone uses it improperly. :) <br> | Cases 0 and 1 are just to be prepared for the worst, in case someone uses it improperly. :) <br> |
Latest revision as of 06:34, 1 June 2015
Hi Chuck, what do you think of using {{editions|n}} instead of {{editions|multiple}}? The code for it would be:
{{switch|{{{1}}} |case: n=''(multiple editions available{{{2|}}})'' |case: 0=''(no editions available{{{2|}}})'' |case: 1=''(one edition available{{{2|}}})'' |default=''({{{1}}} editions available{{{2|}}})'' }}<noinclude> [[Category:Templates]]</noinclude>
Cases 0 and 1 are just to be prepared for the worst, in case someone uses it improperly. :)
By the way, when does it start to be "multiple", after 9 editions? -- CarlosTalk 04:36, 27 June 2008 (PDT)
- Hi Carlos. "Mulitple" has meant either "nobody has counted recently", or it has been used in the case of multipart works which have varying numbers of editions for various sections on the works page. Personally, I don't think your suggestion is as intutive as the one used at present, even if it might be shorter to use (in the case of "multiple" edtions). On the other hand, your coding is backwards compatible, so I've no objection to expanding it. -- Chucktalk Giffen♫ 07:57, 27 June 2008 (PDT)