Provides card fields as a unified string regardless of single / dual faced.

interface PrintCardFields {
    colors(card: Card): string;
    finishIcon(card: Card): string;
    langName(card: Card): string;
    name(card: Card): string;
    oracleText(card: Card): string;
}
Index

Methods

  • Parameters

    Returns string

    colors string.

  • Parameters

    Returns string

    The finish / foil icon embellishment for spreadsheet card name.

  • Defer to original CSV language code if available and differs from the Scryfall card lang field.

    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

    Returns string

    Normalized language name.

  • Defer to Scryfall name field before falling back to possible printed_name.

    Append language code for non-English cards.

    Parameters

    Returns string

    Normalized card name for spreadsheet display.

  • Generates a note for any oracle text provided with the card.

    Parameters

    Returns string

    oracle_text for any card.