Difference between revisions of "Template:Piece"

From Wikicarpedia
Jump to navigation Jump to search
Line 45: Line 45:
| <code><nowiki>{{Piece|name=CastleToken|edition=C2|variant=short}}</nowiki></code> || {{Piece|name=CastleToken|edition=C2|variant=short}}
| <code><nowiki>{{Piece|name=CastleToken|edition=C2|variant=short}}</nowiki></code> || {{Piece|name=CastleToken|edition=C2|variant=short}}
|-
|-
| <code><nowiki>{{Piece|name=CastleToken|edition=C1|variant=image}}</nowiki></code> || {{Piece|name=CastleToken|edition=C1|variant=image}} {{BridgesCastlesBazaarsLink|linkonly=true|edition=C1}}
| <code><nowiki>{{Piece|name=CastleToken|edition=C1|variant=image}}</nowiki></code> || {{Piece|name=CastleToken|edition=C1|variant=image}} {{BridgesCastlesBazaarsLink|linkonly=true|edition=C1|logo=hide|text=''}}
{{BridgesCastlesBazaarsLink|linkonly=true|edition=C1}}
|-
|-
| <code><nowiki>{{Piece|name=CastleToken|edition=C2|variant=image}}</nowiki></code> || {{Piece|name=CastleToken|edition=C2|variant=image}}  
| <code><nowiki>{{Piece|name=CastleToken|edition=C2|variant=image}}</nowiki></code> || {{Piece|name=CastleToken|edition=C2|variant=image}}  
{{BridgesCastlesBazaarsLink|linkonly=true|edition=C2|logo=hide|text=''}}
{{BridgesCastlesBazaarsLink|linkonly=true|edition=C2}}
{{BridgesCastlesBazaarsLink|linkonly=true|edition=C2}}
|-
|-

Revision as of 15:51, 23 February 2023

Unknown name {{{name}}}

Exclamation2.png

This page is Under construction!
Rules, texts, images and others can be changed.

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 Bridges, Castles and Bazaars (1st edition)

Bridges, Castles and Bazaars (1st edition)

{{Piece|name=CastleToken|edition=C2|variant=image}} Token Castle C2.png

Bridges, Castles and Bazaars Bridges, Castles and Bazaars

The TunnelThe Tunnel
Will be added
Fan Expansions with Complete Rules
Cleric & SerfCleric & Serf
Will be added