Jump to content

Template:If in category/testcases

From Wikipedia, the free encyclopedia

information Note: This page is in Category:X1. Jean Walton is in Category:1914 births.

Just a category

[edit]

Expected result: true

[edit]
{{If in category|X1}}

{{If in category}}

yes

{{If in category/sandbox}}

yes

{{If in category|Category:X1}}

{{If in category}}

yes

{{If in category/sandbox}}

yes

Expected result: false

[edit]
{{If in category|X2}}

{{If in category}}


{{If in category/sandbox}}


{{If in category|Category:X2}}

{{If in category}}


{{If in category/sandbox}}


With |page= parameter

[edit]

Expected result: true

[edit]
{{If in category|1914 births|page=Jean Walton}}

{{If in category}}

yes

{{If in category/sandbox}}

yes

Expected result: false

[edit]
{{If in category|2024 births|page=Jean Walton}}

{{If in category}}


{{If in category/sandbox}}


Second unnamed parameter

[edit]

Expected result: true

[edit]
{{If in category|1914 births|born in 1914|page=Jean Walton}}

{{If in category}}

born in 1914

{{If in category/sandbox}}

born in 1914

Expected result: false

[edit]
{{If in category|1970 births|born in 1970|page=Jean Walton}}

{{If in category}}


{{If in category/sandbox}}


Third unnamed parameter

[edit]

Expected result: true

[edit]

Using |3=

[edit]
{{If in category|1914 births|3=NOT born in 1914|page=Jean Walton}}

{{If in category}}


{{If in category/sandbox}}


Using a blank second unnamed parameter

[edit]
{{If in category|1914 births||NOT born in 1914|page=Jean Walton}}

{{If in category}}


{{If in category/sandbox}}


Expected result: false

[edit]

Using |3=

[edit]
{{If in category|1970 births|3=NOT born in 1970|page=Jean Walton}}

{{If in category}}

NOT born in 1970

{{If in category/sandbox}}

NOT born in 1970

Using a blank second unnamed parameter

[edit]
{{If in category|1970 births||NOT born in 1970|page=Jean Walton}}

{{If in category}}

NOT born in 1970

{{If in category/sandbox}}

NOT born in 1970

Second and third unnamed parameter

[edit]

Expected result: true

[edit]
{{If in category|1914 births|born in 1914|NOT born in 1914|page=Jean Walton}}

{{If in category}}

born in 1914

{{If in category/sandbox}}

born in 1914

Expected result: false

[edit]
{{If in category|1970 births|born in 1970|NOT born in 1970|page=Jean Walton}}

{{If in category}}

NOT born in 1970

{{If in category/sandbox}}

NOT born in 1970