Template:CategoryCard
Template page
More actions

[[|Category]]
CategoryCard
Displays a visual card linking to a project category hub. Used on the Main Page to show project categories with an icon, name, description, and optional live count.
Usage
{{CategoryCard
| icon = mimetypes-audio-x-generic
| name = Audio
| link = Projects/Audio
| description = Music, sound design, field recordings, and anything audio.
| count = {{#cargo_query:tables=Projects|fields=COUNT(DISTINCT _pageID)=n|where=categories HOLDS 'Audio'}}
}}
Parameters
icon- Filename without
.pngextension. Defaults toplaces-folder. name- Display name. Defaults to "Category".
link- Wiki page to link to (e.g.
Projects/Audio). description- Optional short description shown below the name.
count- Optional count shown at the bottom. Use a
#cargo_queryfor a live count.
Notes
- Wrap multiple CategoryCards in
{{CardGrid}}.
Displays a visual icon card linking to a project category hub. Wrap multiple cards in {{CardGrid}}.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Icon | icon | Icon filename without the .png extension (e.g. mimetypes-audio-x-generic). Defaults to places-folder.
| String | optional |
| Name | name | Display name shown on the card.
| String | optional |
| Link | link | Wiki page this card links to (e.g. Projects/Audio). | Page name | required |
| Description | description | Short description shown below the card name. Keep to one sentence. | String | optional |
| Count | count | Number shown at the bottom of the card. Use a #cargo_query for a live count. | Content | optional |