Difference between revisions of "Template:Ansreq/Sandbox"

From Pathfinder Wiki
(Added an example and description of the template)
Line 1: Line 1:
 
<noinclude><translate><!--T:1-->
 
<noinclude><translate><!--T:1-->
 
</noinclude>
 
</noinclude>
<noinclude>This is a Sandbox of the template, to test out new stuff. So if it should be used, it needs to be copied without the dummy content.</noinclude>
+
<noinclude><div class="toccolours"><b>IMPORTANT: This is a Sandbox of the template, to test out new stuff. So if something is tested, it needs to be copied to the [[Template:Ansreq|Template in use]]</b></div>
 +
 
 +
This template is used to create the header and the answerbox of a requirement. If it is not the first Requirement it will close the previous one automatically. If it is the last one it needs to be closed after the box content by using the template [[Template:CloseReq|closereq]].
 +
For example like that:<br>
 +
<div class="toccolours">
 +
<p>
 +
:<nowiki>{{Ansreq/Sandbox|num=1|page=Adventist Youth Honors Answer Book/Nature/Amphibians/Sandbox}}</nowiki><br>
 +
:<nowiki>Here you can write your answer. Any MediaWiki Content is possible.</nowiki><br>
 +
:<nowiki>{{CloseReq}}</nowiki>
 +
</p>
 +
</div>
 +
 
 +
{{Ansreq/Sandbox|num=1|page=Adventist Youth Honors Answer Book/Nature/Amphibians/Sandbox}}
 +
This is the example answer. Any MediaWiki Content is possible (Tables, Templates, ...).
 +
{{CloseReq}}
 +
</noinclude>
 +
 
 +
 
 +
<includeonly>
 
<!--close the collapsible box from previous requirement-->
 
<!--close the collapsible box from previous requirement-->
 
{{#ifeq:{{{num|1}}}|1
 
{{#ifeq:{{{num|1}}}|1
Line 20: Line 38:
 
<b><font size=3 color=#202020>{{:{{#titleparts:{{{page}}}|3|1}}/Requirement/{{{num}}}{{#switch:{{SUBPAGENAME}}|es=/es|fr=/fr}}}}</font></b>
 
<b><font size=3 color=#202020>{{:{{#titleparts:{{{page}}}|3|1}}/Requirement/{{{num}}}{{#switch:{{SUBPAGENAME}}|es=/es|fr=/fr}}}}</font></b>
 
</td>
 
</td>
<td bgcolor=#E5E5FF style="text-align: right; padding:0 0.5em; white-space:nowrap;">{{CustomToggleButton|text={{#switch:{{SUBPAGENAME}}|es=Mostrar/ocultar Respuesta|fr= Afficher/Masquer Réponse|Show/Hide Answer}}|name=ansreq-{{{num|1}}}}}
+
<td bgcolor=#E5E5FF style="text-align: right; padding:0 0.5em; white-space:nowrap;">{{CustomToggleButton|text={{#switch:{{SUBPAGENAME}}|es=Mostrar/ocultar Respuesta|fr=Afficher/Masquer Réponse|Show/Hide Answer}}|name=ansreq-{{{num|1}}}}}
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 26: Line 44:
 
<!--create collapsible box for the answers-->
 
<!--create collapsible box for the answers-->
 
<div class="toccolours mw-collapsible" id="mw-customcollapsible-ansreq-{{{num|1}}}">
 
<div class="toccolours mw-collapsible" id="mw-customcollapsible-ansreq-{{{num|1}}}">
Test Content
+
</includeonly>
</div>
 
 
<noinclude></translate></noinclude>
 
<noinclude></translate></noinclude>

Revision as of 08:30, 9 November 2020

IMPORTANT: This is a Sandbox of the template, to test out new stuff. So if something is tested, it needs to be copied to the Template in use

This template is used to create the header and the answerbox of a requirement. If it is not the first Requirement it will close the previous one automatically. If it is the last one it needs to be closed after the box content by using the template closereq. For example like that:

{{Ansreq/Sandbox|num=1|page=Adventist Youth Honors Answer Book/Nature/Amphibians/Sandbox}}
Here you can write your answer. Any MediaWiki Content is possible.
{{CloseReq}}





Requirement 1

Adventist Youth Honors Answer Book/Nature/Amphibians/Requirement/1

[Show/Hide Answer]


This is the example answer. Any MediaWiki Content is possible (Tables, Templates, ...).