Template:Card

From Eamon Wiki
Jump to navigation Jump to search

[[{{{target}}}|{{{title}}}]] (0)
{{{text}}}

[edit] [history] [purge] Documentation icon Template documentation

The card template creates a specific kind of card-like section that contains an image, heading, link, and description. It's mainly used in the Universe Portal as a way to attractively list the various sections users can explore without having to repeat all the card markup over and over.


Parameters

The card template accepts the following parameters:

Image

This is the filename of an image that will appear at the top of the card. The template automatically sizes the image to fit the card.

Title

This is the bolded text that appears on the card.

Target

This is the Eamon Wiki article to which the title text should link.

Text

This is explanatory text that appears below the card title.

Category

When a category is specified, the template counts how many articles are in that category and displays it after the title in parentheses.

Example

<div class="cards">
{{Card
|image    = Flora.png
|title    = Plants
|target   = Flora
|text     = Articles on plant species
|category = Flora
}}


The template documentation above is transcluded from Template:Card/doc. (edit | history)

Subpages of this template