Template:Infobox Card/doc: Difference between revisions

From Descent-Community Wiki 1.2
Jump to navigation Jump to search
(add missing pipe in front of includeonly section argument)
 
(document trait 3)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
;Description
;Description
:This template is display an infobox about a game card.
:This template is intended to display an infobox about a game card.
:Currently the template supports the following cards:
:Currently the template supports the following cards:
:*Skills
:*Skills
Line 6: Line 6:
:*Overlord Cards
:*Overlord Cards
:*Plot Cards
:*Plot Cards
:*Familiars
:*Servants
:*Tainted Cards
:*Search Cards
:Not supported yet are:
:Not supported yet are:
:*Monster Cards
:*Monster Cards
:*Lieutenant Cards
:*Lieutenant Cards
:*Search Cards
:*Travel Cards
:*Travel Cards
:*?
:*?
Line 21: Line 24:
  |act =
  |act =
  |archetype =
  |archetype =
|attackdice =
  |buy =
  |buy =
  |cardtype =
  |cardtype =
|character =
  |copies =
  |copies =
  |dice =
  |defensedice =
  |expansion =
  |expansion =
|flavour =
|health =
  |heroclass =
  |heroclass =
  |image =
  |image =
Line 33: Line 40:
  |playcost =
  |playcost =
  |plotcardnumber =
  |plotcardnumber =
|plotdeck =
  |questreward =
  |questreward =
  |range =
  |range =
  |reliccounterpart =
  |reliccounterpart =
  |<includeonly>|section={{{section|synopsis}}}</includeonly>
  |<includeonly>|section={{{section|synopsis}}}</includeonly>
|sell =
|speed =
  |text =
  |text =
  |threatcost =
  |threatcost =
  |trait =
  |trait =
  |trait2 =
  |trait2 =
|trait3 =
  |worn =
  |worn =
  |xpcost =
  |xpcost =
Line 70: Line 79:
  |cardtype      = Plot Card
  |cardtype      = Plot Card
  |expansion      = <required>
  |expansion      = <required>
  |image          = <optional, only used when image to show has a different name than <nowiki>{{{name|}}}.png or {{PAGENAME}}.png</nowiki>
  |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>
  |plotcardnumber = <required>
  |plotcardnumber = <required>
|plotdeck      = <required>
  |&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |text          = <optional, but highly recommended>
  |text          = <optional, but highly recommended>
Line 88: Line 96:
  |expansion  = <required>
  |expansion  = <required>
  |heroclass  = <required>
  |heroclass  = <required>
  |image      = <optional, only used when image to show has a different name than <nowiki>{{{name|}}}.png or {{PAGENAME}}.png</nowiki>
  |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 100: Line 108:
