Module:Detect singular/doc: Difference between revisions
Appearance
Taurussmith (talk | contribs) Created page with "<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high use}} {{Lua|Module:Arguments|Module:Yesno|Module:Text}} 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. <code><nowiki>{{#invoke:Detect singular|pluralize|Wynken, Blynken, and Nod||singular|plural}}</nowiki></code> → {{#invoke:Detect si..." |
Taurussmith (talk | contribs) m Protected "Module:Detect singular/doc" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading] |
(No difference)
| |
Latest revision as of 20:24, 14 March 2026
Lua error: Internal error: The interpreter exited with status 127. Lua error: Internal error: The interpreter exited with status 127.
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}} → Lua error: Internal error: The interpreter exited with status 127.
- 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.