Template:Detect singular: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
imported>Eden m (1 revision imported) |
imported>Autumn m (1 revision imported) |
||
| (One intermediate revision by one other user 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]