Difference between revisions of "Template:In category/doc"

From Second Life Wiki
Jump to navigation Jump to search
(Shamelessly copied from wikipedia.org)
 
m (Weird... why doesn't the TemplateData show?)
 
Line 15: Line 15:
This template does nothing to change the functionality of the documented template: in particular, it will not actually apply the categories. Its purpose is simply to produce a note about what the documented template does, but you will need to implement the template's actual functionality separately.
This template does nothing to change the functionality of the documented template: in particular, it will not actually apply the categories. Its purpose is simply to produce a note about what the documented template does, but you will need to implement the template's actual functionality separately.


<includeonly>{{sandbox other||
<includeonly>
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Template namespace templates|{{PAGENAME}}]]<!--<templatedata>-->
[[Category:Template namespace templates|{{PAGENAME}}]]<!--<templatedata>-->
{{TemplateData Header}}
{{TemplateData header}}
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
{
{
Line 67: Line 67:
}
}
</syntaxhighlight>
</syntaxhighlight>
<!--</templatedata>-->}}</includeonly>
<!--</templatedata>--></includeonly>

Latest revision as of 20:50, 12 March 2023

The {{In category}} template is designed for use on the "Wikipedia logo"documentation subpages of templates. It produces a "Wikipedia logo"hatnote that specifies into which category the documented template is categorised.

Basic usage is along the lines of {{In category|Candidates for speedy deletion}}, which produces the following message:

This template will categorize into Category:Candidates for speedy deletion.

It is possible to specify more than one category, e.g. {{In category|Candidates for speedy deletion|Candidates for speedy deletion by user}} produces:

Up to five categories are supported.

To override the "and" with another conjunction, use the |and= parameter.
For example, {{In category|Candidates for speedy deletion|Candidates for speedy deletion by user}} would produce:

This template does nothing to change the functionality of the documented template: in particular, it will not actually apply the categories. Its purpose is simply to produce a note about what the documented template does, but you will need to implement the template's actual functionality separately.