• Working the Wiki, Part 2

    Working the Wiki, Volume 2: Character and Action Templates

    Welcome back! Today I'm going to show you some of the Templates that exist, to make it easier to add a new character card or non-Basic Action card to the Wiki. These help ensure that the formatting all remains the same, and helps with some of the "Wiki Navigation" that people have asked for.

    So what does it look like? Well, if you go to any of the pages for AvX or ASM cards, and click on the "edit" button, what you will see looks like this:

    {template}Character Card
    | image= This is where the URL for the card image goes.
    | altimage= Alternate card art (i.e. Full-Art promos from Collector's Boxes or OP events.
    | IP= Marvel, DC Comics, Dungeons & Dragons, Yu-Gi-Oh
    | set= The full name of the set (Avengers vs. X-Men, Justice League, etc.)
    | OP= If this is an OP card, which OP event? (Avengers Disassembled, Teen Titans GO!, etc.)
    | number= What is the number of the card?
    | prevcard= What is the card immediately preceding this on the checklist?
    | nextcard= What is the card immediately after this on the checklist?
    | rarity= Starter, Common, Uncommon, Rare, Super Rare, Promo
    | character= The name of the character (i.e. Hulk, Constantine, Red Dragon)
    | title= The name of the card (i.e. Green Goliath, Hellblazer, Epic Dragon)
    | prevchar= The previous version of this character (in this set, or any preceding it)
    | nextchar= The next version of this character (in this set, or any after it)
    | cost= Cost of the card
    | energy= Energy type (Bolt, Fist, Mask, Shield)
    | affiliation= Name of the card's affiliation, if any
    | affiliationimage= URL of affiliation image
    | affiliation2= Second affiliaiton, if any
    | affiliationimage2= URL of second affiliation
    | alignment= Good, Evil, Neutral (D&D only, for now)
    | alignmentimage= URL of alignment image
    | max= Max used (almost always 4, with rare exceptions)
    | equip= If this character can equip Gear (D&D only, for now) put "Yes"
    | ability= The character's ability, from the text box on the card.
    | singleburst= If this character has a single burst ability
    | doubleburst= If this character has a double-burst ability
    | bothburst= If this character has a */** ability
    | global= Type in the Global ability. The template will automatically put the word "Global:" in front and make it red.

    You can easily cut and paste this into any page, replacing the {} around the word template with []. Most of these fields should be self-explanatory, and the ones that aren't applicable you can either just leave blank or delete that line. So what does it look like all filled out?

    {template}Character Card
    | image=http://www.thereservepool.com/images/smilies/cards/asm61medium.jpg
    | IP=Marvel
    | set=The Amazing Spider-Man
    | number=61
    | prevcard=Lizard: Dr. Curt Conners
    | nextcard=Mary Jane: Jackpot
    | rarity=Common
    | character=Luke Cage
    | title=Hero for Hire
    | nextchar=Luke Cage: Power Man
    | cost=5
    | energy=Fist
    | affiliation=Spider-Friends
    | affiliationimage=http://www.thereservepool.com/attachment.php?attachmentid=3586
    | max=4
    | ability=The first time Spider-Man would take damage each turn, you may have Luke Cage take that damage instead.

    You'll note that since this is the first Luke Cage card, he doesn't have a "Previous Character (prevchar)". Also no burst abilities or globals, so we just remove all that.

    The last thing we want to put on the character page is some 'filler' stuff to add to the page. It's for future use to be able to put information here later. Some of the earlier character pages already have this filled out:


    Remember to replace the {} with []

    Action cards are basically the same:

    {template}Action Card
    | image=
    | IP=
    | set=
    | number=
    | prevcard=
    | nextcard=
    | rarity=
    | action=
    | title=
    | prevact=
    | nextact=
    | cost=
    | energy=
    | type=
    | typeimage=
    | type2=
    | typeimage2=
    | max=
    | ability=
    | singleburst=
    | doubleburst=
    | bothburst=
    | global=

    The "type" is for cards like Lantern Battery/Ring that have an affiliation (or the Emotional Construct).

    So what can you do with this? Well, UXM, BFF, AoU, and JL all need templating. Replace the complicated HTML table that exists with this, to make it easier for everyone Plus there are 4 more (already announced) sets on the horizon...

    If you have any questions, ask! I'd love to help.

    Image credits:
    TRABAJO COLABORATIVO [CC BY-SA 4.0 (http://creativecommons.org/licenses/by-sa/4.0)], by SEGUNDO GUAMAN (Own work), from Wikimedia Commons
    Comments 3 Comments
    1. CeeQue's Avatar
      CeeQue -
      Is there a list of URLs for the images and things?
    1. pk2317's Avatar
      pk2317 -
      Quote Originally Posted by CeeQue View Post
      Is there a list of URLs for the images and things?
      That is for Marvel Villains (color affiliation logo). For others, replace the 674 at the end with one of the following:

      Bolt symbol = 1176
      Fist = 1177
      Shield = 1178
      Mask = 1179
      Generic 1 Energy = 2271
      Generic 2 Energy = 2272

      X-Men (color) = 672
      Avengers (color) = 663
      Avengers (black & white in-text logo) = 1685
      Marvel Villains (black & white) = 1769
      Guardians of the Galaxy (color) = 1688
      Zombies (color) = 1836
      Zombies (black & white) = 1716

      DC Villains (color) = 680
      DC Villains (black & white) = 1768
      Justice League = 685
      Legion of Doom = 682
      JSA = 687
    1. pk2317's Avatar
      pk2317 -
      For the card images, see the example above except replace "asm61" with the correct set/card # like you would use for a colon code.