Template:Scryfall set

From Magic: The Gathering Wiki
Jump to navigation Jump to search

This template returns a set name that can be inserted into a Scryfall URL, based on the page name if possible and the set code (which must be passed as 1) if not. It is currently only used in Template:Infobox set, to avoid cluttering the logic of the lang parameter. In theory, it could be used within other templates which meet the following criteria:

  1. The template is only used in set articles
  2. The template already accepts a set code as one of its parameters, or otherwise has easy access to the set code