Template:Cat. table entry: Difference between revisions
m (reinstated border, but lighter) |
(added number of category members, 'description' & 'usage') |
||
Line 1: | Line 1: | ||
|style="width: 120px;border: 1px solid #E8E8ED;vertical-align: top"|[[File:{{{icon}}}|link=Category:{{{category}}}|center|middle|120px]] | |style="width: 120px;border: 1px solid #E8E8ED;vertical-align: top"|[[File:{{{icon}}}|link=Category:{{{category}}}|center|middle|120px]] | ||
[[:Category:{{{category}}}| {{#if: {{{categoryLabel|}}} | {{{categoryLabel}}} | {{{category}}} }}]] | [[:Category:{{{category}}}| {{#if: {{{categoryLabel|}}} | {{{categoryLabel}}} | {{{category}}} }}]] ({{PAGESINCAT:{{{category}}}}}) | ||
<noinclude> | |||
=== Description === | |||
This is a simplified way to add formatted entries to the [[User:Teleuteskitty/Draft_Browse_Categories|Browse Categories page]]. It includes the icon, category, the text used for the link to the category page, and the number of members in that category. | |||
For a list of categories, see [[Special:Categories]]. | |||
=== Usage === | |||
There are 3 variables, <code>icon, category</code> and <code>cateogryLabel</code>. | |||
<code>cateogryLabel</code> is the text that appears as the category link, and is an optional variable. If omitted, the category name is used. Including this variable is useful when you wish to include a line break or use differnt text for a link to a category page. | |||
<pre> | |||
{{Cat. table entry | |||
|icon = | |||
|category = | |||
|categoryLabel = | |||
}} | |||
</pre> | |||
Example: | |||
<pre> | |||
{{Cat. table entry | |||
|category = Energy Healing | |||
|categoryLabel = Alt med:<br>Energy Healing | |||
|icon = CatIcon energy.png | |||
}} | |||
</pre> |
Revision as of 23:22, 8 July 2012
|style="width: 120px;border: 1px solid #E8E8ED;vertical-align: top"|[[File:{{{icon}}}|link=Category:{{{category}}}|center|middle|120px]] [[:Category:{{{category}}}| {{{category}}}]] (0)
Description
This is a simplified way to add formatted entries to the Browse Categories page. It includes the icon, category, the text used for the link to the category page, and the number of members in that category.
For a list of categories, see Special:Categories.
Usage
There are 3 variables, icon, category
and cateogryLabel
.
cateogryLabel
is the text that appears as the category link, and is an optional variable. If omitted, the category name is used. Including this variable is useful when you wish to include a line break or use differnt text for a link to a category page.
{{Cat. table entry |icon = |category = |categoryLabel = }}
Example:
{{Cat. table entry |category = Energy Healing |categoryLabel = Alt med:<br>Energy Healing |icon = CatIcon energy.png }}