Template:EL table row/testcases
Appearance
| This is the template test cases page for the sandbox of Template:EL table row. 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: |
1a basic French
{{EL table row|French|mil}}
| {{EL table row}} | → | |
|---|---|---|
| mil | Military | 203 |
| {{EL table row/sandbox}} | → | |
| mil | Military | 203 |
1b basic German
{{EL table row|German|gov}}
| {{EL table row}} | → | |
|---|---|---|
| gov | Government and politics | 406 |
| {{EL table row/sandbox}} | → | |
| gov | Government and politics | 406 |
2a basic Italian, standard topic code
{{EL table row|Italian|cult}}
| {{EL table row}} | → | |
|---|---|---|
| cult | Culture | 572 |
| {{EL table row/sandbox}} | → | |
| cult | Culture | 572 |
2b basic Italian, topic code alias
{{EL table row|Italian|culture}}
| {{EL table row}} | → | |
|---|---|---|
| cult | Culture | 572 |
| {{EL table row/sandbox}} | → | |
| cult | Culture | 572 |
3 no subcat for valid topic; expect: nothing (no row)
{{EL table row|German|mil}}
| {{EL table row}} | → | |
|---|---|---|
| mil | Military | 141 |
| {{EL table row/sandbox}} | → | |
| mil | Military | 141 |
4a topics: invalid topic; expect 'unknown topic code' in red
{{EL table row|Spanish|church}}
| {{EL table row}} | → | |
|---|---|---|
| church | unknown topic code | |
| {{EL table row/sandbox}} | → | |
| church | unknown topic code |
4b topics: topic/subcat not defined for Italian; expect: nothing (no row)
{{EL table row|Italian|bio}}
| {{EL table row}} | → | |
|---|---|---|
| bio | Biography | 1,986 |
| {{EL table row/sandbox}} | → | |
| bio | Biography | 1,986 |
4c topics: same topic defined for French
{{EL table row|French|bio}}
| {{EL table row}} | → | |
|---|---|---|
| bio | Biography | 5,366 |
| {{EL table row/sandbox}} | → | |
| bio | Biography | 5,366 |
Test 5a subcats: lang-topic with no subcats; Expect: simple article count in col 3
{{EL table row|French|bio}}
| {{EL table row}} | → | |
|---|---|---|
| bio | Biography | 5,366 |
| {{EL table row/sandbox}} | → | |
| bio | Biography | 5,366 |
Test 5b subcats: lang-topic with no subcats; Expect: as for 5a
{{EL table row|Catalan|geo}}
| {{EL table row}} | → | |
|---|---|---|
| geo | Geography | 69 |
| {{EL table row/sandbox}} | → | |
| geo | Geography | 69 |
Test 5c subcats: lang-topic with subcats and articles; Expect: subcat count in parens, and nonzero article count
{{EL table row|French|geo}}
| {{EL table row}} | → | |
|---|---|---|
| geo | Geography | (18 C) 8,549 |
| {{EL table row/sandbox}} | → | |
| geo | Geography | (18 C) 8,549 |
Test 5d subcats: lang-topic with subcats but no articles; Expect: subcat count in parens, and zero article count
{{EL table row|French| | French commune}}
| {{EL table row}} | → | |
|---|---|---|
| French commune | (84 C) 16 | |
| {{EL table row/sandbox}} | → | |
| French commune | (84 C) 16 |
Test 5e subcats: another lang-topic with subcats but no articles; Expect: as for 5d
{{EL table row|Japanese| | Media}}
| {{EL table row}} | → | |
|---|---|---|
| Media | (2 C) 0 | |
| {{EL table row/sandbox}} | → | |
| Media | (2 C) 0 |