Template:Infobox card: Difference between revisions

From Fogpiercer Official Wiki
Added template range template parameter. Added infobox category.
m fixed card name. renamed parameter to target_range since it's not always a template. Added target range to Emergency Shield example.
 
Line 41: Line 41:
--><!--
--><!--
TARGET RANGE
TARGET RANGE
-->{{#if: {{{target_range_template|}}} |<div class="fp-infobox-target-range" style="margin-top: 16px;">
-->{{#if: {{{target_range|}}} |<div class="fp-infobox-target-range" style="margin-top: 24px;">
<p style="text-align: center;">Target Range</p>
<p style="text-align: center; margin: 0.3em 0;">Target Range</p>
{{{target_range_template|}}}
{{{target_range|}}}
</div> }}<!--
</div> }}<!--
END TARGET RANGE-->
END TARGET RANGE-->
Line 61: Line 61:
|effect3_link=Innate
|effect3_link=Innate
|description=Give {{Modifiable value|2}} shield to any unit.
|description=Give {{Modifiable value|2}} shield to any unit.
|target_range=<span style="color: {{CardYellow}};">All units.</span>
}}
}}


{{Infobox card
{{Infobox card
|title=Artillery Shot
|title=Artillery Attack
|card_color=Red
|card_color=Red
|icon=CardTexture_ArtilleryShot.png
|icon=CardTexture_ArtilleryShot.png
Line 77: Line 78:
|effect3_link=
|effect3_link=
|description=Deal {{Modifiable value|1}} damage, push units away from the point of impact.
|description=Deal {{Modifiable value|1}} damage, push units away from the point of impact.
|target_range_template={{Target range Artillery Attack}}
|target_range={{Target range Artillery Attack}}
}}
}}


Line 94: Line 95:
|effect3_link=
|effect3_link=
|description=Move back by {{Modifiable value|1}} the next time you play a red card this turn.
|description=Move back by {{Modifiable value|1}} the next time you play a red card this turn.
|target_range_template=
|target_range=
}}
}}


Line 114: Line 115:
|effect3_link=
|effect3_link=
|description=
|description=
|target_range_template=
|target_range=
}}</pre>
}}</pre>


Line 145: Line 146:
| description || The text written on the card, exactly as written. For modifiable values that show up in green, as in the following: "''Give {{Modifiable value|2}} shield to any unit.''"—use the [[Template:Modifiable value|Modifiable value template]], for example, <code><nowiki>{{Modifiable value|2}}</nowiki></code>.
| description || The text written on the card, exactly as written. For modifiable values that show up in green, as in the following: "''Give {{Modifiable value|2}} shield to any unit.''"—use the [[Template:Modifiable value|Modifiable value template]], for example, <code><nowiki>{{Modifiable value|2}}</nowiki></code>.
|-
|-
| target_range_template || Call the template itself, created separately using [[Template:Target range grid]].
| target_range || Call a separately created template for the grid using [[Template:Target range grid]], or write the text on the card.
|}
|}



Latest revision as of 03:20, 11 July 2026

Emergency Shield

2 AP AP
Carriage: Protector
Card color: Blue ━━━━━━━━
Stack Size: 1x
Give 2 shield to any unit.

Target Range

All units.

Artillery Attack

2 AP AP
Carriage: Artillery
Card color: Red ━━━━━━━━
Stack Size: 2x
Deal 1 damage, push units away from the point of impact.

Target Range

Emergency Brakes

0 AP AP
Carriage: Locomotive
Card color: Yellow ━━━━━━━━
Stack Size: 1x
Move back by 1 the next time you play a red card this turn.

Template Usage

Copy the following to where you need a new card infobox. Be sure you need just this infobox and not the whole Card page template instead.

<!--Infobox card template parameters are explained at https://wiki.hoodedhorse.com/Fogpiercer/Template:Infobox_card-->
{{Infobox card
|title=
|card_color=
|icon=
|ap=
|carriage=
|stack_size=
|effect1=
|effect1_link=
|effect2=
|effect2_link=
|effect3=
|effect3_link=
|description=
|target_range=
}}

In case of game patches, I recommend leaving any unused parameters in the list but blank, in case the devs add an effect, for example. It will also help admins and other authors recognize what might have changed in the template itself since you first included it, for example, to see that a new parameter needs to be added to a use of the template.

Parameters

If no title is specified, the infobox will say "Card" at the top. All other parameters are optional, and the infobox will omit that field or feature if you leave that parameter blank.

Infobox parameters
Parameter Usage
title The title of the card.
card_color blue, red, or yellow.
icon The filename of the icon image uploaded to this wiki, including the extension. Use Special:Upload to upload a new image. Use GDRE ripped source assets whenever possible instead of screenshots.
ap How many action points the card takes, or a range, for example, "(0-3)".
carriage Which carriage the card belongs to. Use the name of the associated page, so that the link works, for example "Artillery".
stack_size When the card is added to your deck, how many cards are added at once. This shows up as a "1x" or "2x" in the top-left corner when choosing.
effect# For effects 1, 2, and 3, the text shown on the card, for example, "Shield: 2".
effect#_link If appropriate, the name of the page (or page#section) that describes the effect, for example, "Shield".
description The text written on the card, exactly as written. For modifiable values that show up in green, as in the following: "Give 2 shield to any unit."—use the Modifiable value template, for example, {{Modifiable value|2}}.
target_range Call a separately created template for the grid using Template:Target range grid, or write the text on the card.