Template:IsVariant

From Pathfinder Wiki
Revision as of 00:54, 27 February 2021 by Jomegat (talk | contribs)


This template evaluates the page argument (or the title of the invoking page if page is not supplied) to determine if it is a variant of another honor.

If it determines that page is a variant, it will return the page title of the base honor. Otherwise it will return an empty string.

page parameter Return string Note
AY Honors/Archery (General Conference)

AY Honors/Archery


Is a variant, so returns the base
AY Honors/Archery (General Conference)/es

AY Honors/Archery/es


Works in Spanish!
AY Honors/Archery


Is the base, so returns nothing
AY Honors/Child Care (Babysitting)

AY Honors/Child Care


Is not a variant because AY Honor Child Care does not exist.