Template:Short description/lowercasecheck: Difference between revisions

From Vigyanwiki
< Template:Short description
Template>Jonesey95
(create to test short descriptions to see if they start with a lower-case letter. Needs a lot more work, no doubt)
 
Template>Jonesey95
(fix braces)
Line 1: Line 1:
{{#if:<!--test first character for lower-case letter-->{{#invoke:string|find|{{Str left|{{{1|}}}|1}}|[a-z]|plain=false}}|
{{#if:<!--test first character for lower-case letter-->{{#invoke:string|find|{{Str left|{{{1|}}}|1}}|[a-z]|plain=false}}
<!--exclude whitelist-->{{#if:{{#invoke:String2|matchAny|c.|none|iMac|iTunes|source={{First word|{{{1|}}}}}}}|
|<!-- first character is a lower case letter; test against whitelist
<!--do nothing; short description does not start with lower-case letter, or it starts with an allowed lower-case word -->
-->{{#if:{{#invoke:String2|matchAny|c.|none|iMac|iTunes|source={{First word|{{{1|}}}}}}}
|<!--apply category for lower-case short descriptions-->[[Category:Pages with lower-case short description]]}}<noinclude>
|<!-- short description starts with an allowed lower-case word; whitelist matched; do nothing -->
|<!-- apply category for lower-case short descriptions -->[[Category:Pages with lower-case short description]]
<!-- end whitelist test -->}}
|<!-- short description does not start with lower-case letter; do nothing; -->
<!-- end lower-case test -->}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 05:11, 19 January 2022

Template documentation