Template:Infobox CCG: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
m (heading fix)
m (.center)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="display: flex; margin: 0.5em; flex-wrap: wrap; justify-content: center; text-align: center;">
<includeonly><div class="center" style="display: flex; margin: 0.5em; flex-wrap: wrap; justify-content: center;">
{{#if: {{{image|}}} | <div style="flex: 0 0 auto; display: inline-block; vertical-align: top; padding: 0.5em; width: 250px;">[[File:{{{image|}}}|250px|link=|alt=]]</div> }}
{{#if: {{{image|}}} | <div style="flex: 0 0 auto; display: inline-block; vertical-align: top; padding: 0.5em; width: 250px;">[[File:{{{image|}}}|250px|alt=Card]]</div> }}
<div style="flex: 1 0 62%; display: inline-block; vertical-align: top; padding: 0.5em; max-width: 81ch; text-align: left;">
<div style="flex: 1 0 62%; display: inline-block; vertical-align: top; padding: 0.5em; max-width: 81ch;">
{| class="wikitable cells-top" style="margin: 0; width: 100%;"
{| class="wikitable cells-top cells-left" style="margin: 0; width: 100%;"
! style="text-align: left;" | Name:
! Name:
| {{{name}}}
| {{{name}}}
|-
|-
! style="text-align: left;" | Card Type:
! Card Type:
| {{#switch: {{{type}}} | edge = Edge | enhancement = Enhancement | hero = Hero | mission = Mission | power = Power | sig power = Signature Power | sidekick = Sidekick | }}
| {{#switch: {{{type}}} | edge = Edge | enhancement = Enhancement | hero = Hero | mission = Mission | power = Power | sig power = Signature Power | sidekick = Sidekick | }}
|-  
|-  
{{#if: {{{archetype|}}} | ! style="text-align: left;" {{!}} Archetype:
{{#if: {{{archetype|}}} | ! Archetype:
{{!}} {{{archetype}}} }}
{{!}} {{{archetype}}} }}
|-
|-
{{#if: {{{powerset2|}}} | ! style="text-align: left;" {{!}} Powersets:
{{#if: {{{powerset2|}}} | ! Powersets:
{{!}} {{{powerset1}}} • {{{powerset2}}} | {{#if: {{{powerset1|}}} | ! style="text-align: left;" {{!}} Powerset:
{{!}} {{{powerset1}}} • {{{powerset2}}} | {{#if: {{{powerset1|}}} | ! Powerset:
{{!}} {{{powerset1}}} | }} }}
{{!}} {{{powerset1}}} | }} }}
|-
|-
{{#if: {{{recharge|}}} | ! style="text-align: left;" {{!}} Recharge Type:
{{#if: {{{recharge|}}} | ! Recharge Type:
{{!}} {{#switch: {{{recharge}}} | 1 = 1 Click | 2 = 2 Click | 3 = 3 Click | T = Toggle | C = Constant | }} }}
{{!}} {{#switch: {{{recharge}}} | 1 = 1 Click | 2 = 2 Click | 3 = 3 Click | T = Toggle | C = Constant | }} }}
|-
|-
{{#if: {{{start1|}}} | ! style="text-align: left;" {{!}} Starting Powers:
{{#if: {{{start1|}}} | ! Starting Powers:
{{!}} [[COHCCG/{{{start1}}}|{{{start1}}}]] • [[COHCCG/{{{start2}}}|{{{start2}}}]] }}
{{!}} [[COHCCG/{{{start1}}}|{{{start1}}}]] • [[COHCCG/{{{start2}}}|{{{start2}}}]] }}
|-
|-
{{#if: {{{travel|}}} | ! style="text-align: left;" {{!}} Travel Power:
{{#if: {{{travel|}}} | ! Travel Power:
{{!}} {{{travel}}} }}
{{!}} {{{travel}}} }}
|-
|-
{{#if: {{{accuracy|}}} | ! style="text-align: left;" {{!}} Accuracy:
{{#if: {{{accuracy|}}} | ! Accuracy:
{{!}} {{{accuracy}}} }}
{{!}} {{{accuracy}}} }}
|-
|-
{{#if: {{{defense|}}} | ! style="text-align: left;" {{!}} Defense:
{{#if: {{{defense|}}} | ! Defense:
{{!}} {{{defense}}} }}
{{!}} {{{defense}}} }}
|-
|-
{{#if: {{{health|}}} | ! style="text-align: left;" {{!}} Health:
{{#if: {{{health|}}} | ! Health:
{{!}} {{{health}}} }}
{{!}} {{{health}}} }}
|-
|-
{{#if: {{{prereq|}}} | ! style="text-align: left;" {{!}} Prerequisite:
{{#if: {{{prereq|}}} | ! Prerequisite:
{{!}} '''{{{prereq}}}''' }}
{{!}} '''{{{prereq}}}''' }}
|-
|-
{{#if: {{{text|}}} | ! style="text-align: left;" {{!}} Card Text:
{{#if: {{{text|}}} | ! Card Text:
{{!}} {{{text}}} }}
{{!}} {{{text}}} }}
|-
|-
{{#if: {{{threat|}}} | ! style="text-align: left;" {{!}} Threat:
{{#if: {{{threat|}}} | ! Threat:
{{!}} '''Threat:''' {{{threat}}} }}
{{!}} '''Threat:''' {{{threat}}} }}
|-
|-
{{#if: {{{defeat|}}} | ! style="text-align: left;" {{!}} Defeat:
{{#if: {{{defeat|}}} | ! Defeat:
{{!}} '''Defeat:''' {{{defeat}}} }}
{{!}} '''Defeat:''' {{{defeat}}} }}
|-
|-
{{#if: {{{reward|}}} | ! style="text-align: left;" {{!}} Reward:
{{#if: {{{reward|}}} | ! Reward:
{{!}} '''Reward:''' {{{reward}}} }}
{{!}} '''Reward:''' {{{reward}}} }}
|-
|-
{{#if: {{{flavor|}}} | ! style="text-align: left;" {{!}} Flavor Text:
{{#if: {{{flavor|}}} | ! Flavor Text:
{{!}} ''{{{flavor}}}'' }}
{{!}} ''{{{flavor}}}'' }}
|-
|-
{{#if: {{{inspiration|}}} | ! style="text-align: left;" {{!}} Inspiration:
{{#if: {{{inspiration|}}} | ! Inspiration:
{{!}} {{#switch: {{{inspiration}}} | enrage = [[File:Inspiration Damage Lvl 3.png|20px|link=|alt=]] Enrage | catch a breath = [[File:Inspiration Endurance Lvl 3.png|20px|link=|alt=]] Catch a Breath | respite = [[File:Inspiration Health Lvl 3.png|20px|link=|alt=]] Respite | insight = [[File:Inspiration Accuracy Lvl 3.png|20px|link=|alt=]] Insight | luck = [[File:Inspiration Defense Lvl 3.png|20px|link=|alt=]] Luck | break free = [[File:Inspiration resist sleep hold Lvl 3.png|20px|link=|alt=]] Break Free | {{{inspiration}}} }} }}
{{!}} {{#switch: {{{inspiration}}} | enrage = [[File:Inspiration Damage Lvl 3.png|20px|link=|alt=]] Enrage | catch a breath = [[File:Inspiration Endurance Lvl 3.png|20px|link=|alt=]] Catch a Breath | respite = [[File:Inspiration Health Lvl 3.png|20px|link=|alt=]] Respite | insight = [[File:Inspiration Accuracy Lvl 3.png|20px|link=|alt=]] Insight | luck = [[File:Inspiration Defense Lvl 3.png|20px|link=|alt=]] Luck | break free = [[File:Inspiration resist sleep hold Lvl 3.png|20px|link=|alt=]] Break Free | {{{inspiration}}} }} }}
|-
|-
! style="text-align: left;" | Deck:
! Deck:
| {{#switch: {{{deck}}} | arena = Arena | demo = Preview | promo = Promo | hamidon = The Hamidon | Secret Origins }}
| {{#switch: {{{deck}}} | arena = Arena | demo = Preview | promo = Promo | hamidon = The Hamidon | Secret Origins }}
|-
|-
! style="text-align: left;" | Card Number:
! Card Number:
| {{{number}}} {{#switch: {{{deck}}} | arena = / 324 | demo = / 69 | promo = N/A | hamidon = / 208 | / 180 }}
| {{{number}}} {{#switch: {{{deck}}} | arena = / 324 | demo = / 69 | promo = N/A | hamidon = / 208 | / 180 }}
|-
|-
! style="text-align: left;" | Rarity:
! Rarity:
| {{#switch: {{{rarity}}} | battle pack = [[File:CCG_icon_battle_pack.png|20px|link=|alt=]] Battle Pack | rare = [[File:CCG_icon_rare.png|20px|link=|alt=]] Rare | uncommon = [[File:CCG_icon_uncommon.png|20px|link=|alt=]] Uncommon | common = [[File:CCG_icon_common.png|20px|link=|alt=]] Common | [[File:CCG_icon_preview.png|20px|link=|alt=]] Promo}}
| {{#switch: {{{rarity}}} | battle pack = [[File:CCG_icon_battle_pack.png|20px|link=|alt=]] Battle Pack | rare = [[File:CCG_icon_rare.png|20px|link=|alt=]] Rare | uncommon = [[File:CCG_icon_uncommon.png|20px|link=|alt=]] Uncommon | common = [[File:CCG_icon_common.png|20px|link=|alt=]] Common | [[File:CCG_icon_preview.png|20px|link=|alt=]] Promo}}
|}
|}
</div>
</div>
</div>
</div>
{{#switch: {{{display}}} | n=<nowiki></nowiki> | #default =
{{#ifeq: {{{display}}} | n | |
== See Also ==
== See Also ==
* [[City of Heroes Collectible Card Game]]
* [[City of Heroes Collectible Card Game]]
Line 72: Line 72:
* [[City of Heroes Collectible Card Game/Secret Origins Cards|Secret Origins Card Listing]]
* [[City of Heroes Collectible Card Game/Secret Origins Cards|Secret Origins Card Listing]]
* [[City of Heroes Collectible Card Game/The Hamidon Cards|The Hamidon Card Listing]]
* [[City of Heroes Collectible Card Game/The Hamidon Cards|The Hamidon Card Listing]]
{{#ifexist: {{{name}}}|* [[{{{name}}}]]|}} }}{{#switch: {{{deck}}} | arena = [[Category:CCG Arena Cards|{{{name}}}]] | hamidon = [[Category:CCG The Hamidon Cards|{{{name}}}]] | demo = | promo = | [[Category:CCG Secret Origins Cards|{{{name}}}]] }}
{{#ifexist: {{{name}}}|* [[{{{name}}}]]|}} }}
{{#switch: {{{deck}}} | arena = [[Category:CCG Arena Cards|{{{name}}}]] | hamidon = [[Category:CCG The Hamidon Cards|{{{name}}}]] | demo = | promo = | [[Category:CCG Secret Origins Cards|{{{name}}}]] }}
[[Category:CCG {{#switch: {{{deck}}} | demo = Arena Demo | promo = Arena Promo | {{#switch: {{{deck}}} | arena = Arena | hamidon = The Hamidon | Secret Origins}} {{#switch: {{{type}}} | edge = Edge | enhancement = Enhancement | hero = Hero | mission = Mission | power = Power | sig power = Signature Power | sidekick = Sidekick | }} }} Cards|{{{name}}}]]</includeonly><noinclude>{{Documentation}}<!-- Add any documentation to the /doc page, not this page --></noinclude>
[[Category:CCG {{#switch: {{{deck}}} | demo = Arena Demo | promo = Arena Promo | {{#switch: {{{deck}}} | arena = Arena | hamidon = The Hamidon | Secret Origins}} {{#switch: {{{type}}} | edge = Edge | enhancement = Enhancement | hero = Hero | mission = Mission | power = Power | sig power = Signature Power | sidekick = Sidekick | }} }} Cards|{{{name}}}]]</includeonly><noinclude>{{Documentation}}<!-- Add any documentation to the /doc page, not this page --></noinclude>

Latest revision as of 18:10, 18 April 2022

[edit] [purge] Documentation

The 'Infobox CCG' template is used to provide quick and concise tabular information about a card from the COH CCG. Not shown here, it also links to the main CCG article and the articles for the various deck listings (example: COHCCG/Hasten).

Usage

This infobox may be added by pasting the template as shown below into an article.

{{Infobox CCG
|name=
|type=
|image=
|archetype=
|powerset1=
|powerset2=
|recharge=
|start1=
|start2=
|travel=
|accuracy=
|defense=
|health=
|prereq=
|text=
|threat=
|defeat=
|reward=
|flavor=
|inspiration=
|deck=
|number=
|rarity=
}}

Parameters

Note: * denotes required fields.

Parameter Explanation
name * Insert name of Hero, preferably as appears on the card.
type * Insert the type of card, either "Hero" or "Sidekick."
image * Insert *.png image. The image will be scaled to a width of 250px.
archetype * Insert Hero or Sidekick's Archetype.
powersets * Insert the two powersets of this Hero or Sidekick. A "•" will automatically be inserted between each set.
start Insert the two starting powers of the Hero, formatted the same as above. This is not applicable to Sidekicks.
travel * Insert the travel power of the Hero or Sidekick.
accuracy * Insert the accuracy rating of the Hero or Sidekick.
defense * Insert the defense rating of the Hero or Sidekick.
health * Insert the health rating of the Hero or Sidekick.
inspiration Insert the inspiration of the Sidekick. This is not applicable to Heroes.
text * Insert the basic text of the card. Format the text the same as appears on the card, with entries like Action: and React: in bold, and multiple lines separated with <br />.
flavor Insert the flavor text of the card. This is the text in italics, usually portrayed as a quote. Formatted entry will already include italics.
number * Insert the card's number in the series.
rarity * Insert the card's rarity. (Preview, Common, Uncommon, Rare, Battle Pack) Appropriate icons will be added automatically.
display Only used on this template page, suppresses the list of See Also links: "y" for suppress, leave off to not suppress links.

Examples

Here is a dummy example that shows where each parameter is displayed.

{{Infobox CCG
|name=name
|type=type
|image=Icon clue generic.png
|archetype=archetype
|powerset1=powerset1
|powerset2=powerset2
|recharge=recharge
|start1=start1
|start2=start2
|travel=travel
|accuracy=accuracy
|defense=defense
|health=health
|prereq=prereq
|text=text
|threat=threat
|defeat=defeat
|reward=reward
|flavor=flavor
|inspiration=inspiration
|deck=deck
|number=number
|rarity=rarity}}
Card
Name: name
Card Type:
Archetype: archetype
Powersets: powerset1 • powerset2
Recharge Type:
Starting Powers: start1start2
Travel Power: travel
Accuracy: accuracy
Defense: defense
Health: health
Prerequisite: prereq
Card Text: text
Threat: Threat: threat
Defeat: Defeat: defeat
Reward: Reward: reward
Flavor Text: flavor
Inspiration: inspiration
Deck: Secret Origins
Card Number: number / 180
Rarity: Promo

Here is a more realistic example from the article COHCCG/Positron.

{{Infobox CCG
|name=Positron
|type=hero
|image=CCG_A_094_Positron.png
|archetype=Defender
|powerset1=Radiation Emission
|powerset2=Radiation Blast
|recharge=
|start1=Overcharge
|start2=Neutrino Bolt
|travel=Flight
|accuracy=3
|defense=3
|health=20
|inspiration=
|prereq=
|threat=
|defeat=
|reward=
|text='''Action:''' Discard 1 card: Search your deck for any power with "Radiation" in the title, reveal it, and put it in your hand. Shuffle your deck.
|flavor=Dr. Raymond Keyes developed the Positron suit while working for [[Crey]]. It allows him to convert anti-matter into powerful blasts of energy.
|deck=arena
|number=94
|rarity=battle pack
}}
Card
Name: Positron
Card Type: Hero
Archetype: Defender
Powersets: Radiation Emission • Radiation Blast
Starting Powers: OverchargeNeutrino Bolt
Travel Power: Flight
Accuracy: 3
Defense: 3
Health: 20
Card Text: Action: Discard 1 card: Search your deck for any power with "Radiation" in the title, reveal it, and put it in your hand. Shuffle your deck.
Flavor Text: Dr. Raymond Keyes developed the Positron suit while working for Crey. It allows him to convert anti-matter into powerful blasts of energy.
Deck: Arena
Card Number: 94 / 324
Rarity: Battle Pack