Template:Short description/lowercasecheck: Difference between revisions

From Vigyanwiki
< Template:Short description
Template>Jonesey95
(sync)
Template>Jonesey95
(sync from sandbox; use a switch instead)
Line 1: Line 1:
{{#ifeq:<!--test first character for lower-case letter-->{{#invoke:string|find|{{Str left|{{{1|}}}|1}}|[a-z]|plain=false}}|1
{{#ifeq:<!--test first character for lower-case letter-->{{#invoke:string|find|{{Str left|{{{1|}}}|1}}|[a-z]|plain=false}}|1
|<!-- first character is a lower case letter; test against whitelist
|<!-- first character is a lower case letter; test against whitelist
-->{{#if:{{#invoke:String2|matchAny|c.|none|iMac|iTunes|source={{First word|{{{1|}}}}}}}
-->{{#switch: {{First word|{{{1|}}}}}<!--begin whitelist-->
|<!-- short description starts with an allowed lower-case string; whitelist matched; do nothing -->
|c.
|<!-- apply category for lower-case short descriptions -->[[Category:Pages with lower-case short description]]{{Testcases other|{{red|CATEGORY APPLIED}}}}
|iMac
<!-- end whitelist test -->}}
|iTunes
|none=<!-- short description starts with an allowed lower-case string; whitelist matched; do nothing -->  
|#default=<!-- apply category for lower-case short descriptions -->[[Category:Pages with lower-case short description]]{{Testcases other|{{red|CATEGORY APPLIED}}}}<!-- end whitelist test -->}}
|<!-- short description does not start with lower-case letter; do nothing; -->
|<!-- short description does not start with lower-case letter; do nothing; -->
<!-- end lower-case test -->}}<noinclude>
<!-- end lower-case test -->}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 05:46, 19 January 2022

Template documentation