Difference between revisions of "Template:Honor overview"
From Pathfinder Wiki
(44 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <noinclude> | ||
+ | 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 Advent''Source'', this variable will indicate where it can be obtained. If set, it will also superimpose a "Not available at Advent''Source''" 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_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== | ||
+ | *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 Advent''Source'' 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]]. | ||
+ | |||
+ | </noinclude> | ||
<includeonly> | <includeonly> | ||
− | {| style="width:100%; background-color:# | + | {| style="width:100%; background-color:#f5f5f5;" border="1" cellspacing="0" cellpadding="4" align="center" |
! colspan="3" | {{{honorname}}} | ! colspan="3" | {{{honorname}}} | ||
|- | |- | ||
Line 28: | Line 58: | ||
}} | }} | ||
{{#if:{{{insignia_source|}}}|<br />{{insignia_source|{{{insignia_source}}}}}}} | {{#if:{{{insignia_source|}}}|<br />{{insignia_source|{{{insignia_source}}}}}}} | ||
− | + | |- | |
+ | |<!--Show a link to the requirements--> | ||
+ | [[File:Icons8 flat todo list.svg|25px]][[Adventist Youth Honors Answer Book/{{{category}}}/{{#titleparts:{{PAGENAME}}|1|2}}/Requirements|Requirements]] | ||
+ | |<!--Show a link to the answer key--> | ||
+ | [[File:OOjs UI icon key-progressive.svg|25px]]{{stage_short|{{#dpl:title=Adventist Youth Honors Answer Book/{{{category}}}/{{#titleparts:{{PAGENAME}}|1|2}}|include={honor_desc}:stage}}}}[[Adventist Youth Honors Answer Book/{{{category}}}/{{#titleparts:{{PAGENAME}}|1|2}}|Answer Key]] | ||
+ | |<!--Show a link to any lesson plans --> | ||
+ | [[File:Desk chair icon.svg|25px]][[Adventist Youth Honors Answer Book/{{{category}}}/{{#titleparts:{{PAGENAME}}|1|2}}/Lesson Plans|Lesson Plans]]<br /> | ||
+ | |} | ||
− | |||
[[Category:AY Honors|{{{honorname}}}]] | [[Category:AY Honors|{{{honorname}}}]] | ||
[[Category:AY Honors/Skill Level {{{skill|Unknown}}}|{{{honorname}}}]] | [[Category:AY Honors/Skill Level {{{skill|Unknown}}}|{{{honorname}}}]] | ||
Line 36: | Line 72: | ||
[[Category:AY Honors/{{{authority}}}|{{{honorname}}}]] | [[Category:AY Honors/{{{authority}}}|{{{honorname}}}]] | ||
[[Category:AY Honors/{{{category}}}|{{{honorname}}}]] | [[Category:AY Honors/{{{category}}}|{{{honorname}}}]] | ||
+ | <!-- If the primary parameter points to a different honor as the "primary" one, or if this is the English translation of on honor, this honor is placed in the Secondary category. Otherwise it is placed in the Primary category. --> | ||
{{#if:{{{primary|}}}|[[Category:AY Honors/Secondary|{{{honorname}}}]]| | {{#if:{{{primary|}}}|[[Category:AY Honors/Secondary|{{{honorname}}}]]| | ||
{{#ifeq:{{SUBPAGENAME}}|en|[[Category:AY Honors/Secondary|{{{honorname}}}]] | {{#ifeq:{{SUBPAGENAME}}|en|[[Category:AY Honors/Secondary|{{{honorname}}}]] | ||
Line 41: | Line 78: | ||
}} | }} | ||
}} | }} | ||
− | < | + | {{#if:{{{instructor|}}}|[[Category:Instructor Required]] |
− | [[Adventist Youth Honors Answer Book/{{{category}}}/{{#titleparts:{{PAGENAME}}|1| | + | <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}}} | ||
+ | |||
+ | {{#if:{{{significant_requirement_id|}}} | ||
+ | |==The Challenging Part== | ||
+ | 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 /> | ||
+ | :{{reqreq|page=Adventist Youth Honors Answer Book/{{{category}}}/{{#titleparts:{{PAGENAME}}|1|2}} | ||
+ | |num={{{sigsubreq_id{{#var: i }} }}} | ||
+ | |dispreq={{{sigsubreq_disp{{#var: i }} |}}} | ||
+ | }}{{#vardefine: i| {{#expr: {{#var: i }} + 1 }}}} | ||
+ | }}<!--end while--> | ||
+ | </b> | ||
+ | [[Category:AY Honor/Has Significant Requirement|{{{honorname}}}]] | ||
+ | }}<!--endif #if:significant_requirement_id0 --> | ||
{{#if:{{{primary|}}} | {{#if:{{{primary|}}} | ||
− | |{{See Also|{{#titleparts:{{{primary}}}|1| | + | |{{See Also|{{#titleparts:{{{primary}}}|1|2}}}} |
|{{See Also|{{{honorname}}}}} | |{{See Also|{{{honorname}}}}} | ||
}} | }} | ||
Line 55: | Line 119: | ||
| Outdoor Industries = {{Honor Master|honor={{{honorname}}}|master=Farming}} | | Outdoor Industries = {{Honor Master|honor={{{honorname}}}|master=Farming}} | ||
| Household Arts = {{Honor Master|honor={{{honorname}}}|master=Homemaking}} | | Household Arts = {{Honor Master|honor={{{honorname}}}|master=Homemaking}} | ||
− | + | }} | |
− | + | [[Category:Adventist Youth Honors Answer Book/Honor_overview|{{{honorname}}}]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
</includeonly> | </includeonly> |
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.