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 | 192 |
{{EL table row/sandbox}} | → | |
mil | Military | 192 |
1b basic German
{{EL table row|German|gov}}
{{EL table row}} | → | |
---|---|---|
gov | Government and politics | 372 |
{{EL table row/sandbox}} | → | |
gov | Government and politics | 372 |
2a basic Italian, standard topic code
{{EL table row|Italian|cult}}
{{EL table row}} | → | |
---|---|---|
cult | Culture | 410 |
{{EL table row/sandbox}} | → | |
cult | Culture | 410 |
2b basic Italian, topic code alias
{{EL table row|Italian|culture}}
{{EL table row}} | → | |
---|---|---|
cult | Culture | 410 |
{{EL table row/sandbox}} | → | |
cult | Culture | 410 |
3 no subcat for valid topic; expect: nothing (no row)
{{EL table row|German|mil}}
{{EL table row}} | → | |
---|---|---|
mil | Military | 113 |
{{EL table row/sandbox}} | → | |
mil | Military | 113 |
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,701 |
{{EL table row/sandbox}} | → | |
bio | Biography | 1,701 |
4c topics: same topic defined for French
{{EL table row|French|bio}}
{{EL table row}} | → | |
---|---|---|
bio | Biography | 4,653 |
{{EL table row/sandbox}} | → | |
bio | Biography | 4,653 |
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 | 4,653 |
{{EL table row/sandbox}} | → | |
bio | Biography | 4,653 |
Test 5b subcats: lang-topic with no subcats; Expect: as for 5a
{{EL table row|Catalan|geo}}
{{EL table row}} | → | |
---|---|---|
geo | Geography | 58 |
{{EL table row/sandbox}} | → | |
geo | Geography | 58 |
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,247 |
{{EL table row/sandbox}} | → | |
geo | Geography | (18 C) 8,247 |
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) 7 | |
{{EL table row/sandbox}} | → | |
French commune | (84 C) 7 |
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 |