Skip to content

Template:Card

From Whitecoast City Railway Wiki

A card that links to a page, with a line about it, as on the Main Page. The whole card is the link. Put cards in a grid with <div class="wcr-cards">; they fill the width, a few to a row, and stack on phones.

Example

<div class="wcr-cards">
{{Card|link=[[:Category:Guides|Guides]]|text=How to drive trains, operate stations and find your way around.}}
{{Card|link=[[Special:AllPages|Every page]]|text=Everything written so far, A to Z.}}
</div>

Guides

How to drive trains, operate stations and find your way around.

Every page

Everything written so far, A to Z.

A card that links to a page, for a grid of cards in <div class="wcr-cards">.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Linklink

The card's title, as a link: [[Page]] or [[Page|Title]].

Stringrequired
Texttext

A line about the page.

Stringsuggested