Template:Nocat

From FlightGear wiki
Revision as of 10:31, 21 June 2014 by Johan G (talk | contribs) (Changing behavior to the one I originally wanted: No categorization if nocat is not empty. That was an easy fix :-)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


The following template description is not displayed when the template is inserted in an article.

Goal

This template can be used to simplify adding category suppression using a nocat parameter to a template.

Adding this template to a page will automatically add Category:category to that page if nocat is not empty.

Usage

{{nocat|{{{nocat|}}}|category}}
category
Category excluding the Category: namespace prefix.

Examples

<includeonly>{{nocat|{{{nocat|}}}|Test category}}</includeonly>

Related templates

Related content