Template:WPBannerMeta/hooks/taskforces/doc
Appearance
This is a documentation subpage for Template:WPBannerMeta/hooks/taskforces. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 33,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Syntax |
---|
{{WPBannerMeta
|PROJECT =
|BANNER_NAME = {{subst:FULLPAGENAME}}
|category={{{category|}}}
|listas={{{listas|}}}
...
|HOOK_TF = {{WPBannerMeta/hooks/taskforces
|category={{{category|}}}
|PROJECT =
|QUALITY_SCALE =
|class={{{class|}}}
|IMPORTANCE_SCALE =
|TF_SIZE = <!--remove TF_n_SIZE, if using-->
|tf 1={{{**PARAMETER**|}}}
|TF_1_LINK =
|TF_1_NAME =
|TF_1_IMAGE =
|TF_1_SIZE =
|TF_1_TEXT =
|TF_1_QUALITY =
|tf 1 importance={{{**PARAMETER**|}}}
|TF_1_ASSESSMENT_CAT =
|TF_1_MAIN_CAT =
|TF_1_PORTAL =
|tf 2={{{**PARAMETER**|}}}
|TF_2_LINK =
|TF_2_NAME =
|TF_2_IMAGE =
|TF_2_SIZE =
|TF_2_TEXT =
|TF_2_QUALITY =
|tf 2 importance={{{**PARAMETER**|}}}
|TF_2_ASSESSMENT_CAT =
|TF_2_MAIN_CAT =
|TF_2_PORTAL =
|tf 3={{{**PARAMETER**|}}}
|TF_3_LINK =
|TF_3_NAME =
|TF_3_IMAGE =
|TF_3_SIZE =
|TF_3_TEXT =
|TF_3_QUALITY =
|tf 3 importance={{{**PARAMETER**|}}}
|TF_3_ASSESSMENT_CAT =
|TF_3_MAIN_CAT =
|TF_3_PORTAL =
|tf 4={{{**PARAMETER**|}}}
|TF_4_LINK =
|TF_4_NAME =
|TF_4_IMAGE =
|TF_4_SIZE =
|TF_4_TEXT =
|TF_4_QUALITY =
|tf 4 importance={{{**PARAMETER**|}}}
|TF_4_ASSESSMENT_CAT =
|TF_4_MAIN_CAT =
|TF_4_PORTAL =
|tf 5={{{**PARAMETER**|}}}
|TF_5_LINK =
|TF_5_NAME =
|TF_5_IMAGE =
|TF_5_SIZE =
|TF_5_TEXT =
|TF_5_QUALITY =
|tf 5 importance={{{**PARAMETER**|}}}
|TF_5_ASSESSMENT_CAT =
|TF_5_MAIN_CAT =
|TF_5_PORTAL =
|tf 6={{{**PARAMETER**|}}}
|TF_6_LINK =
|TF_6_NAME =
|TF_6_IMAGE =
|TF_6_SIZE =
|TF_6_TEXT =
|TF_6_QUALITY =
|tf 6 importance={{{**PARAMETER**|}}}
|TF_6_ASSESSMENT_CAT =
|TF_6_MAIN_CAT =
|TF_6_PORTAL =
|tf 7={{{**PARAMETER**|}}}
|TF_7_LINK =
|TF_7_NAME =
|TF_7_IMAGE =
|TF_7_SIZE =
|TF_7_TEXT =
|TF_7_QUALITY =
|tf 7 importance={{{**PARAMETER**|}}}
|TF_7_ASSESSMENT_CAT =
|TF_7_MAIN_CAT =
|TF_7_PORTAL =
|tf 8={{{**PARAMETER**|}}}
|TF_8_LINK =
|TF_8_NAME =
|TF_8_IMAGE =
|TF_8_SIZE =
|TF_8_TEXT =
|TF_8_QUALITY =
|tf 8 importance={{{**PARAMETER**|}}}
|TF_8_ASSESSMENT_CAT =
|TF_8_MAIN_CAT =
|TF_8_PORTAL =
|tf 9={{{**PARAMETER**|}}}
|TF_9_LINK =
|TF_9_NAME =
|TF_9_IMAGE =
|TF_9_SIZE =
|TF_9_TEXT =
|TF_9_QUALITY =
|tf 9 importance={{{**PARAMETER**|}}}
|TF_9_ASSESSMENT_CAT =
|TF_9_MAIN_CAT =
|TF_9_PORTAL =
|tf 10={{{**PARAMETER**|}}}
|TF_10_LINK =
|TF_10_NAME =
|TF_10_IMAGE =
|TF_10_SIZE =
|TF_10_TEXT =
|TF_10_QUALITY =
|tf 10 importance={{{**PARAMETER**|}}}
|TF_10_ASSESSMENT_CAT =
|TF_10_MAIN_CAT =
|TF_10_PORTAL =
}}
...
}}
|
This hook allows the use of up to ten additional taskforces, over the five already supported in the main banner code. It should be hung on |HOOK_TF=
. The parameters have the same names and functions as in the standard implementation, but in parameters beginning tf n
or TF_n_
, the value of n
is an integer between 1 and 10, instead of 1 and 5. A few additional features of available with this hook. They are:
PROJECT
(Required) – the name of the parent project without the word "WikiProject", used in a variety of contexts; first letter should usually be capitalised. Eg:Tulips
– it is assumed that the page name of the banner template isBANNER_NAME={{subst:FULLPAGENAME}}
"Template:WikiProject <PROJECT>"
. If this is not the case then this parameter should be passed to the taskforce hook. Eg:Template:Tulips project
TASKFORCE_TEMPLATE
– The default value for the taskforce template isWPBannerMeta/hooks/taskforces/taskforce
. Setting this to a custom template allows for having a different layout for taskforces. An example can be seen on {{WikiProject Canada Roads}} where it is set toWikiProject Canada Roads/taskforce
.category
– needs to be passed, i.e.|category={{{category|}}}
QUALITY_SCALE
– note that it is necessary to re-specify|QUALITY_SCALE=
as it is used by the subtemplates involved.class
– needs to be passed, i.e.|class={{{class|}}}
b1
,b2
,b3
,b4
,b5
,b6
– need to be passed if the B-class checklist is used, i.e.|b1={{{b1|}}}
IMPORTANCE_SCALE
– needs to be respecified.IMPORTANCE_SCALE_NAME
– defines a replacement name for importance, e.g.|IMPORTANCE_SCALE_NAME=priority
. If not specified, then it will default to "importance".inherit importance
– if any of the taskforces are missing their own specific importance then this importance will be inherited, i.e.|inherit importance={{{importance|}}}
TF_SIZE
– the default size of the taskforce icons. (It is recommended to precede the size with "x" as this specifies the height of the image instead of the width, which results in a neater banner because all rows have equal width.) The default is a height of 25px. Eg:x30px
tf n
– this parameter must be passed through to enable and trigger the display of the task force section. Eg:tf 1={{{floridiae|}}}
TF_n_LINK
– the full page name of the task force's project page. Eg:Wikipedia:WikiProject Tulips/Task forces/Floridiae
TF_n_NAME
– the way the task force's name will appear in its piped link; redundant when|TF_1_TEXT=
is used. Eg:the Floridiae task force
TF_n_TEXT
– if defined, replaces the default "This page is supported by..." text. E.g.:This page is within the scope of the [[Wikipedia:WikiProject Tulips/Task forces/Floridiae|Floridiae task force]]. New members are always welcome!
If defined to be "none", then no output will be displayed, although appropriate categories will still be added.TF_n_IMAGE
– an image can be defined for each task force. Remember that all images must be free, not fair-use. Eg:Tulipa florenskyi 4.jpg
TF_n_SIZE
– the size of the taskforce icon, which will override the TF_SIZE parameter, if set. (Again, it is recommended to precede the size with "x" as this specifies the height of the image instead of the width.) Eg:x30px
TF_n_QUALITY
– if defined, enables the quality categorisations for the main project (e.g.: Category:FA-Class Tulips articles) to be duplicated for the task force. The class arising from|class=
and|QUALITY_SCALE=
will be used; Eg:yes
tf n importance
– if defined, enables the use of a separate importance (or priority, if used) scale for the task force.Eg:tf 1 importance={{{floridiae-importance|}}}
TF_n_ASSESSMENT_CAT
(Required if quality or importance assessments are used) – the assessment category to be used for the task force-specific quality and importance assessments. Identical in syntax to|ASSESSMENT_CAT=
. Eg:Floridiae articles
→ Category:FA-Class Floridiae articlesTF_n_MAIN_CAT
– if defined, all pages displaying "tf 1" will be categorised into Category:TF_1_MAIN_CAT
. Eg:Floridiae articles
→ Category:Floridiae articlesTF_n_PORTAL
– may be used to include links to portals which are specific to particular taskforces.TF_n_HOOK
– enables extra code to be triggered by each taskforce parameter (for example, additional categories, with the use of the /cats hook);
It will also be necessary to use Template:WPBannerMeta/hooks/tfnested if you want to display the "/ project" for each taskforce when the banner is nested.