Jump to content

Template:ShowCategories: Difference between revisions

From OIAr Archive 2013
Jan Schoonderbeek (talk | contribs)
strip category name
Jan Schoonderbeek (talk | contribs)
result type
Line 6: Line 6:
Usage:
Usage:
<pre><nowiki>{{ShowCategories|page= }}</nowiki></pre>
<pre><nowiki>{{ShowCategories|page= }}</nowiki></pre>
</noinclude><includeonly>{{#show:{{{page}}}|?Category|link=none|format=template|template=StripPrefix|userparam=9}}
</noinclude><includeonly>{{#show:{{{page}}}|?Category|link=none|format=list|template=StripPrefix|userparam=9|sep=,}}

Revision as of 11:47, 29 December 2012

This simple template takes a single parameter page= and returns a list of all the categories that the page belongs to.
The list is alphabetically sorted, and a comma is used as the delimiter.

Usage:

{{ShowCategories|page= }}