Template:Card
The Card template can be used for displaying a card in various modes.
Contents
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:
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:
|
|
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:
|
|
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:
|
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: