Difference between revisions of "Template:Ansreq"

From Pathfinder Wiki
Line 1: Line 1:
 +
<!--close the collapsible box from previous requirement-->
 +
{{#switch:{{{boxtype|parent}}}
 +
|firstsub=<!-- first subrequirement does not close parent-->
 +
|lastsub=</div></div></div></div><!--last sub closes itself and its parent-->
 +
|parent={{#ifeq|{{{num}}}|1
 +
|<!--first requirement doesn't close previous box-->
 +
|</div></div><!--if this is not the first requirement, close the previous box-->}}
 +
}}
 +
<!--render requirements box-->
 
<table width="100%" cellspacing=0>
 
<table width="100%" cellspacing=0>
 
<tr>
 
<tr>
Line 14: Line 23:
 
</td></tr>
 
</td></tr>
 
</table>
 
</table>
 +
<!--create collapsible box for the answers-->
 
<!--div class="toccolours mw-collapsible mw-collapsed" style="width:100%"-->
 
<!--div class="toccolours mw-collapsible mw-collapsed" style="width:100%"-->
 
<div class="toccolours mw-collapsible" style="width:100%">
 
<div class="toccolours mw-collapsible" style="width:100%">
 
Answers
 
Answers
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">

Revision as of 01:34, 23 October 2020

{{#ifeq|{{{num}}}|1 |

|}}

Requirement {{{num}}}

{{:{{{page}}}/Requirement/{{{num}}}}}

Answers