Difference between revisions of "Template:ListVariants"

From Pathfinder Wiki
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{#vardefine:numvariants|0}}
+
{{#vardefine:numvariants|0}}{{#vardefine:page|{{#titleparts:{{{page|{{PAGENAME}}}}}|2}}}}
{{#vardefine:gcvar|{{Has Variant|page={{{page}}}|division=General Conference}}}}{{#if:{{#var:gcvar}}|[[{{#var:gcvar}}]]{{#vardefine:numvariants|{{#expr: {{#var:numvariants}}+1}}}}}}
+
{{#vardefine:gcvar|{{Has Variant|page={{#var:page}}|division=General Conference}}}}{{#if:{{#var:gcvar}}|[[{{#var:gcvar}}]]{{#vardefine:numvariants|{{#expr: {{#var:numvariants}}+1}}}}}}
{{#vardefine:sadvar|{{Has Variant|page={{{page}}}|division=South American Division}}}}{{#if:{{#var:sadvar}}|[[{{#var:sadvar}}]]{{#vardefine:numvariants|{{#expr: {{#var:numvariants}}+1}}}}}}
+
{{#vardefine:sadvar|{{Has Variant|page={{#var:page}}|division=South American Division}}}}{{#if:{{#var:sadvar}}|[[{{#var:sadvar}}]]{{#vardefine:numvariants|{{#expr: {{#var:numvariants}}+1}}}}}}
{{#vardefine:spdvar|{{Has Variant|page={{{page}}}|division=South Pacific Division}}}}{{#if:{{#var:spdvar}}|[[{{#var:spdvar}}]]{{#vardefine:numvariants|{{#expr: {{#var:numvariants}}+1}}}}}}
+
{{#vardefine:spdvar|{{Has Variant|page={{#var:page}}|division=South Pacific Division}}}}{{#if:{{#var:spdvar}}|[[{{#var:spdvar}}]]{{#vardefine:numvariants|{{#expr: {{#var:numvariants}}+1}}}}}}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>

Revision as of 00:42, 27 February 2021