Difference between revisions of "Template:Honor prerequisite"
DesignerThan (talk | contribs) |
DesignerThan (talk | contribs) |
||
Line 13: | Line 13: | ||
Example: | Example: | ||
− | + | linkonly = true | |
{{honor_prerequisite|honor=Braiding|linkonly=true}} | {{honor_prerequisite|honor=Braiding|linkonly=true}} | ||
+ | linkonly not named | ||
{{honor_prerequisite|honor=Braiding}} | {{honor_prerequisite|honor=Braiding}} | ||
</noinclude> | </noinclude> |
Revision as of 16:31, 24 June 2021
This template will add a link to an honor that is a prerequisite along with some localized text to make it serve as an "answer" to a requirement that says "Earn the {{{honor}}} honor".
It will also add the invoking page to one of {{{honor}}}'s prerequisite categories. If the template is invoked from an Honor page (which it determines by comparing the first element of the invoking page's title to "AY Honors"), it adds it the category "AY Honor/Prerequisite{{{honor}}}{{GetLangSuffix}}" as well as to the category "AY Honors/See Also/{{{honor}}}{{GetLangSuffix}}. Else it looks to see if the first element of the page title is "Investiture Achievement", and if it is, it adds itself to the category "AY Honor/Prerequisite IA/{{{honor}}}{{GetLangSuffix}}". The "AY Honors/See Also/honor" category is used for adding honors to the "See Also" section of the infobox.
Note that in both cases, it uses the GetLangSuffix template to add it to the language's category.
linkonly not named For tips and instruction see
.