Template:Piece

From Wikicarpedia
Revision as of 14:24, 23 February 2023 by Bumsakalaka (talk | contribs) (Created page with "{{#if: {{{count|}}} | {{{count}}}×{{#ifeq: {{{variant}}} | abbr | | <nowiki> </nowiki>}} }}{{#switch: {{{name}}} | Castle = {{BridgesCastlesBazaarsLink|edition={{{edition|}}}|logo=hide|text={{#ifeq: {{{variant}}} | short | <translate>Castle</translate> | <translate>Castle Token</translate>}}}} | <code><translate><!--T:2--> Unknown name</translate></code> {{{name}}} }}{{#if: {{{edition|}}} | | Category:Editor manual - Missing edition in Piece }}<noinclude><language...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Unknown name {{{name}}}

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
  • variant Optional. Some pieces can have defined short variant of name Castle vs Castle token
  • 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
{{Feature|name=Castle|edition=C2}} Castle
{{Feature|name=Castle|edition=C2|version=short}} Castle
The TunnelThe Tunnel
Will be added
Fan Expansions with Complete Rules
Cleric & SerfCleric & Serf
Will be added