Template:If in category/testcases
![]() | This is the template test cases page for the sandbox of Template:If in category. 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: |
__EXPECTUNUSEDTEMPLATE__
Note: This page is in Category:X1. Jean Walton is in Category:1914 births.
Just a category
Expected result: true
{{If in category|X1}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
{{If in category|Category:X1}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Expected result: false
{{If in category|X2}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
{{If in category|Category:X2}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
With |page=
parameter
Expected result: true
{{If in category|1914 births|page=Jean Walton}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Expected result: false
{{If in category|2024 births|page=Jean Walton}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Second unnamed parameter
Expected result: true
{{If in category|1914 births|born in 1914|page=Jean Walton}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Expected result: false
{{If in category|1970 births|born in 1970|page=Jean Walton}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Third unnamed parameter
Expected result: true
Using |3=
{{If in category|1914 births|3=NOT born in 1914|page=Jean Walton}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Using a blank second unnamed parameter
{{If in category|1914 births||NOT born in 1914|page=Jean Walton}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Expected result: false
Using |3=
{{If in category|1970 births|3=NOT born in 1970|page=Jean Walton}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Using a blank second unnamed parameter
{{If in category|1970 births||NOT born in 1970|page=Jean Walton}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Second and third unnamed parameter
Expected result: true
{{If in category|1914 births|born in 1914|NOT born in 1914|page=Jean Walton}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Expected result: false
{{If in category|1970 births|born in 1970|NOT born in 1970|page=Jean Walton}}
{{If in category}}
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).
Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).