Difference between revisions of "Template:Ansreq"

From Pathfinder Wiki
(added pagelanguage)
Line 33: Line 33:
 
       {{#if:{{{level5_ID |}}}|AND level5_ID ='{{{level5_ID}}}'|}}
 
       {{#if:{{{level5_ID |}}}|AND level5_ID ='{{{level5_ID}}}'|}}
 
       {{#if:{{{level6_ID|}}}|AND level6_ID ='{{{level6_ID}}}'|}}
 
       {{#if:{{{level6_ID|}}}|AND level6_ID ='{{{level6_ID}}}'|}}
       AND language='{{{language|en}}}'  
+
       AND language='{{{language|{{PAGELANGUAGE}}}}}'  
 
|fields=text
 
|fields=text
 
|template=CargoOutput-NoFormatting
 
|template=CargoOutput-NoFormatting

Revision as of 20:10, 11 June 2022

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:

{{Ansreq|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 begining of the answer. For the Example the {{PAGENAME}} was replaced with a fixed name, but at an honor page the template will get the needed information out of the pagename.

If the page argument contains the word "Requirement" then the requirements are fetched directly from that page. If it doesn't, then we construct the requirements page by extracting the first two elements of the page (assumed to be "AY Honors/honor") and appending "/Requirements" to it. We need this to support variant requirements, as it allows us to specify

page=AY Honors/''honor''/Requirements_2

in the honor landing template.

1

Who are the Aborigines aan colonization commenced?

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


1

What is the gustatory system?

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