User:Becasita/SubPages/Templates/SetList/Archive

This template is used to generate card lists for sets. While this page itself does nothing, it contains several sub-pages:
 * The header;
 * Row generator;
 * A sub-header;
 * The footer;

Description
Made accordingly to Dinoguy1000's boilerplate in terms of display. Uses templates like Card name and.

Still has some problems, especially since I can't include the  tags. The rest is minor and I think I can fix it.

The header
Compulsory part of the list. Needs to exist. The majority of the variables used throughout the other templates are defined here. Creates the header of the page as well as the header of the list.


 * Receives one unnamed parameter:
 * 1: If this parameter is not empty, then a sub header will be generated with the text entered at this parameter. Optional parameter.


 * Receives two named parameters:
 * abbr: If this parameter is not empty, then the entered string will be the one used as the set abbreviation. This may include the region index and any post fixes (e.g., NECH-ENS). Optional parameter (if it doesn't exist, the template will get the set abbreviation automatically) . This parameter should be used to correct any errors that may exist.
 * qty: In case a list requires the "Qty" column to exist (such as in certain Structure Decks, for instance), this parameter has to be filled. It doesn't matter the value of the argument, but something intuitive and easy to read is advisable (suggestion: ). This generates the column through all the entries with a default value of  . More info on how to deal with this will come later.

The row
This will generate the row in the list that contains the information of the card. One per card.


 * Receives four unnamed parameters:
 * 1: The name of the card. The original (printed) name of the card may be entered, except for cards whose name is shared with other pages and thus need "(card)" in their page name. That means, is accepted, as well as, obviously, . However, is not accepted correctly, as it refers to the set; In this case has to be used.


 * 2: The rarity or the rarities of the card. If several, they should be separated with a comma . It doesn't matter if they are entered abbreviated or with their full terminology. Not case sensitive either. Check for more information. If left blank, the default rarity will be.


 * 3: The set number of the card. Has to be filled. Examples: "011" in "RP01-EN011"; "2" in "DOCS-FRSE2".


 * 4: If the  parameter was filled in the header, then this parameter is used to indicate how many copies of the card were released on that set. If left blank, it defaults to  . To make it display blank, must be entered.


 * Receives one named parameter:
 * type: Used only to fix any errors that may exist due to glitched pages. It is used to pass manually the card type.

The middle
Generates a sub-header between two rows. Used in cases where the same set has cards differentiated in some way (example).


 * Receives two unnamed parameters:
 * 1: The name to display on the header. Defaults to the set name.


 * 2: The colspan (number of columns). This should only be used if a sub-header is not created at the Header template.

The footer
Closes the list and includes the categories.