Template:Short description/lowercasecheck: Difference between revisions
From Vigyanwiki
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}} | ||
<!-- | |<!-- first character is a lower case letter; test against whitelist | ||
<!-- | -->{{#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
[create]