Template:Infobox Card: Difference between revisions
Jump to navigation
Jump to search
(Add |attackdice and |defensedice. Add all pages with |dice to the category RefactorDice. This is in preparation for support for monster/lieutenant cards) |
(Remove deprecated |dice argument. Add All pages which fail a validation to the category PagesWhichFailValidation) |
||
Line 58: | Line 58: | ||
{{!}}align=center style="border:0px transparent" {{!}}[[{{{character|}}}]] | {{!}}align=center style="border:0px transparent" {{!}}[[{{{character|}}}]] | ||
| | | | ||
{{!}}colspan= 2 align=center style="border:0px transparent"{{!}}[[Template:ValidateHeroClass|Invalid heroclass. Read the template documentation for valid hero classes]] | {{!}}colspan= 2 align=center style="border:0px transparent"{{!}}[[Template:ValidateHeroClass|Invalid heroclass. Read the template documentation for valid hero classes]] [[Category:PagesWhichFailValidation]] | ||
}} | }} | ||
}} | }} | ||
Line 68: | Line 68: | ||
{{!}}colspan=2 align=center style="border:0px transparent" {{!}}'''Player''' | {{!}}colspan=2 align=center style="border:0px transparent" {{!}}'''Player''' | ||
{{!}}- | {{!}}- | ||
{{!}}colspan=2 align=center style="border:0px transparent" {{!}}[[Template:ValidateArchetype|Invalid archetype. Read the template documentation for valid archetypes]] | {{!}}colspan=2 align=center style="border:0px transparent" {{!}}[[Template:ValidateArchetype|Invalid archetype. Read the template documentation for valid archetypes]] [[Category:PagesWhichFailValidation]] | ||
{{!}}- | {{!}}- | ||
{{!}}colspan=2 style="border:0px transparent" {{!}}<div style="padding: 0px; width:100%; border:1px solid {{#var: bordercolor}};" ></div> | {{!}}colspan=2 style="border:0px transparent" {{!}}<div style="padding: 0px; width:100%; border:1px solid {{#var: bordercolor}};" ></div> | ||
Line 83: | Line 83: | ||
| | | | ||
{{!}}- | {{!}}- | ||
{{!}}colspan=2 align=center style="border:0px transparent" {{!}}[[Template:ValidateCardType|Invalid cardtype. Read the template documentation for valid cardtypes]] | {{!}}colspan=2 align=center style="border:0px transparent" {{!}}[[Template:ValidateCardType|Invalid cardtype. Read the template documentation for valid cardtypes]] [[Category:PagesWhichFailValidation]] | ||
}} | }} | ||
}} | }} | ||
Line 93: | Line 93: | ||
{{!}}align=center style="border:0px transparent" {{!}} [[{{#var: overlordclass}}]] | {{!}}align=center style="border:0px transparent" {{!}} [[{{#var: overlordclass}}]] | ||
| | | | ||
{{!}}colspan=2 align=center style="border:0px transparent" {{!}}[[Template:ValidateOverlordClass|Invalid overlordclass. Read the template documentation for valid classes]] | {{!}}colspan=2 align=center style="border:0px transparent" {{!}}[[Template:ValidateOverlordClass|Invalid overlordclass. Read the template documentation for valid classes]] [[Category:PagesWhichFailValidation]] | ||
}} | }} | ||
{{!}}- | {{!}}- | ||
Line 100: | Line 100: | ||
{{!}}align=center style="border:0px transparent" {{!}} [[:Category:{{OverlordCardTypeCategory|{{#var: overlordcardtype}}}}|{{#var: overlordcardtype}}]] | {{!}}align=center style="border:0px transparent" {{!}} [[:Category:{{OverlordCardTypeCategory|{{#var: overlordcardtype}}}}|{{#var: overlordcardtype}}]] | ||
| | | | ||
{{!}}colspan=2 align=center style="border:0px transparent" {{!}}[[Template:ValidateOverlordCardType|Invalid overlordcardtype. Read the template documentation for valid types]] | {{!}}colspan=2 align=center style="border:0px transparent" {{!}}[[Template:ValidateOverlordCardType|Invalid overlordcardtype. Read the template documentation for valid types]] [[Category:PagesWhichFailValidation]] | ||
}} | }} | ||
|Plot Card= | |Plot Card= | ||
Line 120: | Line 120: | ||
{{!}} align=center width=50% style="border:0px transparent"{{!}}Defense Dice: | {{!}} align=center width=50% style="border:0px transparent"{{!}}Defense Dice: | ||
{{!}} align=center style="border:0px transparent"{{!}}{{{defensedice|}}} | {{!}} align=center style="border:0px transparent"{{!}}{{{defensedice|}}} | ||
|}} | |}} | ||
{{!}}- | {{!}}- | ||
Line 138: | Line 133: | ||
{{!}} align=center style="border:0px transparent"{{!}}{{{health|}}} | {{!}} align=center style="border:0px transparent"{{!}}{{{health|}}} | ||
|#default = | |#default = | ||
{{!}}colspan= 2 align=center style="border:0px transparent"{{!}}Invalid health. Valid values are in the range 1-6 | {{!}}colspan= 2 align=center style="border:0px transparent"{{!}}Invalid health. Valid values are in the range 1-6 [[Category:PagesWhichFailValidation]] | ||
}} | }} | ||
|}} | |}} | ||
Line 147: | Line 142: | ||
{{!}} align=center style="border:0px transparent"{{!}}[[:Category:{{ValidateRange|{{{range|}}}}}|{{ValidateRange|{{{range|}}}}}]] | {{!}} align=center style="border:0px transparent"{{!}}[[:Category:{{ValidateRange|{{{range|}}}}}|{{ValidateRange|{{{range|}}}}}]] | ||
| | | | ||
{{!}}colspan= 2 align=center style="border:0px transparent"{{!}}[[Template:ValidateRange|Invalid range. Read the template documentation for valid ranges]] | {{!}}colspan= 2 align=center style="border:0px transparent"{{!}}[[Template:ValidateRange|Invalid range. Read the template documentation for valid ranges]] [[Category:PagesWhichFailValidation]] | ||
}} | }} | ||
|}} | |}} | ||
Line 161: | Line 156: | ||
{{!}} align=center style="border:0px transparent"{{!}}{{{speed|}}} | {{!}} align=center style="border:0px transparent"{{!}}{{{speed|}}} | ||
|#default = | |#default = | ||
{{!}}colspan= 2 align=center style="border:0px transparent"{{!}}Invalid speed. Valid values are in the range 1-5 | {{!}}colspan= 2 align=center style="border:0px transparent"{{!}}Invalid speed. Valid values are in the range 1-5 [[Category:PagesWhichFailValidation]] | ||
}} | }} | ||
|}} | |}} | ||
Line 175: | Line 170: | ||
}} | }} | ||
| | | | ||
{{!}}colspan= 2 align=center style="border:0px transparent"{{!}}[[Template:ValidateTrait|Invalid Trait. Read the template documentation for valid traits]] | {{!}}colspan= 2 align=center style="border:0px transparent"{{!}}[[Template:ValidateTrait|Invalid Trait. Read the template documentation for valid traits]] [[Category:PagesWhichFailValidation]] | ||
}} | }} | ||
|}} | |}} | ||
Line 184: | Line 179: | ||
{{!}} align=center style="border:0px transparent"{{!}}[[:Category:{{ValidateWorn|{{{worn|}}}}}|{{ValidateWorn|{{{worn|}}}}}]] | {{!}} align=center style="border:0px transparent"{{!}}[[:Category:{{ValidateWorn|{{{worn|}}}}}|{{ValidateWorn|{{{worn|}}}}}]] | ||
| | | | ||
{{!}}colspan= 2 align=center style="border:0px transparent"{{!}}[[Template:ValidateWorn|Invalid worn. Read the template documentation for valid worn strings]] | {{!}}colspan= 2 align=center style="border:0px transparent"{{!}}[[Template:ValidateWorn|Invalid worn. Read the template documentation for valid worn strings]] [[Category:PagesWhichFailValidation]] | ||
}} | }} | ||
|}} | |}} | ||
Line 210: | Line 205: | ||
{{!}} align=center style="border:0px transparent"{{!}}{{{plotcardnumber|}}}/12 | {{!}} align=center style="border:0px transparent"{{!}}{{{plotcardnumber|}}}/12 | ||
|#default = | |#default = | ||
{{!}}colspan= 2 align=center style="border:0px transparent"{{!}}Invalid plotcardnumber. Valid values are in the range 1-12 | {{!}}colspan= 2 align=center style="border:0px transparent"{{!}}Invalid plotcardnumber. Valid values are in the range 1-12 [[Category:PagesWhichFailValidation]] | ||
}} | }} | ||
|}} | |}} | ||
Line 297: | Line 292: | ||
{{!}} colspan=2 align=center style="border:0px transparent"{{!}}{{ValidateExpansionCode|{{{expansion|}}}}} [[{{ValidateExpansion|{{{expansion|}}}}}]] | {{!}} colspan=2 align=center style="border:0px transparent"{{!}}{{ValidateExpansionCode|{{{expansion|}}}}} [[{{ValidateExpansion|{{{expansion|}}}}}]] | ||
| | | | ||
{{!}} colspan=2 align=center style="border:0px transparent"{{!}}[[Template:ValidateExpansion|Invalid expansion. Read the template documentation for valid expansions]] | {{!}} colspan=2 align=center style="border:0px transparent"{{!}}[[Template:ValidateExpansion|Invalid expansion. Read the template documentation for valid expansions]] [[Category:PagesWhichFailValidation]] | ||
}} | }} | ||
| | | |
Revision as of 05:30, 8 September 2016
Example Card
| |
---|---|
Player | |
Overlord | |
Card Stats | |
Acquisition | |
Expansion | |
Unknown |
This is an overlord example |
[[Category:Template:OverlordCardTypeCategory]]
Template documentation (for the above template, sometimes hidden or invisible)
- 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>
Visit Template:Infobox Card/doc to edit this text! (How does this work?)