Difference between revisions of "Template:Has Variant"
From Pathfinder Wiki
(Created page with "<noinclude> Returns page title of division variant if it exists. Returns an empty string otherwise. {{#vardefine:gcCycle|{{Has Variant|page=AY Honors/Cycling - Advanced|div...") |
|||
Line 2: | Line 2: | ||
Returns page title of division variant if it exists. Returns an empty string otherwise. | Returns page title of division variant if it exists. Returns an empty string otherwise. | ||
+ | ;page: Title of page we want to check for a variant. If not specified, the template assumes it is being invoked from an honor landing page and uses that as the basis for the variant check. Variants are located at <nowiki>[[</nowiki>AY Honors/''honor'' (''division'')]]. | ||
+ | |||
+ | ;division: If specified, the template will use the value assigned as the ''division'' when it looks for a page. If not specified, it defaults to "General Conference". | ||
{{#vardefine:gcCycle|{{Has Variant|page=AY Honors/Cycling - Advanced|division=General Conference}}}} | {{#vardefine:gcCycle|{{Has Variant|page=AY Honors/Cycling - Advanced|division=General Conference}}}} |
Revision as of 04:41, 26 February 2021
Returns page title of division variant if it exists. Returns an empty string otherwise.
- page
- Title of page we want to check for a variant. If not specified, the template assumes it is being invoked from an honor landing page and uses that as the basis for the variant check. Variants are located at [[AY Honors/honor (division)]].
- division
- If specified, the template will use the value assigned as the division when it looks for a page. If not specified, it defaults to "General Conference".
AY Honor Cycling - Advanced has a GC variant at AY Honor Cycling - Advanced.
AY Honor Biosafety has a SAD variant at AY Honor Biosafety.