<pre>
<pre>
&lt;onlyinclude&gt;{{Infobox card
&lt;onlyinclude&gt;{{Infobox card
  |archetype = <required, Healer, Mage, Warrior, Scout>
  |archetype   = <required, Healer, Mage, Warrior, Scout>
  |cardtype   = Item
|attackdice  = <optional, if applicable>
  |dice      = <required>
  |cardtype   = Item
  |expansion = <required>
  |defensedice = <optional, if applicable>
  |heroclass = <required>
  |expansion   = <required>
  |image     = <optional, only used when image to show has a different name than <nowiki>{{{name|}}}.png or {{PAGENAME}}.png</nowiki>
  |heroclass   = <required>
  |name       = <required>
  |image       = <optional, only used when image to show has a different name than the automatically generated name>
  |range     = <optional, if applicable>
  |name       = <required>
  |range       = <optional, if applicable>
  |&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |text       = <optional, but highly recommended>
  |text       = <optional, but highly recommended>
  |trait      = <optional, if applicable>
  |trait       = <optional, if applicable>
  |trait2    = <optional, if applicable>
|trait2     = <optional, if applicable>
  |worn       = <required>
  |trait3      = <optional, if applicable>
  |worn       = <required>
}}&lt;/onlyinclude&gt;
}}&lt;/onlyinclude&gt;
</pre>
</pre>
Line 119: Line 129:
<pre>
<pre>
&lt;onlyinclude&gt;{{Infobox card
&lt;onlyinclude&gt;{{Infobox card
  |act       = <required>
  |act         = <required>
  |buy       = <required>
|attackdice  = <optional, if applicable>
  |cardtype   = Item
  |buy         = <required>
  |copies    = <optional>
  |cardtype   = Item
  |dice      = <optional, if applicable>
  |defensedice = <optional, if applicable>
  |expansion = <required>
  |copies      = <optional>
  |image     = <optional, only used when image to show has a different name than <nowiki>{{{name|}}}.png or {{PAGENAME}}.png</nowiki>
  |expansion   = <required>
  |name       = <required>
  |image       = <optional, only used when image to show has a different name than the automatically generated name>
  |range     = <optional, if applicable>
  |name       = <required>
  |range       = <optional, if applicable>
  |&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |text       = <optional, but highly recommended>
  |text       = <optional, but highly recommended>
  |trait      = <optional, if applicable>
  |trait       = <optional, if applicable>
  |trait2    = <optional, if applicable>
|trait2     = <optional, if applicable>
  |worn       = <required>
  |trait3      = <optional, if applicable>
  |worn       = <required>
}}&lt;/onlyinclude&gt;
}}&lt;/onlyinclude&gt;
</pre>
</pre>
Line 139: Line 151:
<pre>
<pre>
&lt;onlyinclude&gt;{{Infobox card
&lt;onlyinclude&gt;{{Infobox card
|attackdice      = <optional, if applicable>
  |cardtype        = Item
  |cardtype        = Item
  |dice            = <optional, if applicable>
  |defensedice      = <optional, if applicable>
  |expansion        = <required>
  |expansion        = <required>
  |image            = <optional, only used when image to show has a different name than <nowiki>{{{name|}}}.png or {{PAGENAME}}.png</nowiki>
  |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 151: Line 164:
  |trait            = <optional, if applicable>
  |trait            = <optional, if applicable>
  |trait2          = <optional, if applicable>
  |trait2          = <optional, if applicable>
|trait3      = <optional, if applicable>
  |worn            = <optional, if applicable>
  |worn            = <optional, if applicable>
}}&lt;/onlyinclude&gt;
}}&lt;/onlyinclude&gt;
Line 161: Line 175:
  |cardtype        = Overlord Relic
  |cardtype        = Overlord Relic
  |expansion        = <required>
  |expansion        = <required>
  |image            = <optional, only used when image to show has a different name than <nowiki>{{{name|}}}.png or {{PAGENAME}}.png</nowiki>
  |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>
  |&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
  |&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
|text            = <optional, but highly recommended>
}}&lt;/onlyinclude&gt;
</pre>
;Usage for Familiars:
<pre>
&lt;onlyinclude&gt;{{Infobox card
|attackdice      = <optional, if applicable>
|archetype        = <required, Healer, Mage, Warrior, Scout>
|cardtype        = Familiar
|character        = <optional, if the familiar is part of a character (e.g. Brightblaze and Challara)>
|defensedice      = <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>
|&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
|speed            = <optional, if applicable>
|text            = <optional, but highly recommended>
}}&lt;/onlyinclude&gt;
</pre>
;Usage for Servants:
<pre>
&lt;onlyinclude&gt;{{Infobox card
|attackdice      = <optional, if applicable>
|archetype        = Overlord
|cardtype        = Servant
|defensedice      = <optional, if applicable>
|expansion        = <required>
|health          = <optional, if applicable>
|image            = <optional, only used when image to show has a different name than the automatically generated name>
|name            = <required>
|&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
|speed            = <optional, if applicable>
|text            = <optional, but highly recommended>
}}&lt;/onlyinclude&gt;
</pre>
;Usage for Tainted cards:
<pre>
&lt;onlyinclude&gt;{{Infobox card
|cardtype        = Tainted
|expansion        = <required>
|flavour          = <optional, but highly recommended>
|name            = <required>
|&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
|text            = <optional, but highly recommended>
}}&lt;/onlyinclude&gt;
</pre>
;Usage for Search cards:
<pre>
&lt;onlyinclude&gt;{{Infobox card
|attackdice      = <optional, when required>
|cardtype        = Search
|copies          = <optional>
|expansion        = <required>
|name            = <required>
|range            = <optional, when required>
|&lt;includeonly&gt;|section={{{section|synopsis}}}&lt;/includeonly&gt;
|sell            = <optional, but highly recommended>
  |text            = <optional, but highly recommended>
  |text            = <optional, but highly recommended>
}}&lt;/onlyinclude&gt;
}}&lt;/onlyinclude&gt;
</pre>
</pre>

