Interface PrintCardFields
interface PrintCardFields {
colors(card: Card): string;
finishIcon(card: Card): string;
langName(card: Card): string;
name(card: Card): string;
oracleText(card: Card): string;
}
colors(card: Card): string;
finishIcon(card: Card): string;
langName(card: Card): string;
name(card: Card): string;
oracleText(card: Card): string;
}
Index
Methods
Methods
colors
finishIcon
langName
Defer to original CSV language code if available and differs from the Scryfall card
langfield.Alas, currently most online MTG collection services do not associate cards w/ foreign language Scryfall IDs. A temporary solution is to defer to any language set by the collection service exported CSV instead of the found Scryfall card data / language when these values differ. This requires the user to correctly set the language in the online MTG collection service.
Parameters
- card: Card
Returns string
Normalized language name.
name
Defer to Scryfall
namefield before falling back to possibleprinted_name.Append language code for non-English cards.
Parameters
- card: Card
Returns string
Normalized card name for spreadsheet display.
oracleText
Generates a note for any oracle text provided with the card.
Parameters
- card: Card
Returns string
oracle_textfor any card.
Provides card fields as a unified string regardless of single / dual faced.