Template:Detect singular: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
Content added Content deleted
gender and sexuality>JJMC89  (handled by {{documentation}})  | 
				imported>Autumn  m (1 revision imported)  | 
				||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{#ifexpr: ({{#if: {{{no_comma|}}}  | 
||
| ⚫ | |||
| + |   | <!-- Do not check for commas -->  | 
||
| + |   | {{#invoke:String|find|{{{1|}}}|,}} +   | 
||
| ⚫ | |||
| + |   | + {{#ifexpr: {{#invoke:String|count|source={{{1|}}}|pattern=*}} > 1  | 
||
| + |    | 1  | 
||
| + |    | 0  | 
||
| + |   }}  | 
||
| + |  }}) > 0  | 
||
| + |  |<!-- Check for singular override -->{{#ifexpr:{{#invoke:String|find|{{{1|}}}|forcedetectsingular}}  | 
||
| + |   | 1<!-- true output for forced singular -->  | 
||
| + |  }}  | 
||
| + |  |<!-- Check for plural override -->{{#ifexpr:{{#invoke:String|find|{{{1|}}}|forcedetectplural}}  | 
||
| + |   | <!-- no output for forced plural -->  | 
||
| + |   | 1  | 
||
| + |  }}  | 
||
| + | }}<noinclude>  | 
||
| + | {{documentation}}  | 
||
| + | </noinclude>  | 
||
Latest revision as of 17:03, 23 November 2021
1
File:Test Template Info-Icon - Version (2).svg Template documentation[create] [purge]