Template:Infobox Card/doc: Difference between revisions
Jump to navigation
Jump to search
(add missing pipe in front of includeonly section argument) |
(document support for familiars) |
||
| Line 6: | Line 6: | ||
:*Overlord Cards | :*Overlord Cards | ||
:*Plot Cards | :*Plot Cards | ||
:*Familiars | |||
:Not supported yet are: | :Not supported yet are: | ||
:*Monster Cards | :*Monster Cards | ||
| Line 23: | Line 24: | ||
|buy = | |buy = | ||
|cardtype = | |cardtype = | ||
|character = | |||
|copies = | |copies = | ||
|dice = | |dice = | ||
|expansion = | |expansion = | ||
|health = | |||
|heroclass = | |heroclass = | ||
|image = | |image = | ||
| Line 38: | Line 41: | ||
|reliccounterpart = | |reliccounterpart = | ||
|<includeonly>|section={{{section|synopsis}}}</includeonly> | |<includeonly>|section={{{section|synopsis}}}</includeonly> | ||
|speed = | |||
|text = | |text = | ||
|threatcost = | |threatcost = | ||
| Line 70: | Line 74: | ||
|cardtype = Plot Card | |cardtype = Plot Card | ||
|expansion = <required> | |expansion = <required> | ||
|image = <optional, only used when image to show has a different name than | |image = <optional, only used when image to show has a different name than the automatically generated name> | ||
|name = <required> | |name = <required> | ||
|playcost = <required> | |playcost = <required> | ||
| Line 88: | Line 92: | ||
|expansion = <required> | |expansion = <required> | ||
|heroclass = <required> | |heroclass = <required> | ||
|image = <optional, only used when image to show has a different name than | |image = <optional, only used when image to show has a different name than the automatically generated name> | ||
|name = <required> | |name = <required> | ||
|playcost = <required> | |playcost = <required> | ||
| Line 105: | Line 109: | ||
|expansion = <required> | |expansion = <required> | ||
|heroclass = <required> | |heroclass = <required> | ||
|image = <optional, only used when image to show has a different name than | |image = <optional, only used when image to show has a different name than the automatically generated name> | ||
|name = <required> | |name = <required> | ||
|range = <optional, if applicable> | |range = <optional, if applicable> | ||
| Line 125: | Line 129: | ||
|dice = <optional, if applicable> | |dice = <optional, if applicable> | ||
|expansion = <required> | |expansion = <required> | ||
|image = <optional, only used when image to show has a different name than | |image = <optional, only used when image to show has a different name than the automatically generated name> | ||
|name = <required> | |name = <required> | ||
|range = <optional, if applicable> | |range = <optional, if applicable> | ||
| Line 142: | Line 146: | ||
|dice = <optional, if applicable> | |dice = <optional, if applicable> | ||
|expansion = <required> | |expansion = <required> | ||
|image = <optional, only used when image to show has a different name than | |image = <optional, only used when image to show has a different name than the automatically generated name> | ||
|name = <required> | |name = <required> | ||
|questreward = <required, link to the quest where the relic can be gained> | |questreward = <required, link to the quest where the relic can be gained> | ||
| Line 161: | Line 165: | ||
|cardtype = Overlord Relic | |cardtype = Overlord Relic | ||
|expansion = <required> | |expansion = <required> | ||
|image = <optional, only used when image to show has a different name than | |image = <optional, only used when image to show has a different name than the automatically generated name> | ||
|name = <required> | |name = <required> | ||
|questreward = <required, link to the quest where the relic can be gained> | |questreward = <required, link to the quest where the relic can be gained> | ||
|reliccounterpart = <required> | |reliccounterpart = <required> | ||
|<includeonly>|section={{{section|synopsis}}}</includeonly> | |<includeonly>|section={{{section|synopsis}}}</includeonly> | ||
|text = <optional, but highly recommended> | |||
}}</onlyinclude> | |||
</pre> | |||
;Usage for Familiars: | |||
<pre> | |||
<onlyinclude>{{Infobox card | |||
|archetype = <required, Overlord, Healer, Mage, Warrior, Scout> | |||
|cardtype = Familiar | |||
|character = <optional, if the familiar is part of a character (e.g. Brightblaze and Challara)> | |||
|dice = <optional, if applicable> | |||
|expansion = <required> | |||
|health = <optional, if applicable> | |||
|heroclass = <optional, if the familiar is part of a class (e.g. Reanimate and Necromancer)> | |||
|image = <optional, only used when image to show has a different name than the automatically generated name> | |||
|name = <required> | |||
|<includeonly>|section={{{section|synopsis}}}</includeonly> | |||
|speed = <optional, if applicable> | |||
|text = <optional, but highly recommended> | |text = <optional, but highly recommended> | ||
}}</onlyinclude> | }}</onlyinclude> | ||
</pre> | </pre> | ||
Revision as of 02:47, 17 August 2016
- Description
- This template is display an infobox about a game card.
- Currently the template supports the following cards:
- Skills
- Items (Starting Gear, Shop, Relic)
- Overlord Cards
- Plot Cards
- Familiars
- Not supported yet are:
- Monster Cards
- Lieutenant Cards
- Search Cards
- Travel Cards
- ?
- Other uses
- The longterm idea is to be able transclude pages which use the Infobox card template and specify an section-argument to get a specific piece of information.
- E.g. if someone want to know the buy cost of an the lucky charm he/she can just add: {{:Lucky Charm|section=buy}}
- For this to work the actual template has to be enclosed in <onlyinclude> tags and the section argument within the parameters in <includeonly> tags. See the below examples.
- Syntax, all possible arguments in alphabetical order
<onlyinclude>{{Infobox card
|act =
|archetype =
|buy =
|cardtype =
|character =
|copies =
|dice =
|expansion =
|health =
|heroclass =
|image =
|name =
|overlordcardtype =
|overlordclass =
|playcost =
|plotcardnumber =
|plotdeck =
|questreward =
|range =
|reliccounterpart =
|<includeonly>|section={{{section|synopsis}}}</includeonly>
|speed =
|text =
|threatcost =
|trait =
|trait2 =
|worn =
|xpcost =
}}</onlyinclude>
- Usage for an overlord card
<onlyinclude>{{Infobox card
|archetype = Overlord
|cardtype = Overlord Card
|copies = <optional>
|expansion = <required>
|image = <optional, only used when image to show has a different name than: Overlord Card - {{{name|}}}.png>
|name = <required>
|overlordcardtype = <required, one of: Event | Magic | Trap>
|overlordclass = <required>
|<includeonly>|section={{{section|synopsis}}}</includeonly>
|text = <optional, but highly recommended>
|xpcost = <required>
}}</onlyinclude>
- Usage for a plot card
<onlyinclude>{{Infobox card
|archetype = Overlord
|cardtype = Plot Card
|expansion = <required>
|image = <optional, only used when image to show has a different name than the automatically generated name>
|name = <required>
|playcost = <required>
|plotcardnumber = <required>
|plotdeck = <required>
|<includeonly>|section={{{section|synopsis}}}</includeonly>
|text = <optional, but highly recommended>
|threatcost = <required>
}}</onlyinclude>
- Usage for a skill
<onlyinclude>{{Infobox card
|archetype = <required: Healer, Mage, Warrior, Scout>
|cardtype = Skill
|expansion = <required>
|heroclass = <required>
|image = <optional, only used when image to show has a different name than the automatically generated name>
|name = <required>
|playcost = <required>
|<includeonly>|section={{{section|synopsis}}}</includeonly>
|text = <optional, but highly recommended>
|xpcost = <required>
}}</onlyinclude>
- Usage for starting gear
<onlyinclude>{{Infobox card
|archetype = <required, Healer, Mage, Warrior, Scout>
|cardtype = Item
|dice = <required>
|expansion = <required>
|heroclass = <required>
|image = <optional, only used when image to show has a different name than the automatically generated name>
|name = <required>
|range = <optional, if applicable>
|<includeonly>|section={{{section|synopsis}}}</includeonly>
|text = <optional, but highly recommended>
|trait = <optional, if applicable>
|trait2 = <optional, if applicable>
|worn = <required>
}}</onlyinclude>
- Usage for shop gear
<onlyinclude>{{Infobox card
|act = <required>
|buy = <required>
|cardtype = Item
|copies = <optional>
|dice = <optional, if applicable>
|expansion = <required>
|image = <optional, only used when image to show has a different name than the automatically generated name>
|name = <required>
|range = <optional, if applicable>
|<includeonly>|section={{{section|synopsis}}}</includeonly>
|text = <optional, but highly recommended>
|trait = <optional, if applicable>
|trait2 = <optional, if applicable>
|worn = <required>
}}</onlyinclude>
- Usage for Hero relics
<onlyinclude>{{Infobox card
|cardtype = Item
|dice = <optional, if applicable>
|expansion = <required>
|image = <optional, only used when image to show has a different name than the automatically generated name>
|name = <required>
|questreward = <required, link to the quest where the relic can be gained>
|range = <optional, if applicable>
|reliccounterpart = <required>
|<includeonly>|section={{{section|synopsis}}}</includeonly>
|text = <optional, but highly recommended>
|trait = <optional, if applicable>
|trait2 = <optional, if applicable>
|worn = <optional, if applicable>
}}</onlyinclude>
- Usage for Overlord relics
<onlyinclude>{{Infobox card
|archetype = <required> Overlord
|cardtype = Overlord Relic
|expansion = <required>
|image = <optional, only used when image to show has a different name than the automatically generated name>
|name = <required>
|questreward = <required, link to the quest where the relic can be gained>
|reliccounterpart = <required>
|<includeonly>|section={{{section|synopsis}}}</includeonly>
|text = <optional, but highly recommended>
}}</onlyinclude>
- Usage for Familiars
<onlyinclude>{{Infobox card
|archetype = <required, Overlord, Healer, Mage, Warrior, Scout>
|cardtype = Familiar
|character = <optional, if the familiar is part of a character (e.g. Brightblaze and Challara)>
|dice = <optional, if applicable>
|expansion = <required>
|health = <optional, if applicable>
|heroclass = <optional, if the familiar is part of a class (e.g. Reanimate and Necromancer)>
|image = <optional, only used when image to show has a different name than the automatically generated name>
|name = <required>
|<includeonly>|section={{{section|synopsis}}}</includeonly>
|speed = <optional, if applicable>
|text = <optional, but highly recommended>
}}</onlyinclude>