Template:Infobox Card
From DominionStrategy Wiki
(Difference between revisions)
(Added style parameters) |
|||
(42 intermediate revisions by 11 users not shown) | |||
Line 7: | Line 7: | ||
|datastyle = {{{datastyle|}}} | |datastyle = {{{datastyle|}}} | ||
− | |above = {{{name}}} | + | |above = [[{{{name}}}]] |
|image = {{{image|[[File:{{#ifexist:File:{{{name}}}.jpg|{{{name|Card back}}}|Card back}}.jpg|200px]]}}} | |image = {{{image|[[File:{{#ifexist:File:{{{name}}}.jpg|{{{name|Card back}}}|Card back}}.jpg|200px]]}}} | ||
+ | |caption = {{#if:{{{image|}}}{{{image2|}}}||{{#ifexist:File:{{{name}}}.jpg||<span class="plainlinks">''It seems we don't have the card image. Maybe you can [{{fullurl:Special:Upload|wpDestFile={{urlencode:{{{name}}}.jpg|PATH}}}} upload] it?''</span>}}}} | ||
|image2 = {{#if:{{{image2|}}}|{{{image2}}}}} | |image2 = {{#if:{{{image2|}}}|{{{image2}}}}} | ||
+ | |caption2 = {{#if:{{{caption2|}}}|''{{{caption2|}}}''}} | ||
|header1 = Info | |header1 = Info | ||
− | |label2 = Cost | + | |label2 = [[Cost]] |
− | |data2 = {{Cost|{{{cost| | + | |data2 = {{Cost|{{{cost|}}}||{{{cost2|}}}}} |
− | | | + | |label3 = [[Card types|Type(s)]] |
− | | | + | |data3 = {{#if:{{{type1|}}}|[[{{{type1|}}}]]}}{{#if:{{{type2|}}}| - [[{{{type2}}}]]}}{{#if:{{{type3|}}}| - [[{{{type3}}}]]}}{{#if:{{{type4|}}}| - [[{{{type4}}}]]}} |
− | | | + | |label4 = [[Kingdom card]]? |
− | | | + | |data4 = {{ucfirst:{{lc:{{{kingdom|Yes}}}}}}} |
− | | | + | |label5 = [[Expansions|Set]] |
− | | | + | |data5 = {{SetAndIconLink|{{{set|}}}|{{{name|}}}}} |
− | | | + | |label6 = a.k.a. |
− | | | + | |data6 = {{{aka|}}} |
− | | | + | |label7 = Illustrator(s) |
− | | | + | |data7 = {{#if:{{{illustrator|{{{illustrator2|}}}}}}|{{#if:{{{illustrator|}}}|[[{{{illustrator|}}}]]}}{{#if:{{{illustrator2|}}}|<br />[[{{{illustrator2}}}]]}}|?}} |
− | }}<includeonly> | + | |
+ | |header8 = Card text | ||
+ | |data9 = ''{{{text| }}}''{{#if:{{{text2|}}}|<hr style="width:66%;margin-left:17%;text-align:center;" />''{{{text2}}}''}} | ||
+ | |||
+ | |header10= {{#if:{{{article|}}}{{{combo1|}}}{{{combo2|}}}{{{combo3|}}}{{{combo4|}}}{{{counteredby1|}}}{{{counteredby2|}}}{{{counteredby3|}}}{{{counteredby4|}}}{{{counterto1|}}}{{{counterto2|}}}{{{counterto3|}}}{{{counterto4|}}}|Strategy}} | ||
+ | |||
+ | |label11 = Article | ||
+ | |data11 = {{#if:{{{article|}}}|[{{{article|}}}]}} | ||
+ | |||
+ | |label12 = Combos with | ||
+ | |data12 = {{#if:{{{combo1|}}}|{{#ifexist:Combo: {{{combo1}}} and {{{name}}}|[[Combo: {{{combo1}}} and {{{name}}}|{{{combo1}}}]]|[[Combo: {{{name}}} and {{{combo1}}}|{{{combo1}}}]]}}}}{{#if:{{{combo2|}}}|<br />{{#ifexist:Combo: {{{combo2}}} and {{{name}}}|[[Combo: {{{combo2}}} and {{{name}}}|{{{combo2}}}]]|[[Combo: {{{name}}} and {{{combo2}}}|{{{combo2}}}]]}}}}{{#if:{{{combo3|}}}|<br />{{#ifexist:Combo: {{{combo3}}} and {{{name}}}|[[Combo: {{{combo3}}} and {{{name}}}|{{{combo3}}}]]|[[Combo: {{{name}}} and {{{combo3}}}|{{{combo3}}}]]}}}}{{#if:{{{combo4|}}}|<br />{{#ifexist:Combo: {{{combo4}}} and {{{name}}}|[[Combo: {{{combo4}}} and {{{name}}}|{{{combo4}}}]]|[[Combo: {{{name}}} and {{{combo4}}}|{{{combo4}}}]]}}}} | ||
+ | |||
+ | |label13 = Counter to | ||
+ | |data13 = {{#if:{{{counterto1|}}}|[[Counter: {{{counterto1}}} vs {{{name}}}|{{{counterto1}}}]]}}{{#if:{{{counterto2|}}}|<br />[[Counter: {{{counterto2}}} vs {{{name}}}|{{{counterto2}}}]]}}{{#if:{{{counterto3|}}}|<br />[[Counter: {{{counterto3}}} vs {{{name}}}|{{{counterto3}}}]]}}{{#if:{{{counterto4|}}}|<br />[[Counter: {{{counterto4}}} vs {{{name}}}|{{{counterto4}}}]]}} | ||
+ | |||
+ | |label14 = Countered by | ||
+ | |data14 = {{#if:{{{counteredby1|}}}|[[Counter: {{{counteredby1}}} vs {{{name}}}|{{{counteredby1}}}]]}}{{#if:{{{counteredby2|}}}|<br />[[Counter: {{{counteredby2}}} vs {{{name}}}|{{{counteredby2}}}]]}}{{#if:{{{counteredby3|}}}|<br />[[Counter: {{{counteredby3}}} vs {{{name}}}|{{{counteredby3}}}]]}}{{#if:{{{counteredby4|}}}|<br />[[Counter: {{{counteredby4}}} vs {{{name}}}|{{{counteredby4}}}]]}} | ||
+ | }}<includeonly>{{#if:{{{nocats|}}}|| | ||
[[Category: Cards]] | [[Category: Cards]] | ||
− | [[Category: Cards costing {{{cost|{{Card2cost|{{{name|}}}}}}}}]] | + | {{#ifeq:{{{name|}}}|Fortune|[[Category:Cards costing 8/8 Debt]]|{{#if:{{{cost|{{Card2cost|{{{name|}}}}}}}}|[[Category:Cards costing {{{cost|{{Card2cost|{{{name|}}}}}}}}]]}}}} |
− | [[Category: {{{type1}}} cards]] | + | {{#if:{{{type1|}}}|[[Category: {{{type1}}} cards]]}} |
{{#if:{{{type2|}}}|[[Category: {{{type2}}} cards]]}} | {{#if:{{{type2|}}}|[[Category: {{{type2}}} cards]]}} | ||
{{#if:{{{type3|}}}|[[Category: {{{type3}}} cards]]}} | {{#if:{{{type3|}}}|[[Category: {{{type3}}} cards]]}} | ||
{{#if:{{{type4|}}}|[[Category: {{{type4}}} cards]]}} | {{#if:{{{type4|}}}|[[Category: {{{type4}}} cards]]}} | ||
− | {{#ifeq:{{{kingdom|Yes}}}|Yes|[[Category:Kingdom cards]]}} | + | {{#ifeq:{{{kingdom|Yes}}}|Yes|[[Category:Kingdom cards]]|{{#ifeq:{{{supply|No}}}|Yes|[[Category:Supply cards]]|[[Category:Non-Supply cards]]}}}} |
− | [[Category: {{{set}}} cards]] | + | [[Category: {{{set|{{Card2set|{{{name}}}}}}}} cards]] |
− | [[Category: Cards illustrated by {{{illustrator}}}]] | + | {{#if:{{{illustrator|}}}|[[Category: Cards illustrated by {{{illustrator}}}]]}} |
− | </includeonly><noinclude><br style="clear:both" /> | + | {{#if:{{{illustrator2|}}}|[[Category: Cards illustrated by {{{illustrator2}}}]]}} |
+ | }}</includeonly><noinclude><br style="clear:both" /> | ||
{{doc}} | {{doc}} | ||
</noinclude> | </noinclude> |
Revision as of 08:41, 7 March 2020
[[{{{name}}}]] | |
---|---|
It seems we don't have the card image. Maybe you can upload it? | |
Info | |
Cost | |
Kingdom card? | Yes |
Set | [[]] |
Illustrator(s) | ? |
Card text | |
Template documentation [edit]
This template may be used to summarize information about a Dominion card at the top of the page.
Contents |
Usage
The infobox may be added by pasting the blank templates below into an article and filling in the parameters. For a description of the parameters , see below.
Blank template with basic parameters
{{Infobox Card | name = | type1 = | type2 = | type3 = | type4 = | abbr = | illustrator = | text = }}
Blank template with all parameters
{{Infobox Card | bodystyle = | namestyle = | imagestyle = | headerstyle = | labelstyle = | datastyle = | name = | image = | image2 = | cost = | type1 = | type2 = | type3 = | type4 = | abbr = | kingdom = | supply = | set = | illustrator = | text = | text2 = | article = | combo1 = | combo2 = | combo3 = | combo4 = | counterto1 = | counterto2 = | counterto3 = | counterto4 = | counteredby1 = | counteredby2 = | counteredby3 = | counteredby4 = | nocats = }}
Parameters
Required
- name
- Name of the card.
- type1
- Type of the card.
- illustrator
- Name of the illustrator for the card.
- text
- Card text. Use {{Cost}} as necessary.
- Note: It seems that if a line break (not "<br />", but a real line break in the wikitext) is used, only the first line will be italicized so don't do that.
Optional
- image
- Image of the card. Use full image syntax (e.g. [[File:Tactician.jpg|200px]]). Defaults to Cardname.jpg (or Card back.jpg if that doesn't exist).
- image2
- Second image. Use full image syntax. Defaults to Cardname-new.jpg if that exists. Note that this can be used without supplying
image
, in which caseimage
defaults as described above. - caption2
- Caption text below the second image.
- cost
- Cost of the card. Use, for example, "4P", for Potion cards. Defaults to cost of the named card retrieved from {{Card2cost}}.
- typen
- Additional types of the card.
- set
- Name of the expansion the card is in or "Base". Defaults to the set of the named card retrieved from {{Card2set}}.
- kingdom
- "Yes" if the card is a Kingdom card, "No" if not. Defaults to "Yes".
- supply
- "Yes" if the card is a Supply card, "No" if not. Defaults to "No". Only relevant if kingdom=No (since Kingdom cards are always in the Supply).
- aka
- Common abbreviations and other names of the card.
- illustrator2
- Name a second illustrator if applicable.
- text2
- If card text consists of top and bottom parts, supply the top part as
text
and the bottom part astext2
. This is recommended over using a horizontal rule intext
.
- article
- URL of the original article page.
- combon
- Cards that combos with the card.
- counterton
- Cards the card is a counter to.
- counteredbyn
- Cards that counter the card.
- nocats
- If this is not whitespace, categories will not be added. Useful when showing info about the card on related articles.
Style rules
- bodystyle
- Style rules applied to the whole box.
- namestyle
- Style rules applied to the name of the card.
- imagestyle
- Style rules applied to the image cells.
- headerstyle
- Style rules applied to the headers.
- labelstyle
- Style rules applied to the labels.
- datastyle
- Style rules applied to the data cells.
Examples
Tactician | |
---|---|
Info | |
Cost | |
Type(s) | Action - Duration |
Kingdom card? | Yes |
Set | Seaside |
Illustrator(s) | Martin Hoffmann |
Card text | |
Discard your hand. If you discarded any cards this way, then at the start of your next turn, +5 Cards; +1 Buy; and +1 Action. |
{{Infobox Card| |name = Tactician |type1 = Action |type2 = Duration |illustrator = Martin Hoffmann |text = Discard your hand. <br />If you discarded any cards this way, then at the start of your next turn, +5 Cards; +1 Buy; and +1 Action. }}
Dame Josephine | |
---|---|
Info | |
Cost | |
Type(s) | Action - Attack - Knight - Victory |
Kingdom card? | Yes |
Set | Dark Ages |
Illustrator(s) | Lynell Ingram |
Card text | |
Each other player reveals the top 2 cards of his deck, trashes one of them costing from to , and discards the rest. If a Knight is trashed by this, trash this card. 2 |
{{Infobox Card| |name = Dame Josephine |type1 = Action |type2 = Attack |type3 = Knight |type4 = Victory |illustrator = Lynell Ingram |text = Each other player reveals the top 2 cards of his deck, trashes one of them costing from {{Cost|3}} to {{Cost|6}}, and discards the rest. If a Knight is trashed by this, trash this card. |text2 = {{VP|'''2'''|l}} }}
Gold | |
---|---|
Info | |
Cost | |
Type(s) | Treasure |
Kingdom card? | No |
Set | Base |
Illustrator(s) | Ryan Laukat |
Card text | |
{{Infobox Card| |name = Gold |image2 = [[File:Gold-new.jpg|200px]] |kingdom = No |supply = Yes |type1 = Treasure |illustrator = Ryan Laukat |text = {{Cost|3|xl}} }}