Difference between revisions of "Template:Honor overview"

From Pathfinder Wiki
 
(10 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
;skill: Skill level of the honor (1, 2, or 3)
 
;skill: Skill level of the honor (1, 2, or 3)
 
;year: The year the honor was introduced
 
;year: The year the honor was introduced
 +
;instructor: If an instructor is required, define this to any non-blank text.  If the value specified is ''licensed, skilled,'' or ''qualfied'', the honor will be added to [[:Category:Instructor Required/Licensed]], [[:Category:Instructor Required/Skilled]], or [[:Category:Instructor Required/Qualified]].  All honors that have this field set to anything (including the special values listed above) will be added to [[:Category:Instructor Required]].
 
;authority: The highest level organization in the church which has approved the honor.
 
;authority: The highest level organization in the church which has approved the honor.
 
;insignia: Filename for the patch's image.  If specified, the honor will be placed in [[:Category:Has insignia image]].  If omitted, the honor will be placed in [[:Category:No insignia image]].
 
;insignia: Filename for the patch's image.  If specified, the honor will be placed in [[:Category:Has insignia image]].  If omitted, the honor will be placed in [[:Category:No insignia image]].
Line 16: Line 17:
 
;significant_requirement_id: Identifies the most significant requirement of the honor and highlights it so that the instructor can quickly know if the honor requires a field trip, or if anyone earning it needs to overhaul a small engine, etc.  This requirement is usually the one that requires the most time or effort.
 
;significant_requirement_id: Identifies the most significant requirement of the honor and highlights it so that the instructor can quickly know if the honor requires a field trip, or if anyone earning it needs to overhaul a small engine, etc.  This requirement is usually the one that requires the most time or effort.
 
;significant_requirement_disp: How to display the requirement number for the significant_requirement_id.
 
;significant_requirement_disp: How to display the requirement number for the significant_requirement_id.
 +
;sigsubreq_id''N'': If the significant_requirement identified above has sub requirements, they can be added as well, by specifying them here (where ''N'' is 1, 2, 3, etc).  I don't know of a limit on how high ''N'' can go, but please take it easy.
 +
;sigsubreq_disp''N'': If the requirement id is unpleasantly unique, you can display something else for it by specifying it here.  Again, ''N'' starts at 1 and goes up.
 
==Assumptions==
 
==Assumptions==
 
*The page invoking has the honor name as the second element of the title - such as AY_Honors/''honor''.
 
*The page invoking has the honor name as the second element of the title - such as AY_Honors/''honor''.
Line 27: Line 30:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
{| style="width:100%; background-color:#a4c0fe;" border="1" cellspacing="0" cellpadding="4" align="center"
+
{| style="width:100%; background-color:#f5f5f5;" border="1" cellspacing="0" cellpadding="4" align="center"
 
  ! colspan="3" | {{{honorname}}}
 
  ! colspan="3" | {{{honorname}}}
 
  |-
 
  |-
Line 74: Line 77:
 
                             |[[Category:AY Honors/Primary|{{{honorname}}}]]
 
                             |[[Category:AY Honors/Primary|{{{honorname}}}]]
 
   }}
 
   }}
 +
}}
 +
{{#if:{{{instructor|}}}|[[Category:Instructor Required]]
 +
<big><b>{{#switch:{{{instructor|}}}
 +
|licensed|license=A Licensed Instructor is required for this honor.
 +
[[Category:Instructor Required/Licensed]]
 +
|skilled=An Instructor skilled in this field is required for this honor.
 +
[[Category:Instructor Required/Skilled]]
 +
|qualified=An Instructor skilled in this field is required for this honor.
 +
[[Category:Instructor Required/Qualified]]
 +
|Instructor Required.
 +
}}
 +
</b></big>
 
}}
 
}}
 
==Overview==
 
==Overview==
 
{{{overview}}}
 
{{{overview}}}
<hr>
+
 