Latest revision as of 11:18, 20 February 2019

Description
This template is intended to 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
  • Servants
  • Tainted Cards
  • Search Cards
Not supported yet are:
  • Monster Cards
  • Lieutenant 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 =
 |attackdice =
 |buy =
 |cardtype =
 |character =
 |copies =
 |defensedice =
 |expansion =
 |flavour =
 |health =
 |heroclass =
 |image =
 |name =
 |overlordcardtype =
 |overlordclass =
 |playcost =
 |plotcardnumber =
 |questreward =
 |range =
 |reliccounterpart =
 |<includeonly>|section={{{section|synopsis}}}</includeonly>
 |sell =
 |speed =
 |text =
 |threatcost =
 |trait =
 |trait2 =
 |trait3 =
 |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>
 |<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>
 |attackdice  = <optional, if applicable>
 |cardtype    = Item
 |defensedice = <optional, if applicable>
 |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>
 |trait3      = <optional, if applicable>
 |worn        = <required>
}}</onlyinclude>
Usage for shop gear
<onlyinclude>{{Infobox card
 |act         = <required>
 |attackdice  = <optional, if applicable>
 |buy         = <required>
 |cardtype    = Item
 |defensedice = <optional, if applicable>
 |copies      = <optional>
 |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>
 |trait3      = <optional, if applicable>
 |worn        = <required>
}}</onlyinclude>
Usage for Hero relics
<onlyinclude>{{Infobox card
 |attackdice       = <optional, if applicable>
 |cardtype         = Item
 |defensedice      = <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>
 |trait3      = <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
 |attackdice       = <optional, if applicable>
 |archetype        = <required, Healer, Mage, Warrior, Scout>
 |cardtype         = Familiar
 |character        = <optional, if the familiar is part of a character (e.g. Brightblaze and Challara)>
 |defensedice      = <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>
Usage for Servants
<onlyinclude>{{Infobox card
 |attackdice       = <optional, if applicable>
 |archetype        = Overlord
 |cardtype         = Servant
 |defensedice      = <optional, if applicable>
 |expansion        = <required>
 |health           = <optional, if applicable>
 |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>
Usage for Tainted cards
<onlyinclude>{{Infobox card
 |cardtype         = Tainted
 |expansion        = <required>
 |flavour          = <optional, but highly recommended>
 |name             = <required>
 |<includeonly>|section={{{section|synopsis}}}</includeonly>
 |text             = <optional, but highly recommended>
}}</onlyinclude>
Usage for Search cards
<onlyinclude>{{Infobox card
 |attackdice       = <optional, when required>
 |cardtype         = Search
 |copies           = <optional>
 |expansion        = <required>
 |name             = <required>
 |range            = <optional, when required>
 |<includeonly>|section={{{section|synopsis}}}</includeonly>
 |sell             = <optional, but highly recommended>
 |text             = <optional, but highly recommended>
}}</onlyinclude>