Template:Detect singular/testcases
Appearance
This is the template test cases page for the sandbox of Template:Detect singular. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Singular
[edit]{{Detect singular}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|Mack the Knife}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|Ralph Waldo Emerson}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|[[Ralph Waldo Emerson]]}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|David Jones}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|Massachusetts Institute of Technology||singular|plural}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|Alberta College||singular|plural}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|Handy||singular|plural}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|May 4, 2020||singular|plural}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
Start date
{{Detect singular||singular|plural|1=May 4, 2020<span style="display:none"> (<span class="bday dtstart published updated itvstart">2020-05-04</span>)</span>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|312, 415||singular|plural}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|The Land of Milk and Honey|no_and=1}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|Q3238422}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|science fiction literature}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|The End of the F***ing World}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|2,746,388}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|[[Charles, Prince of Wales]]}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|[[Bosnia and Herzegovina]]}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
wlink with ref
{{Detect singular|[[Dave Nellist]][1]||singular|plural}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|[[Martin Luther King, Jr.]]}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
{{Detect singular|Martin Luther King, Jr.|no_comma=yes}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
ubl with one entry
{{Detect singular||singular|plural|1=<div class="plainlist"><ul><li>foo</li></ul></div>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
ubl with comma in one entry
{{Detect singular||singular|plural|1=<div class="plainlist"><ul><li>Henry, Duke of Cornwall</li></ul></div>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
Single marriage
{{Detect singular||singular|plural|1= <div class="marriage-display-ws"><div style="display:inline-block;line-height:normal;margin-top:1px;white-space:normal;">[[Virginia Eliza Clemm Poe]]</div> <div class="marriage-line-margin2px">​</div> <div style="display:inline-block;margin-bottom:1px;">​</div>(<abbr title="married">m.</abbr> 1836; died 1847)<wbr />​</div>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
Single marriage with br tag
{{Detect singular||singular|plural|1= <div class="marriage-display-ws"><div style="display:inline-block;line-height:normal;margin-top:1px;white-space:normal;">[[Maria Shriver]]<br /></div> <div class="marriage-line-margin2px">​</div> <div style="display:inline-block;margin-bottom:1px;">​</div>(<abbr title="married">m.</abbr> 1986; <abbr title="divorced">div.</abbr> 2021)<wbr />​</div>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
HTML entity
{{Detect singular|A–B||singular|plural}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
Plural
[edit]{{Detect singular|Sasha and Malia}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|[[Alabama]] and [[Georgia]]}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|[[Alabama]], [[Georgia]], [[New Mexico]]}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|312, 415|any_comma=yes}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|[[Area codes 416, 647 and 437|416, 647, 437]]|any_comma=yes |parse_links=true}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|[[List of edible seeds]]}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|Mack, Joe, The Knife}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|Mack , Joe}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
ubl with multiple entries
{{Detect singular||singular|plural|1=<div class="plainlist"><ul><li>A</li><li>B</li><li>C</li></ul></div>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
hlist with multiple entries
{{Detect singular||singular|plural|1=<div class="hlist"><ul><li>first</li><li>second</li><li>third</li></ul></div>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
complex hlist
{{Detect singular||singular|plural|1=<div class="hlist"><ul><li>Henry, Duke of Cornwall</li><li>Mary I, Queen of England</li><li>Henry FitzRoy, Duke of Richmond and Somerset (ill.)</li><li>Elizabeth I, Queen of England</li><li>Edward VI, King of England</li></ul></div>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
plainlist with multiple entries
{{Detect singular||singular|plural|1=<div class="plainlist " > * PC1 * PC2 </div>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|first<br>second<br />third<br/>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|Alberta College<br/>Brandeis University}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|Alberta College<br/>Brandeis University|no_comma=yes}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|* one * two }}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|Q214917 Q28389 Q6625963 Q4853732 Q18844224 Q245068 Q36180 Q639669}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
{{Detect singular|playwright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician||occupation|occupations}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
plainlist of marriages
{{Detect singular||singular|plural|1=<div class="plainlist " > * <div class="marriage-display-ws"><div style="display:inline-block;line-height:normal;margin-top:1px;white-space:normal;">[[Ivana Trump|Ivana Zelníčková]]</div> <div class="marriage-line-margin2px">​</div> <div style="display:inline-block;margin-bottom:1px;">​</div>(<abbr title="married">m.</abbr> <span class="rt-commentedText tooltip " title="April 7, 1977">1977</span>; <abbr title="divorced">div.</abbr> <span class="rt-commentedText tooltip " title="March 22, 1992">1992</span>)<wbr />​</div> * <div class="marriage-display-ws"><div style="display:inline-block;line-height:normal;margin-top:1px;white-space:normal;">[[Marla Maples]]</div> <div class="marriage-line-margin2px">​</div> <div style="display:inline-block;margin-bottom:1px;">​</div>(<abbr title="married">m.</abbr> <span class="rt-commentedText tooltip " title="December 20, 1993">1993</span>; <abbr title="divorced">div.</abbr> <span class="rt-commentedText tooltip " title="June 8, 1999">1999</span>)<wbr />​</div> * <div class="marriage-display-ws"><div style="display:inline-block;line-height:normal;">[[Melania Trump|Melania Knauss]]</div> <div style="display:inline-block;">​</div>(<abbr title="married">m.</abbr> <span class="rt-commentedText tooltip " title="January 22, 2005">2005</span>)<wbr />​</div> </div>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
br delimited marriages
{{Detect singular||singular|plural|1= <div class="marriage-display-ws"><div style="display:inline-block;line-height:normal;">Jennifer Leigh</div> <div style="display:inline-block;">​</div>(<abbr title="divorced">div.</abbr> 1997)<wbr />​</div><br> <div class="marriage-display-ws"><div style="display:inline-block;line-height:normal;">Jordyn Blum</div> <div style="display:inline-block;">​</div>(<abbr title="married">m.</abbr> 2003)<wbr />​</div>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
br delimited marriages with forced line breaks
{{Detect singular||singular|plural|1= <div class="marriage-display-ws"><div style="display:inline-block;line-height:normal;margin-top:1px;white-space:normal;">Jennifer Leigh<br></div> <div class="marriage-line-margin2px">​</div> <div style="display:inline-block;margin-bottom:1px;">​</div>(<abbr title="divorced">div.</abbr> 1997)<wbr />​</div><br> <div class="marriage-display-ws"><div style="display:inline-block;line-height:normal;">Jordyn Blum</div> <div style="display:inline-block;">​</div>(<abbr title="married">m.</abbr> 2003)<wbr />​</div>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
Forced
[edit]blank input
{{Detect singular|}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
force singular
{{Detect singular||singular|plural|1=blah one, blah two, blah three, testcase for forcing singular<span style="display:none" data-plural="0"></span>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|
1 | 1 |
force plural
{{Detect singular||singular|plural|1=testcase for forcing plural<span style="display:none" data-plural="1"></span>}}
{{Detect singular}} | {{Detect singular/sandbox}} |
---|---|