Template:GetPreferredVariant

From Pathfinder Wiki
Revision as of 02:26, 9 April 2021 by Jomegat (talk | contribs) (Created page with "<includeonly>{{#vardefine:conference|{{GetUserData|data=Conference}}}}{{#vardefine:union|{{GetUserData|data=Union}}}}{{#vardefine:division|{{GetUserData|data=Division}}}}{{#if...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template accepts a comma-deliniated list of honor variants and compares them to the user's profile data. It returns the lowest-level variant (country, conference, union, division, GC) that matches the user's profile. This can be used to decide which requirements to show, or which answer key to feature, etc.

Examples

  • {{GetPreferredVariant|variants=North American Division,General Conference,Atlantic Union,Northern New England}} →
  • {{GetPreferredVariant|variants=North American Division,General Conference,Atlantic Union}} →
  • {{GetPreferredVariant|variants=North American Division,General Conference}} →
  • {{GetPreferredVariant|variants=South American Division,General Conference}} →