Template:Infobox Card/doc: Difference between revisions
Jump to navigation
Jump to search
Wikiwikiwiki (talk | contribs) No edit summary |
|||
(18 intermediate revisions by 5 users not shown) | |||
Line 7: | Line 7: | ||
<pre>{{Infobox Card | <pre>{{Infobox Card | ||
| name = | | name = | ||
| cost = | |||
| cost2 = | |||
| cost3 = | |||
| type1 = | | type1 = | ||
| type2 = | | type2 = | ||
| type3 = | | type3 = | ||
| type4 = | | type4 = | ||
| | | abbr = | ||
| illustrator = | | illustrator = | ||
| text = | | text = | ||
Line 18: | Line 21: | ||
===Blank template with all parameters=== | ===Blank template with all parameters=== | ||
<pre>{{Infobox Card | <pre>{{Infobox Card | ||
| bodystyle | | bodystyle = | ||
| namestyle | | namestyle = | ||
| imagestyle | | imagestyle = | ||
| headerstyle = | | headerstyle = | ||
| labelstyle | | labelstyle = | ||
| datastyle | | datastyle = | ||
| name | | name = | ||
| image | | image = | ||
| image2 | | image2 = | ||
| cost = | | cost = | ||
| type1 | | cost2 = | ||
| type2 | | cost3 = | ||
| type3 | | type1 = | ||
| type4 | | type2 = | ||
| kingdom | | type3 = | ||
| set | | type4 = | ||
| illustrator = | | abbr = | ||
| text = | | kingdom = | ||
| | | supply = | ||
| nocats | | set = | ||
| illustrator = | |||
| text = | |||
| text2 = | |||
| article = | |||
| nocats = | |||
}}</pre> | }}</pre> | ||
Line 44: | Line 54: | ||
===Required=== | ===Required=== | ||
; name : Name of the card. | ; name : Name of the card. | ||
; cost : Cost of the card in Coins (if applicable). | |||
; cost2 : Cost of the card in Debt (if applicable). | |||
; cost3 : Cost of the card in Potions (if applicable). | |||
; type1 : Type of the card. | ; type1 : Type of the card. | ||
; illustrator : Name of the illustrator for the card. | ; illustrator : Name of the illustrator for the card. | ||
; text : Card text. Use {{[[Template:Cost|Cost]]}} as necessary. | ; text : Card text. Use {{[[Template:Cost|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=== | ===Optional=== | ||
; image : Image of the card. Use full image syntax (e.g. <nowiki>[[File:Tactician.jpg|200px]]</nowiki>). Defaults to ''Cardname''.jpg (or Card back.jpg if that doesn't exist). | ; image : Image of the card. Use full image syntax (e.g. <nowiki>[[File:Tactician.jpg|200px]]</nowiki>). 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 <code>image</code>, in which case <code>image</code> defaults as described above. | ; image2 : Second image. Use full image syntax. Defaults to ''Cardname''-new.jpg if that exists. Note that this can be used without supplying <code>image</code>, in which case <code>image</code> defaults as described above. | ||
; | ; caption2 : Caption text below the second image. | ||
; type<sub>n</sub> : Additional types of the card. | ; type<sub>n</sub> : 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 {{[[Template:Card2set|Card2set]]}}. | |||
; kingdom : "Yes" if the card is a Kingdom card, "No" if not. Defaults to "Yes". | ; 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 <code>text</code> and the bottom part as <code>text2</code>. This is recommended over using a horizontal rule in <code>text</code>. | ; text2 : If card text consists of top and bottom parts, supply the top part as <code>text</code> and the bottom part as <code>text2</code>. This is recommended over using a horizontal rule in <code>text</code>. | ||
---- | |||
; article : URL of the original article page. | |||
---- | |||
; nocats : If this is not whitespace, categories will not be added. Useful when showing info about the card on related articles. | ; nocats : If this is not whitespace, categories will not be added. Useful when showing info about the card on related articles. | ||
Line 69: | Line 89: | ||
{{Infobox Card| | {{Infobox Card| | ||
|name = Tactician | |name = Tactician | ||
| | |cost = 5 | ||
|type1 = Action | |type1 = Action | ||
|type2 = Duration | |type2 = Duration | ||
Line 78: | Line 98: | ||
<pre style="overflow:auto">{{Infobox Card| | <pre style="overflow:auto">{{Infobox Card| | ||
|name = Tactician | |name = Tactician | ||
| | |cost = 5 | ||
|type1 = Action | |type1 = Action | ||
|type2 = Duration | |type2 = Duration | ||
Line 88: | Line 108: | ||
{{Infobox Card| | {{Infobox Card| | ||
|name = Dame Josephine | |name = Dame Josephine | ||
| | |cost = 5 | ||
|type1 = Action | |type1 = Action | ||
|type2 = Attack | |type2 = Attack | ||
Line 95: | Line 115: | ||
|illustrator = Lynell Ingram | |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. | |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 = | |text2 = {{VP|'''2'''|l}} | ||
|nocats = 1 | |nocats = 1 | ||
}} | }} | ||
<pre style="overflow:auto">{{Infobox Card| | <pre style="overflow:auto">{{Infobox Card| | ||
|name = Dame Josephine | |name = Dame Josephine | ||
| | |cost = 5 | ||
|type1 = Action | |type1 = Action | ||
|type2 = Attack | |type2 = Attack | ||
Line 107: | Line 127: | ||
|illustrator = Lynell Ingram | |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. | |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 = | |text2 = {{VP|'''2'''|l}} | ||
}}</pre> | }}</pre> | ||
<div style="clear:both"></div> | <div style="clear:both"></div> | ||
Line 113: | Line 133: | ||
{{Infobox Card| | {{Infobox Card| | ||
|name = Gold | |name = Gold | ||
|cost = 6 | |||
|image2 = [[File:Gold-new.jpg|200px]] | |image2 = [[File:Gold-new.jpg|200px]] | ||
|kingdom = No | |kingdom = No | ||
|supply = Yes | |||
|type1 = Treasure | |type1 = Treasure | ||
|illustrator = Ryan Laukat | |illustrator = Ryan Laukat | ||
|text = {{Cost|3| | |text = {{Cost|3|xl}} | ||
|nocats = 1 | |nocats = 1 | ||
}} | }} | ||
<pre style="overflow:auto">{{Infobox Card| | <pre style="overflow:auto">{{Infobox Card| | ||
|name = Gold | |name = Gold | ||
|cost = 6 | |||
|image2 = [[File:Gold-new.jpg|200px]] | |image2 = [[File:Gold-new.jpg|200px]] | ||
|kingdom = No | |kingdom = No | ||
|supply = Yes | |||
|type1 = Treasure | |type1 = Treasure | ||
|illustrator = Ryan Laukat | |illustrator = Ryan Laukat | ||
|text = {{Cost|3| | |text = {{Cost|3|xl}} | ||
}}</pre> | }}</pre> | ||
{{-}} |
Latest revision as of 15:42, 7 September 2024
This template may be used to summarize information about a Dominion card at the top of the page.
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 = | cost = | cost2 = | cost3 = | type1 = | type2 = | type3 = | type4 = | abbr = | illustrator = | text = }}
Blank template with all parameters
{{Infobox Card | bodystyle = | namestyle = | imagestyle = | headerstyle = | labelstyle = | datastyle = | name = | image = | image2 = | cost = | cost2 = | cost3 = | type1 = | type2 = | type3 = | type4 = | abbr = | kingdom = | supply = | set = | illustrator = | text = | text2 = | article = | nocats = }}
Parameters
Required
- name
- Name of the card.
- cost
- Cost of the card in Coins (if applicable).
- cost2
- Cost of the card in Debt (if applicable).
- cost3
- Cost of the card in Potions (if applicable).
- 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.
- 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.
- 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 |cost = 5 |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 2 | to , and discards the rest. If a Knight is trashed by this, trash this card.
{{Infobox Card| |name = Dame Josephine |cost = 5 |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 |cost = 6 |image2 = [[File:Gold-new.jpg|200px]] |kingdom = No |supply = Yes |type1 = Treasure |illustrator = Ryan Laukat |text = {{Cost|3|xl}} }}