Template:Piece

From Wikicarpedia
Revision as of 15:31, 23 February 2023 by Bumsakalaka (talk | contribs)
Jump to navigation Jump to search

{{#switch: {{{name}}}

| CastleToken = Castle Token

Description

Translatable lists of pieces

Possible future version can read those data from some kind of database. Currently it is hardcoded. But when it will replaced by mentioned database approach, it will not need to update any Wiki page for it, because it's called by variables defined in this template.

Params

  • name Required. Name of piece.
  • edition Optional. For expansions with edition depend rule pages, like C1, C2, C3, WE1, WE2, WE3
  • variant Optional. [ abbr | image | short ] Some pieces can have defined short variant of name Castle vs Castle token or abbr.
  • count Optional. Prepend count of feature with text {{{count}}}x. When type=abbr, then there is no space between count and feature.


Examples

Code Output
Exp. 4 - The TowerExp. 4 - The Tower
Will be added
Exp. 6 - Count, King & RobberExp. 6 - Count, King & Robber
Will be added
Exp. 8 - Bridges, Castles & BazaarsExp. 8 - Bridges, Castles & Bazaars
{{Piece|name=CastleToken|edition=C2}} Castle token
{{Piece|name=CastleToken|edition=C2|variant=short}} Castle
{{Piece|name=CastleToken|edition=C1|variant=image}} Token Castle C1.png
{{Piece|name=CastleToken|edition=C2|variant=image}} Token Castle C2.png
The TunnelThe Tunnel
Will be added
Fan Expansions with Complete Rules
Cleric & SerfCleric & Serf
Will be added