{{#if:{{{significant_requirement_id0|}}}  |The most challenging requirement of this honor is:<br/>
+
{{#if:{{{significant_requirement_id|}}}   
{{{significant_requirement_disp0|{{{significant_requirement_id0}}} }}}.<br />
+
|==The Challenging Part==
{{#vardefine: i | 0 }}{{#while:|{{{significant_requirement_id{{#var: i }} |}}}
+
This might be the most challenging part of earning (or teaching) this honor:
 +
 
 +
<b>{{reqreq|page=Adventist Youth Honors Answer Book/{{{category}}}/{{#titleparts:{{PAGENAME}}|1|2}}
 +
|num={{{significant_requirement_id}}}
 +
|dispreq={{{significant_requirement_disp|}}}
 +
}}
 +
{{#vardefine: i | 1 }}{{#while:|{{{sigsubreq_id{{#var: i }} |}}}
 
|<nowiki />
 
|<nowiki />
<b>{{reqreq|page=Adventist Youth Honors Answer Book/{{{category}}}/{{#titleparts:{{PAGENAME}}|1|2}}
+
:{{reqreq|page=Adventist Youth Honors Answer Book/{{{category}}}/{{#titleparts:{{PAGENAME}}|1|2}}
|num={{{significant_requirement_id{{#var: i }} }}}
+
|num={{{sigsubreq_id{{#var: i }} }}}
|dispreq={{{significant_requirement_disp{{#var: i }} |}}}
+
|dispreq={{{sigsubreq_disp{{#var: i }} |}}}
}}</b><br />
+
}}{{#vardefine: i| {{#expr: {{#var: i }} + 1 }}}}
{{#vardefine: i| {{#expr: {{#var: i }} + 1 }}}}
 
 
}}<!--end while-->
 
}}<!--end while-->
 
+
</b>
 
[[Category:AY Honor/Has Significant Requirement|{{{honorname}}}]]
 
[[Category:AY Honor/Has Significant Requirement|{{{honorname}}}]]
 
}}<!--endif #if:significant_requirement_id0 -->
 
}}<!--endif #if:significant_requirement_id0 -->

Latest revision as of 04:55, 5 December 2020

This template is intended to be used on an honor's overview page. It was based on Template:Honor_desc and should (eventually) replace it as the primary repository of an honor's metadata.

It does not collect metadata on the development stage , as that data is associated with the answer keys rather than with the honor itself.

Parameters

honorname
Name of the honor as it should be displayed at the top of the banner.
category
Category to which the honor belongs.
skill
Skill level of the honor (1, 2, or 3)
year
The year the honor was introduced
instructor
If an instructor is required, define this to any non-blank text. If the value specified is licensed, skilled, or qualfied, the honor will be added to Category:Instructor Required/Licensed, Category:Instructor Required/Skilled, or Category:Instructor Required/Qualified. All honors that have this field set to anything (including the special values listed above) will be added to Category:Instructor Required.
authority
The highest level organization in the church which has approved the honor.
insignia
Filename for the patch's image. If specified, the honor will be placed in Category:Has insignia image. If omitted, the honor will be placed in Category:No insignia image.
insignia_source
If the insignia is not carried by AdventSource, this variable will indicate where it can be obtained. If set, it will also superimpose a "Not available at AdventSource" warning across the insignia image. We are required to splash this warning by the NAD (our host).
primary
If this honor has variants depending on where it is taught (because the answer key is different, or because the requirements are different), this argument should indicate which page is the primary version of the honor. Because the wiki is hosted by the NAD, any NAD variant will be considered primary. Otherwise, the primary version will be the highest authority level. If left blank, this variant of the honor will be considered the primary version. If set, this variant will be marked as secondary and it will not show up in the main indices.
overview
Free form text describing the honor. This overview can be viewed as a "product description" and should give the reader an idea of whether the honor matches their interests.
significant_requirement_id
Identifies the most significant requirement of the honor and highlights it so that the instructor can quickly know if the honor requires a field trip, or if anyone earning it needs to overhaul a small engine, etc. This requirement is usually the one that requires the most time or effort.
significant_requirement_disp
How to display the requirement number for the significant_requirement_id.
sigsubreq_idN
If the significant_requirement identified above has sub requirements, they can be added as well, by specifying them here (where N is 1, 2, 3, etc). I don't know of a limit on how high N can go, but please take it easy.
sigsubreq_dispN
If the requirement id is unpleasantly unique, you can display something else for it by specifying it here. Again, N starts at 1 and goes up.

Assumptions

  • The page invoking has the honor name as the second element of the title - such as AY_Honors/honor.
  • The honor requirements are located at Adventist_Youth_Honors_Answer_Book/category/honorname/Requirements.
  • The answer key is located at Adventist_Youth_Honors_Answer_Book/category/honorname
  • Insignia is available at AdventSource unless the insignia_source parameter is supplied.

Techno-magic

If another page exists, having the same name as the one including this but with an "- Advanced" suffix in the honor portion of the page name, we will include a link to it in the banner, and place the honor into Category:AY Honors/Honors with an Advanced Option.