Template

Difference between revisions of "Template category"

From Joomla! Documentation

m
 
m (1 revision(s))
(No difference)

Revision as of 10:31, 20 January 2008

This category contains pages in the template namespace.
It should not be used to categorize articles or pages in other namespaces.
To add a template to this category, add
<noinclude>[[Template:Template category|{{PAGENAME}}]]</noinclude>
to the end of the template or its documentation subpage (preferred). Make sure that the opening <noinclude> starts on the same line as the last character of the template code.

[view] [edit] [history]

Template-info.pngTemplate documentation


Use {{template category}} at the top of categories containing pages in the template namespace (for example, Category:Link templates).

Functions/Features[edit]

The upper part of this message box uses {{for}} to link to the Joomla! Templates category. The description and output of the usage notice can be replaced via parameters.

If the help parameter is not given, the template automatically explains to readers how to add a template to the category. Specify your own help instructions to override the default. You may also set additional description of the category that will appear beneath the box.

The optional parameter small (when any value specified) makes the messagebox small and right-floating. The default help messages will be reworded to fit into the narrow box.

Usage[edit]

{{template category|description|help|small}}

Standard box with alternative texts

{{template category
| description = supplemental description
| help = alternative help text
}}

Narrow box

{{template category|small=yes}}

See also[edit]