Difference between revisions of "Template:Has Variant"
From Pathfinder Wiki
Line 13: | Line 13: | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
− | {{#vardefine:variant|{{#titleparts:{{{page|{{PAGENAME}}}}}|2|1}} ({{{division|General Conference}}})}} | + | {{#vardefine:variant|{{#titleparts:{{{page|{{PAGENAME}}}}}|2|1}} ({{{division|General Conference}}}){{GetLangSuffix}}}} |
{{#ifexist:{{#var:variant}}|{{#var:variant}}}} | {{#ifexist:{{#var:variant}}|{{#var:variant}}}} | ||
</includeonly> | </includeonly> |
Revision as of 04:45, 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.