Template:Database/doc

Description
This template contains certain data for cards. It can currently be used to access the following values of a given card:
 * Name of the card (Example output: Theme Park Fun!)
 * Attribute (Example output: Powerful)
 * Rarity (Example output: 4★)
 * Name of the Character the card belongs to (Example output: Toyama Kasumi)
 * Skill Type (Example output: Perfect Lock)
 * Card number / ID (Example output: 4)

Usage
Accessing data takes two parameters. The first parameter is for identification of the card, for which either the card's ID or Name is needed. The card name can be written either the same way as the Pagename of it's article or the same way but stripped of all special character like punctuation and parentheses. Upper and lower cases are ignored, for the example name above, the following would be a valid spelling for instance:

The second parameter specifies which information is to be accessed. The following are valid values for the second parameter, with the values in parentheses being equivalent aliases: name (n) attribute (attr, a) rarity (r) member (m, character, char, c) skill (s) id (number, nr)

Also, the template Db redirects here and can be used as a shorthand for Database.

Substitution
Using the template will show the extracted values normally when viewing the pages it is used. However, when editing the page the template call will still be visible, which might be confusing to future editors or otherwise unwanted. For that case, it is possible to substitute the accessed value into the wikitext, which will replace any traces of this template with simply the value remaining. To do this add  before Database in the template call, like this:

Examples
returns:

Also returns:

Use in context:
The first  card is called, has the ID and a  skill. Shows on page:

The first  card is called, has the ID  and a  skill.

And shows when editing the source:

The first  card is called, has the ID and a  skill.

Substitution
The first reckless reckless card is called 1, has the ID Reckless! and a 1 skill.

Shows on page AND when editing the source:

The first Toyama Kasumi 1★ card is called Reckless!, has the ID 1 and a Score Up skill.