Template:Infobox card: Difference between revisions
Infobox for cards |
m fixed card name. renamed parameter to target_range since it's not always a template. Added target range to Emergency Shield example. |
||
| (One intermediate revision by the same user not shown) | |||
| Line 22: | Line 22: | ||
--><!-- | --><!-- | ||
STACK SIZE | STACK SIZE | ||
-->{{#if: {{{stack_size|}}} |Stack Size: {{{stack_size | -->{{#if: {{{stack_size|}}} |Stack Size: {{{stack_size}}}x }}<!-- | ||
END STACK SIZE | END STACK SIZE | ||
--><!-- | --><!-- | ||
| Line 29: | Line 29: | ||
-->{{#if: {{{effect1|}}} | | -->{{#if: {{{effect1|}}} | | ||
<div id="fp-infobox-card-effects" style="display: flex; flex-wrap: wrap; align-items: flex-start; color: #dfac3b;"> | <div id="fp-infobox-card-effects" style="display: flex; flex-wrap: wrap; align-items: flex-start; color: #dfac3b;"> | ||
; Effects : {{#if: {{{effect1_link|}}} | [[{{{effect1_link}}}|{{{effect1}}}]] | {{{ | ; Effects : {{#if: {{{effect1_link|}}} | [[{{{effect1_link}}}|{{{effect1}}}]] | {{{effect|}}} }} | ||
{{#if: {{{effect2|}}} |: {{#if: {{{effect2_link|}}} | [[{{{effect2_link}}}|{{{effect2}}}]] | {{{effect2 | {{#if: {{{effect2|}}} |: {{#if: {{{effect2_link|}}} | [[{{{effect2_link}}}|{{{effect2}}}]] | {{{effect2}}} }} | ||
{{#if: {{{effect3|}}} |: {{#if: {{{effect3_link|}}} | [[{{{effect3_link}}}|{{{effect3}}}]] | {{{effect3 | {{#if: {{{effect3|}}} |: {{#if: {{{effect3_link|}}} | [[{{{effect3_link}}}|{{{effect3}}}]] | {{{effect3}}} }} }} | ||
}} | }} | ||
</div> }}<!-- | </div> }}<!-- | ||
| Line 38: | Line 38: | ||
DESCRIPTION | DESCRIPTION | ||
-->{{#if: {{{description|}}} |<div class="fp-infobox-card-description" style="margin-top: 16px;">{{{description|}}}</div> }}<!-- | -->{{#if: {{{description|}}} |<div class="fp-infobox-card-description" style="margin-top: 16px;">{{{description|}}}</div> }}<!-- | ||
END DESCRIPTION--> | END DESCRIPTION | ||
--><!-- | |||
TARGET RANGE | |||
-->{{#if: {{{target_range|}}} |<div class="fp-infobox-target-range" style="margin-top: 24px;"> | |||
<p style="text-align: center; margin: 0.3em 0;">Target Range</p> | |||
{{{target_range|}}} | |||
</div> }}<!-- | |||
END TARGET RANGE--> | |||
</div> | </div> | ||
</div></includeonly><noinclude>{{Infobox card | </div></includeonly><noinclude>{{Infobox card | ||
| Line 54: | 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 | |title=Artillery Attack | ||
|card_color=Red | |card_color=Red | ||
|icon=CardTexture_ArtilleryShot.png | |icon=CardTexture_ArtilleryShot.png | ||
| Line 70: | 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={{Target range Artillery Attack}} | |||
}} | }} | ||
| Line 86: | 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= | |||
}} | }} | ||
| Line 105: | Line 115: | ||
|effect3_link= | |effect3_link= | ||
|description= | |description= | ||
|target_range= | |||
}}</pre> | }}</pre> | ||
| Line 133: | Line 144: | ||
| effect#_link || If appropriate, the name of the page (or <code>page#section</code>) that describes the effect, for example, "''[[Shield]]''". | | effect#_link || If appropriate, the name of the page (or <code>page#section</code>) 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 {{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 || Call a separately created template for the grid using [[Template:Target range grid]], or write the text on the card. | |||
|} | |} | ||
[[Category: Infobox templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 03:20, 11 July 2026
Emergency Shield
Artillery Attack
- Effects
- Damage: 1
- Move Target
Target Range
Emergency Brakes
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.
| 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. |


