Template talk:Short description/lowercasecheck
Appearance
Needs better word extraction than Template:first word
This template needs better word extraction than {{first word}}, which includes commas. This means that even though "iOS" is on the whitelist, the short description "iOS, macOS, and tvOS software" fails the check. – Jonesey95 (talk) 23:02, 6 February 2022 (UTC)
- @Jonesey95: Would
{{First word|iOS, etc.|sep= ,}}
→ iOS do the trick? Note the{{{sep}}}
parameter treats its inputs as OR i.e. it looks for '_' or ',' not '_,' . ― Qwerfjkltalk 21:55, 9 February 2022 (UTC)
lcfirst?
Why doesn't this template just use lcfirst
in a comparison to check if the first character is lowercase?
{{ #ifeq: {{{1}}} | {{lcfirst:{{{1}}}}}
| <!-- lowercase; extract first word and check against allowlist -->
| <!-- uppercase or uncased character; do nothing -->
}}
「ディノ奴千?!」☎ Dinoguy1000 18:11, 6 April 2024 (UTC)
- Dinoguy1000, in case there's a situation where a valid lowercase word which is not in the allowlist is used; it's better to spot it in the tracking category than have some editor wonder why they can't fix the short description. — Qwerfjkltalk 19:43, 6 April 2024 (UTC)