Template:Card

From Elements the Game Wiki
Jump to navigation Jump to search

The Card template can be used for displaying a card in various modes.

Usage

{{Card|Card Name|Display Mode|Display Upgrade}}
Card Name
  • Value (Optional in card articles): Name of the card.
  • Should be always the name of the unupgraded card
Display Mode
  • Value (Optional): Auto | Data Page | Table Block | Card Page | Image Only
  • Image Only displays just pure images, Data Page displays the data page, while Auto (which is the default value) tries to automatically select Table Block or Card Page mode depending on current page name.
Display Upgrade
  • Value (Optional): No Upgrade | Upgrade Only
  • When omitted, both basic and upgraded cards are displayed.
Note: Please note that Display Mode should be explicitly defined as "Card Page" in card articles if card name contains an apostrophe (eg. Owl's Eye) due to a wiki parser function bug.

Examples

Image Only Mode

This mode can be used to display the cards as simple images. Images work as links to the card article.

Example:

{{Card|Quantum Pillar|Image Only}}

Result:

Quantum Pillar Upgrade.png Quantum Tower


Remark: To display single cards use either <card></card> tags or the Single Card template, or specify the Display Upgrade parameter.

Table Block Mode

This mode can be used to display card data as table cells. Shows data of the card in user-friendly format and provides link to the card page through the name and the image.

Example:

{{Card|Quantum Pillar}}

Result:

Quantum Pillar
Quantum Pillar TYPE Permanent
ELEMENT Other
COST Free
ATK | HP -
DESCRIPTION Each turn 3 random quanta are generated
SKILL
PASSIVES
RARITY Common
BUY/SELL 6/4
Quantum Tower
Quantum Tower TYPE Permanent
ELEMENT Other
COST Free
ATK | HP -
DESCRIPTION Each turn 3 random quanta are generated. Gain 3 extra quanta when you play this card.
SKILL
PASSIVES
RARITY Common (Upgraded)
BUY/SELL Impossible/1156


Card Page Mode

This mode is for displaying the card in its article. Shows data of the card in user-friendly format and provides link to edit card data. When this mode is used the page will be automatically categorized based on card data.

This is default when the card name is the same as the page name, except if card name contains apostrophe, but you can force Card Page as following example shows:

{{Card|Owl's Eye|Card Page}}

Data Page Mode

This mode displays every defined data of the card in raw format. Provides links for editing data and to card page. This is the mode used in data pages, but can be enforced also by defining Data Page as Display Mode:

Example:

{{Card|Quantum Pillar|Data Page}}

Result:

Quantum Pillar (Data Page) NAME Quantum Pillar
Quantum Pillar

Edit Data
See Card Page

IMAGE [1]
TYPE Permanent
SUB-TYPE Pillar
ELEMENT Other
COST 0
COST ELEMENT Other
ATK
HP
DESCRIPTION Each turn 3 random quanta are generated
SKILL
PASSIVE
PASSIVE2
RARITY 1
PRICE LEVEL 1 → Buy/Sell = 6/4
Quantum Tower NAME Quantum Tower
Quantum Tower
IMAGE [2]
TYPE Permanent
SUB-TYPE Pillar
ELEMENT Other
COST 0
COST ELEMENT Other
ATK
HP
DESCRIPTION Each turn 3 random quanta are generated. Gain 3 extra quanta when you play this card.
SKILL
PASSIVE
PASSIVE2
RARITY 1
PRICE LEVEL 17 → Buy/Sell = Impossible/1156


No Upgrade and Upgrade Only

You can specify whether to display only the upgraded or non-upgraded cards.

Example:

{{Card|Quantum Pillar|Table Block|No Upgrade}}

Result:

Quantum Pillar
Quantum Pillar TYPE Permanent
ELEMENT Other
COST Free
ATK | HP -
DESCRIPTION Each turn 3 random quanta are generated
SKILL
PASSIVES
RARITY Common
BUY/SELL 6/4

 



Please note that you must always use the basic card name even if you want to display only the upgraded card:

Example:

{{Card|Quantum Pillar|Image Only|Upgrade Only}}

Result:

Quantum Tower