Difference between revisions of "AY Honors/Tops/Requirements"

From Pathfinder Wiki
< AY Honors‎ | TopsAY Honors/Tops/Requirements
(Bot: Automated import of articles)
 
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.
{{reqsubreq|page={{PAGENAME}}|num=3b}}
+
:Otherwise, it will try to pull the honorname from the page argument (or from PAGENAME if no page is given) using #titleparts (starting at the third element of the page name, and displaying only one element).  The honorname argument might be useful for translations.
{{reqsubreq|page={{PAGENAME}}|num=3c}}
+
 
{{reqsubreq|page={{PAGENAME}}|num=3d}}
+
TODO:
{{reqreq|page={{PAGENAME}}|num=4}}
+
 
{{reqsubreq|page={{PAGENAME}}|num=4a}}
+
*I've not tried to make this look nice.  I've been concentrating on the mechanics.  Feel free to fix the aesthetics!
{{reqsubreq|page={{PAGENAME}}|num=4b}}
+
*Add the year of introduction (we need to get #switchcategory working or this will be an insane errand).
{{reqsubreq|page={{PAGENAME}}|num=4e}}
+
*Add the insignia.  We might want to create an insignia page at AYHAB/<category>/<honor>/Insignia for each honor and just include that.  I don't think we can fish the insignia out of the honor, but maybe DPL can manage somehow.  If it can, it could also extract the year from the parent's honor_desc as well.
{{reqreq|page={{PAGENAME}}|num=5}}
+
*Add the approval authority.
{{reqsubreq|page={{PAGENAME}}|num=5a}}
+
 
{{reqsubreq|page={{PAGENAME}}|num=5b}}
+
</noinclude>
{{reqsubreq|page={{PAGENAME}}|num=5c}}
+
={{#if:{{{honorname|}}}|{{{honorname}}}|{{#titleparts:{{{page|{{PAGENAME}}}}}|1|3}}}}=
{{reqsubreq|page={{PAGENAME}}|num=5d}}
+
Category: {{GetHonorCategory|page={{{page|{{BASEPAGENAME}}}}}}}<br>
{{reqsubreq|page={{PAGENAME}}|num=5e}}
+
Skill Level {{GetSkillLevel|page={{{page|{{BASEPAGENAME}}}}}}}
{{reqreq|page={{PAGENAME}}|num=6}}
 
{{reqsubreq|page={{PAGENAME}}|num=6a}}
 
{{reqsubreq|page={{PAGENAME}}|num=6b}}
 
{{reqsubreq|page={{PAGENAME}}|num=6c}}
 
{{reqreq|page={{PAGENAME}}|num=7}}
 
{{reqreq|page={{PAGENAME}}|num=8}}
 
{{reqsubreq|page={{PAGENAME}}|num=8a}}
 
{{reqsubreq|page={{PAGENAME}}|num=8b}}
 
{{reqsubreq|page={{PAGENAME}}|num=8c}}
 
{{reqsubreq|page={{PAGENAME}}|num=8d}}
 
{{reqreq|page={{PAGENAME}}|num=9}}
 
{{reqreq|page={{PAGENAME}}|num=10}}
 
{{reqsubreq|page={{PAGENAME}}|num=10a}}
 
{{reqsubreq|page={{PAGENAME}}|num=10b}}
 
{{reqsubreq|page={{PAGENAME}}|num=10c}}
 
{{reqsubreq|page={{PAGENAME}}|num=10d}}
 
{{reqsubreq|page={{PAGENAME}}|num=10e}}
 
{{reqsubreq|page={{PAGENAME}}|num=10f}}
 
{{reqreq|page={{PAGENAME}}|num=11}}
 
{{reqsubreq|page={{PAGENAME}}|num=11a}}
 
{{reqsubreq|page={{PAGENAME}}|num=11b}}
 
{{reqsubreq|page={{PAGENAME}}|num=11c}}
 
{{reqreq|page={{PAGENAME}}|num=12}}
 
[[Category:Honor Requirements|{{#titleparts:{{PAGENAME}}|1|3}}]]
 
<noinclude></translate></noinclude>
 

Revision as of 01:48, 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 page argument (or from PAGENAME if no page is given) using #titleparts (starting at the third element of the page name, and displaying only one element). The honorname argument might be useful for translations.

TODO:

  • I've not tried to make this look nice. I've been concentrating on the mechanics. Feel free to fix the aesthetics!
  • Add the year of introduction (we need to get #switchcategory working or this will be an insane errand).
  • Add the insignia. We might want to create an insignia page at AYHAB/<category>/<honor>/Insignia for each honor and just include that. I don't think we can fish the insignia out of the honor, but maybe DPL can manage somehow. If it can, it could also extract the year from the parent's honor_desc as well.
  • Add the approval authority.


Requirements

Category:
Skill Level