ಟೆಂಪ್ಲೇಟ್:Detect singular/doc
ಗೋಚರೊ
This is a documentation subpage for ಟೆಂಪ್ಲೇಟ್:Detect singular. It may contain usage information, categories and other content that is not part of the original ಟೆಂಪ್ಲೇಟ್ page. |
This template is used on approximately ೨,೨೨,೦೦೦ pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Template:Detect singular is used to detect possible lists and is a useful tool for infoboxes, where the label may be singular (e.g., "Nickname:") but the data may be a list.
Usage
[ಸಂಪೊಲಿಪುಲೆ]{{Detect singular|value}}
Returns 1 if not a list, nil if a possible list.
Parameters
[ಸಂಪೊಲಿಪುಲೆ]Parameter | Description |
---|---|
1
|
Required. The data to search for a list. |
no_comma
|
Optional. Set |no_comma= to any value if commas should be ignored. This should be used for date input.
|
bullets
|
Optional. Set |bullets= to any value if bullets (*) should be treated as plural input.
|
Examples
[ಸಂಪೊಲಿಪುಲೆ]{{Detect singular|Mack the Knife}}
→ 1
{{Detect singular|May 4, 2020|no_comma=yes}}
→ 1
{{Detect singular|Mack the Knife, Joe}}
→
{{Detect singular|
→{{hlist|first|second|third}}
}}
{{Detect singular|*one *two *three|bullets=yes}}
→
It is not foolproof, however:
{{Detect singular|Dave Nellist}}
→