Template:Detect singular
Jump to navigation
Jump to search
1
Usage[edit source]
Used to detect possible lists. Useful for infoboxes, where the label may be singular (e.g., "Nickname:") but the data may be a list. One required parameter (the string to search for a list). Returns 1 if not a list, nil if a possible list.
Examples:
{{Detect singular|Mack the Knife}} → 1
{{Detect singular|Mack the Knife, Joe}} →
{{Detect singular|{{hlist|first|second|third}}}} →
{{Detect singular|[[Charles, Prince of Wales]]}} →
External links[edit source]
- Template:Detect singular at Wikipedia, the free Terran-based encyclopedia that anyone can edit.
The above documentation is transcluded from Template:Detect singular/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |