Template:Detect singular: Difference between revisions

From Project: Jotunnheim
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|}}}
{{#ifexpr:({{#invoke:String|find|{{{1|}}}|,}}+{{#invoke:String|find|{{{1|}}}|list}}+{{#invoke:String|find|{{{1|}}}|<%s*br|plain=false}})>0||1}}<noinclude>{{documentation}}</noinclude>
 
  +
| <!-- Do not check for commas -->
  +
| {{#invoke:String|find|{{{1|}}}|,}} +
 
}} {{#invoke:String|find|{{{1|}}}|list}} + {{#invoke:String|find|{{{1|}}}|<%s*br|plain=false}} {{#if: {{{bullets|}}}
  +
| + {{#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