Module:Detect singular/doc: Difference between revisions
Jump to navigation
Jump to search
en>Hike395 (mark as high use) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 16:47, 17 December 2022
Script error: No such module "High-use". Script error: No such module "Lua banner".
Lua to determine whether a string is singular or plural. Designed for use in infoboxes, to determine whether labels should be singular or plural based on the corresponding data, e.g.
{{#invoke:Detect singular|pluralize|Wynken, Blynken, and Nod||singular|plural}}
→ plural
- See Template:Detect singular for main() usage. Test cases here.
- See Template:Pluralize from text for pluralize() usage (a wrapper around main()). Test cases here.