Eternal Card Game Wiki
Advertisement
Eternal Card Game Wiki
This is not the main page!

This is the template test cases page for a sandbox of Template:Card.

Experiment with the template's code on the sandbox page then test the sandboxed template and its parameters here. Changes are usually compared to the main version. Testing of substantial template changes should be done before editing the main version, especially where it could potentially break many pages that use the main template.

Note: Anything added here may be deleted in the future by other users' tests. Keep this in mind if you want to continue later.


Purge this page to update the examples. (Why?)

Primary Sandbox

Testing the addition of multiple card images to the original (single image) template.

Test #1: No Arguments

Expect: Nothing/non-functional wikitext

Result:


Test #2: 1 Unnamed Argument (Card Name)

Expect: Just the card image, linked to the card page

Result: Seat of Fury.png

Test #3: 1 Unnamed Argument (Card Name), "link=none"

Expect: The card image, linked to its image page

Result: Seat of Fury.png

Test #4: 1 Unnamed Argument (Card Name), "link="

Expect: The card image, no links

Result: Seat of Fury.png

Test #5: 1 Unnamed Argument (Card Name), "link=Seat of Wisdom" "size=100"

Expect: The card image, linked to the another page, with a 100px width

Result: Seat of Fury.png

Test #6: 2 Unnamed Argument (2 Card Names)

Expect: 2 card images, linked to their card pages

Result (code):

<div class="cardGallery"><gallery hideaddbutton="true" spacing="small" orientation="portrait" widths="150" bordersize="none">
Seat of Fury.png|link=Seat of Fury
Seat of Wisdom.png|link=Seat of Wisdom</gallery></div>

Result:

Test #7: 3 Unnamed Argument (3 Card Names), "link=none" "size=100"

Expect: 3 card images, linked to their image pages, with a 100px width

Result (code):

<div class="cardGallery"><gallery hideaddbutton="true" spacing="small" orientation="portrait" widths="100" bordersize="none">
Seat of Fury.png
Seat of Wisdom.png
Seat of Fury.png</gallery></div>

Result:

Secondary Sandbox - Hover Popups

These test cases are for an older sandbox that added hover popups (keyword descriptions and token images) into the card image. This was not incorporated into the main template. The sandbox was moved to {{Card/sandbox2}} and these testcases left here, in case the code may be useful for other templates.

Test #1: No Arguments

Expect: Nothing/non-functional wikitext

Result: [[File:{{{1}}}.png|link={{{1}}}|300x300px]]

Test #2: 1 Unnamed Argument (Card Name)

Expect: Just the card image, no hover popups

Result: Seat of Fury.png


Test #3: 2+ Unnamed Arguments (Card + Multiple Keywords)

Expect: Just the card image, no hover popups

Result: Seat of Fury.png


Test #4: 'keywords' Parameter (Card + 1 Keyword)

Expect: Card image with popup description for just the single keyword

Result:

Seat of Fury.png
Depleted:
Isn't usable the turn it is played.


Test #5: 'keywords' Parameter (Card + Multiple Keywords)

Expect: Card image with popup descriptions for all the input keywords

Result:

Seat of Fury.png
Aegis:
Protected from one enemy spell or effect (but not from battle damage).

Curses:
Curses are detrimental attachments that are played on enemy units. There are also Cursed Relics which can be played on the enemy avatar.

Depleted:
Isn't usable the turn it is played.

Silence:
Remove all text from a card and its attachments.


Test #6: 'tokens' Parameter (Card + 1 Token)

Expect: Card image with popup image for just the single token

Result: Seat of Fury.pngPig Token


Test #7: 'tokens' Parameter (Card + Multiple Token)

Expect: Card image with popup images for all the input tokens

Result: Seat of Fury.pngDragon Token
Pig Token


Test #8: 'keywords' & 'tokens' Parameters (Card + 1 Keyword + 1 Token)

Expect: Card image with popup keyword description & token image

Result:

Seat of Fury.png
Depleted:
Isn't usable the turn it is played.
Pig Token
Advertisement