Template:TTreq

From Pathfinder Wiki
Revision as of 00:46, 19 February 2022 by Jomegat (talk | contribs) (cut-n-paste from ansreq)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template is used to add an honor requirement to a teaching tips page. The answerbox needs to be closed by using the CloseReq-Template.
For example like that:

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

The <nowiki /> tag is needed so there is no unnecessary line break at the beginning of the tip. 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 and where did they come from? How many tribes were there when European colonization commenced?

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