Difference between revisions of "AY Honors/Tie-Dye - Advanced/Requirements"

From Pathfinder Wiki
< AY Honors‎ | Tie-Dye - AdvancedAY Honors/Tie-Dye - Advanced/Requirements
m (specify the displayable version of the tertiary subrequirement)
Line 1: Line 1:
<languages /><br />
+
<noinclude>
<noinclude><translate></noinclude>
+
This template displays a header at the top of an honor requirements page.
==Requirements==
+
 
{{reqreq|page={{PAGENAME}}|num=1}}
+
If a '''page''' argument is given, it will display the header for that page.
{{reqreq|page={{PAGENAME}}|num=2}}
+
:Otherwise it assumes that the parent page is an honor page and display a header for that.
{{reqreq|page={{PAGENAME}}|num=3}}
+
 
{{reqsubreq|page={{PAGENAME}}|num=3a}}
+
If an '''honorname''' argument is given, it will display  that as the honor name at the top.
{{reqsubsubreq|page={{PAGENAME}}|num=3ai|dispreq=i}}
+
:Otherwise, it will try to pull the honorname from the pagename using #titleparts (starting at the third element of the page name, and displaying only one element).  The honorname argument might be useful for translations.
{{reqsubsubreq|page={{PAGENAME}}|num=3aii|dispreq=ii}}
+
 
{{reqsubsubreq|page={{PAGENAME}}|num=3aiii|dispreq=iii}}
+
I've not tried to make this look nice.  I've been concentrating on the mechanics.  Feel free to fix the aesthetics!
{{reqsubsubreq|page={{PAGENAME}}|num=3aiv|dispreq=iv}}
+
</noinclude>
{{reqsubreq|page={{PAGENAME}}|num=3b}}
+
={{#if:{{{honorname|}}}|{{{honorname}}}|{{#titleparts:{{PAGENAME}}|1|3}}}}=
{{reqsubsubreq|page={{PAGENAME}}|num=3bi|dispreq=i}}
+
{{GetHonorCategory|page={{{page|{{BASEPAGENAME}}}}}}}<br>
{{reqsubsubreq|page={{PAGENAME}}|num=3bii|dispreq=ii}}
+
Skill Level {{GetSkillLevel|page={{{page|{{BASEPAGENAME}}}}}}}
{{reqsubsubreq|page={{PAGENAME}}|num=3biii|dispreq=iii}}
 
{{reqsubsubreq|page={{PAGENAME}}|num=3biv|dispreq=iv}}
 
{{reqsubsubreq|page={{PAGENAME}}|num=3bv|dispreq=v}}
 
{{reqreq|page={{PAGENAME}}|num=4}}
 
{{reqreq|page={{PAGENAME}}|num=5}}
 
[[Category:Honor Requirements|{{#titleparts:{{PAGENAME}}|1|3}}]]
 
<noinclude></translate></noinclude>
 

Revision as of 01:47, 24 November 2020

This template displays a header at the top of an honor requirements page.

If a page argument is given, it will display the header for that page.

Otherwise it assumes that the parent page is an honor page and display a header for that.

If an honorname argument is given, it will display that as the honor name at the top.

Otherwise, it will try to pull the honorname from the pagename using #titleparts (starting at the third element of the page name, and displaying only one element). The honorname argument might be useful for translations.

I've not tried to make this look nice. I've been concentrating on the mechanics. Feel free to fix the aesthetics!

Requirements


Skill Level