Module:If in category/doc

From English Wikipedia @ Freddythechick

This module implements {{if in category}}

Usage

<syntaxhighlight lang="wikitext" inline>Lua error in Module:If_in_category at line 13: bad argument #1 to 'inArray' (table expected, got nil).</syntaxhighlight>

If |page= is omitted, the current page is used. If both the second and third unnamed parameters are omitted, the second unnamed parameter defaults to yes.