Template:Detect singular: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Hike395
detect lists and br
meta>Hike395
change template to produce 1 if singular or nil if it looks like a list
Line 1: Line 1:
{{#if:{{{1|}}}|{{#ifexpr:({{#invoke:String|find|{{{1|}}}|,}}+{{#invoke:String|find|{{{1|}}}|list}}+{{#invoke:String|find|{{{1|}}}|<%s*br|plain=false}})>0|{{{5|}}}|{{{3|}}} }}|{{#if:{{{2|}}}|{{{4|}}} }} }}<noinclude>{{documentation}}</noinclude>
{{#ifexpr:({{#invoke:String|find|{{{1|}}}|,}}+{{#invoke:String|find|{{{1|}}}|list}}+{{#invoke:String|find|{{{1|}}}|<%s*br|plain=false}})>0||1}}<noinclude>{{documentation}}</noinclude>

Revision as of 20:52, 18 November 2018

1