Difference between revisions of "Template:IAreq"

From Pathfinder Wiki
m (Account for TLT->Localization move)
m (Switch to one-page localizer)
 
Line 25: Line 25:
 
<b><font size=3 color=#202020>{{#lst:{{#titleparts:{{{page}}}|3|1}}/Requirements{{GetLangSuffix}}|req{{{num}}} }}</font></b>
 
<b><font size=3 color=#202020>{{#lst:{{#titleparts:{{{page}}}|3|1}}/Requirements{{GetLangSuffix}}|req{{{num}}} }}</font></b>
 
</td>
 
</td>
<td class="nomobile" bgcolor=#E5E5FF style="text-align: right; padding:0 0.5em; white-space:nowrap;">{{CustomToggleButton|text={{Localization:Show Hide Answer{{GetLangSuffix}}}}|name=ansreq-{{{num|1}}}}}
+
<td class="nomobile" bgcolor=#E5E5FF style="text-align: right; padding:0 0.5em; white-space:nowrap;">{{CustomToggleButton|text={{Localize|Show Hide Answer}}|name=ansreq-{{{num|1}}}}}
 
</td>
 
</td>
 
</tr>
 
</tr>

Latest revision as of 00:38, 30 January 2021

This template is used to create the header and the answerbox of a requirement. The answerbox needs to be closed by using the CloseReq-Template.
For example like that:

{{IAreq|num=1|page={{PAGENAME}}}}<nowiki />
Here you can write your answer. Any MediaWiki-Content is possible.
{{CloseReq}}

The <nowiki /> tag is needed so there is no unnecessary line break at the beginning of the answer.

1

Be in Grade 5 or its equivalent.

[Show/Hide Answer]

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