Template:Category namespace only

From bg3.wiki
Jump to navigation Jump to search

This template includes the contents passed to {{{1}}} only if the final transcluding page is in the Category namespace.

This is useful because some categories are only meaningful in the category namespace, but you might still want to use the template itself in other namespaces (i.e. in the documentation of the template itself)

The template functions by fetching the {{NAMESPACE}} magic word and comparing it to "Category". NAMESPACE is an empty string for the Main namespace, and the name of the namespace otherwise (e.g. File:, Category:...). Additionally, magic words are evaluated in the final page they are transcluded into.

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
content1

What to paste into the output page if it is in the main namespace. Usually a category.

Unknownoptional