Many thanks to our Patrons who cover ~2/3 of our hosting bill. Please join them if you can.
Difference between revisions of "Template:MaybePlural"
Jump to navigation
Jump to search
(better desc) |
|||
Line 1: | Line 1: | ||
− | <noinclude>'''This template is to | + | <noinclude>'''This template is to avoid the ugly looking "(s)" on the end of labels.'''[[category:String manipulation Templates]][[category:Convenience Templates]]<br/> |
− | + | One day it might tackle irregular plurals, but for now it is currently equal to the following code, which takes just one argument, the item which may or may not be plural.<br/> | |
<font face=courier><nowiki>{{#if: {{Contains|,|{{{1|}}}}}|s}}</nowiki></font></noinclude><includeonly>{{#if: {{Contains|,|{{{1|}}}}}|s}}</includeonly> | <font face=courier><nowiki>{{#if: {{Contains|,|{{{1|}}}}}|s}}</nowiki></font></noinclude><includeonly>{{#if: {{Contains|,|{{{1|}}}}}|s}}</includeonly> |
Revision as of 22:41, 3 October 2016
This template is to avoid the ugly looking "(s)" on the end of labels.
One day it might tackle irregular plurals, but for now it is currently equal to the following code, which takes just one argument, the item which may or may not be plural.
{{#if: {{Contains|,|{{{1|}}}}}|s}}