Jump to content

Template:MaybePlural

From Deep Politics Wiki
Revision as of 01:29, 4 October 2016 by WikiSpooks>Robin (Text replacement - "String manipulation Templates" to "String manipulation templates")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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}}