Template:Set relative

From mtgpq wiki
Revision as of 07:30, 25 February 2019 by Volrak (talk | contribs) (Created page with "<noinclude> ==Usage== Get the three-letter expansion set abbreviation of the set relative to a given starting set, by a variable position in the release timeline. The first...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Usage

Get the three-letter expansion set abbreviation of the set relative to a given starting set, by a variable position in the release timeline.

The first parameter is the starting set's three-letter expansion set abbreviation.

The second parameter is a relative amount, such as +1 or -1, which indicates the number of sets forwards or backwards in the release timeline to look.

If the search goes off the front or the back of the set timeline, an invalid numerical ID is returned instead.

Example

This shorthand:

{{Set relative|M19|+1}}

{{Set relative|ORI|-5}}

Produces: ZVE

id-4