Skip to content

Project:Templates

From Whitecoast City Railway Wiki

Templates are ready-made parts of a page: a box of facts, a tip, a key to press. Type the code in the left column where you want the part to appear. In the visual editor, choose Insert › Template and type the template's name; it asks for each value.

Each template's own page explains its options. Category:Templates lists them all. Project:Conventions says when to use them.

At the top of a page

Template What it is for You type
Lede The opening paragraph, in larger type. {{Lede|What the page is about.}}
Infobox station The key facts about a station, in a box beside the text. {{Infobox station | lines = … | platforms = … }}
Infobox train The key facts about a train, in a box beside the text. {{Infobox train | type = … | top_speed = … }}
Infobox line The key facts about a line, with its colour, in a box beside the text. {{Infobox line | colour = #1976d2 | termini = … }}

Notices

These go at the top of a page, and come off when they no longer apply.

Template What it is for You type
Outdated A game update may have made the page wrong. {{Outdated|V2}}
In use You're working on the page over several edits; others should wait. {{In use|Your username}}
Delete Asks a Wiki Administrator to delete the page. {{Delete|Why it should go.}}

Under a heading

Template What it is for You type
Main The page that covers the section's subject in full. {{Main|Page name}}
See also Pages on related subjects. {{See also|Page|Another page}}

In the text

Template What it is for You type You get
Aspect A signal aspect: red, yellow, double yellow or green. {{Aspect|yellow}}
Key A key to press, or keys pressed together. {{Key|Shift|W}} Shift + W
Unverified After a fact nobody has checked in the game yet. {{Unverified}} [unchecked]

Controls

Controls makes a table of keys and what each does. Write Shift+W for keys pressed together, and W/Up for keys that do the same thing.

{{Controls
| W/Up    | What the first key does.
| Shift+W | What the two keys do together.
}}
KeyWhat it does
W or UpWhat the first key does.
Shift + WWhat the two keys do together.

Boxes

Tip

A shortcut or a better way of doing something: {{Tip|…}}.

Note

Something worth knowing that doesn't fit the flow of the text: {{Note|…}}.

Warning

A mistake that is easy to make, and what it costs: {{Warning|…}}. Use it sparingly.

Player theory

This is what some players think. The developers haven't confirmed it, and it may be wrong.

A theory or rumour from players, and what it's based on: {{Theory|…}}. Never write one into the text as fact.

If the text of a box has an equals sign (=) in it, start it with 1=: {{Tip|1=…}}.

Routes

Stops draws the stops of a route in order, with a dot at each. Each stop links to its page.

{{Stops|First station|Second station|Third station}}

  1. First station
  2. Second station
  3. Third station

Cards

Card makes a card that links to a page, as on the Main Page. Put the cards in a grid:

<div class="wcr-cards">
{{Card|link=[[Page]]|text=A line about the page.}}
{{Card|link=[[Another page]]|text=A line about it.}}
</div>

At the bottom of a page

Stub marks a page that has only the basics so far, and adds it to Category:Stubs so others can find it and add to it. Take it off when the page covers its subject.

{{Stub}}

Navbox links the other pages on a subject, such as every station on a line. Make one template for each subject, with the Navbox in it, and put that template at the end of each of those pages. Its page explains how.

Clear starts what follows below an infobox, rather than beside it: {{Clear}}.