Template:BPBannerMeta/templatepage: Difference between revisions

From Bharatpedia, an open encyclopedia
m (clean up, replaced: Wikipedia: → Bharatpedia: (2))
m (→‎top: clean up, replaced: WP: → BP: (2), WT: → BT:)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{lc:{{SUBPAGENAME}}}}|sandbox|{{Template sandbox notice}}}}<includeonly>{{WPBannerMeta/core
{{#ifeq:{{lc:{{SUBPAGENAME}}}}|sandbox|{{Template sandbox notice}}}}<includeonly>{{BPBannerMeta/core
|PROJECT            = {{{PROJECT}}}
|PROJECT            = {{{PROJECT}}}
  |BANNER_NAME        = {{{BANNER_NAME|}}}
  |BANNER_NAME        = {{{BANNER_NAME|}}}
Line 12: Line 12:
  |{{#ifeq:{{{QUALITY_SCALE}}}|inline
  |{{#ifeq:{{{QUALITY_SCALE}}}|inline
   |{{{class|}}}
   |{{{class|}}}
   |{{WPBannerMeta/class
   |{{BPBannerMeta/class
   |BANNER_NAME={{{BANNER_NAME|}}}
   |BANNER_NAME={{{BANNER_NAME|}}}
   |class=C
   |class=C
Line 118: Line 118:
|type=notice
|type=notice
|image=[[File:Icon tools.svg|50px]]
|image=[[File:Icon tools.svg|50px]]
|text=This [[:Category:WikiProject banner templates|WikiProject banner]] uses {{tlx|WPBannerMeta}}, a meta-template for easily creating and maintaining banners and talk-page notices. Please report any such errors or feature requests to [[Template talk:WPBannerMeta]]. Any information or warnings about the template are below:{{#ifexpr:{{#ifexist:{{{BANNER_NAME|}}}/class|{{PAGESIZE:{{{BANNER_NAME|}}}/class|R}}|0}}
|text=This [[:Category:WikiProject banner templates|WikiProject banner]] uses {{tlx|BPBannerMeta}}, a meta-template for easily creating and maintaining banners and talk-page notices. Please report any such errors or feature requests to [[Template talk:BPBannerMeta]]. Any information or warnings about the template are below:{{#ifexpr:{{#ifexist:{{{BANNER_NAME|}}}/class|{{PAGESIZE:{{{BANNER_NAME|}}}/class|R}}|0}}
  |<br/>
  |<br/>
{{#ifeq:{{{QUALITY_SCALE}}}|subpage
{{#ifeq:{{{QUALITY_SCALE}}}|subpage
Line 147: Line 147:
   |{{#if:{{{ASSESSMENT_LINK|}}}
   |{{#if:{{{ASSESSMENT_LINK|}}}
   |<br/>
   |<br/>
*This project banner does not specify an assessment page but is using, by default, the page [[{{{ASSESSMENT_LINK}}}]]. Please check [[Template:WPBannerMeta/Assessment link|here]] for more information and consider [{{fullurl:{{{BANNER_NAME}}}|action=edit&summary={{urlencode:Setting ASSESSMENT_LINK parameter}}}} adding] the ''ASSESSMENT_LINK'' parameter to the template.
*This project banner does not specify an assessment page but is using, by default, the page [[{{{ASSESSMENT_LINK}}}]]. Please check [[Template:BPBannerMeta/Assessment link|here]] for more information and consider [{{fullurl:{{{BANNER_NAME}}}|action=edit&summary={{urlencode:Setting ASSESSMENT_LINK parameter}}}} adding] the ''ASSESSMENT_LINK'' parameter to the template.
   }}
   }}
  }}
  }}
Line 161: Line 161:
   |{{#iferror:{{#expr:0+{{{RAW_HOOK_COLLAPSED|¬}}}*1}}
   |{{#iferror:{{#expr:0+{{{RAW_HOOK_COLLAPSED|¬}}}*1}}
   |<br/>
   |<br/>
*A hook is attached to the HOOK_NOTE parameter but no valid counter has been attached to HOOK_COLLAPSED. If the hook can output more than one row, you may like to add the [[Template:WPBannerMeta/hooks/notecounter|notecounter hook]] to ensure consistent collapsing behaviour.[[Category:WikiProject banners with formatting errors|Hook collapsed]]
*A hook is attached to the HOOK_NOTE parameter but no valid counter has been attached to HOOK_COLLAPSED. If the hook can output more than one row, you may like to add the [[Template:BPBannerMeta/hooks/notecounter|notecounter hook]] to ensure consistent collapsing behaviour.[[Category:WikiProject banners with formatting errors|Hook collapsed]]
   |
   |
   }}
   }}
Line 167: Line 167:
}}{{#ifeq:{{{substcheck|}}}|¬
}}{{#ifeq:{{{substcheck|}}}|¬
  |<br/>
  |<br/>
*A feature for detecting incorrectly [[Bharatpedia:Template substitution|substituted]] project banners has not yet been implemented on this template. Please see the [[Template:WPBannerMeta/doc#Simple options|documentation]] for how to set the ''substcheck'' parameter.<includeonly>[[Category:WikiProject banners with formatting errors|Check]]</includeonly>
*A feature for detecting incorrectly [[Bharatpedia:Template substitution|substituted]] project banners has not yet been implemented on this template. Please see the [[Template:BPBannerMeta/doc#Simple options|documentation]] for how to set the ''substcheck'' parameter.<includeonly>[[Category:WikiProject banners with formatting errors|Check]]</includeonly>
}}{{#if:{{{PORTAL|}}}
}}{{#if:{{{PORTAL|}}}
  |<br/>
  |<br/>
Line 188: Line 188:
*The required PROJECT parameter has not been defined.[[Category:WikiProject banners with formatting errors|Missing PROJECT parameter]]
*The required PROJECT parameter has not been defined.[[Category:WikiProject banners with formatting errors|Missing PROJECT parameter]]
}}
}}
*When merging or renaming banners, categories, projects or taskforces, you may need to update [[WP:AALERTS/LIST]] for [[WP:AALERTS|Article Alerts]] to work correctly (ask for help at [[WT:AALERTS]]).{{#ifeq:{{{small|¬}}}|¬||<br>
*When merging or renaming banners, categories, projects or taskforces, you may need to update [[BP:AALERTS/LIST]] for [[BP:AALERTS|Article Alerts]] to work correctly (ask for help at [[BT:AALERTS]]).{{#ifeq:{{{small|¬}}}|¬||<br>
*This template is passing the {{para|small}} parameter which is now obsolete. Please remove this parameter and update template documentation accordingly.
*This template is passing the {{para|small}} parameter which is now obsolete. Please remove this parameter and update template documentation accordingly.
}}
}}
Line 194: Line 194:




-->{{WPBannerMeta/templatepage/checkcat
-->{{BPBannerMeta/templatepage/checkcat
  |PROJECT={{{PROJECT}}}
  |PROJECT={{{PROJECT}}}
  |ASSESSMENT_CAT={{{ASSESSMENT_CAT}}}
  |ASSESSMENT_CAT={{{ASSESSMENT_CAT}}}
Line 207: Line 207:
  |IMPN={{{IMPN}}}
  |IMPN={{{IMPN}}}
}}{{#ifeq:{{{tf 1}}}|¬|
}}{{#ifeq:{{{tf 1}}}|¬|
  |{{WPBannerMeta/templatepage/checkcat
  |{{BPBannerMeta/templatepage/checkcat
   |PROJECT={{{PROJECT}}}
   |PROJECT={{{PROJECT}}}
   |NAME={{{TF_1_NAME|}}}
   |NAME={{{TF_1_NAME|}}}
Line 223: Line 223:
  }}
  }}
}}{{#ifeq:{{{tf 2}}}|¬|
}}{{#ifeq:{{{tf 2}}}|¬|
  |{{WPBannerMeta/templatepage/checkcat
  |{{BPBannerMeta/templatepage/checkcat
   |PROJECT={{{PROJECT}}}
   |PROJECT={{{PROJECT}}}
   |NAME={{{TF_2_NAME|}}}
   |NAME={{{TF_2_NAME|}}}
Line 239: Line 239:
  }}
  }}
}}{{#ifeq:{{{tf 3}}}|¬|
}}{{#ifeq:{{{tf 3}}}|¬|
  |{{WPBannerMeta/templatepage/checkcat
  |{{BPBannerMeta/templatepage/checkcat
   |PROJECT={{{PROJECT}}}
   |PROJECT={{{PROJECT}}}
   |NAME={{{TF_3_NAME|}}}
   |NAME={{{TF_3_NAME|}}}
Line 255: Line 255:
  }}
  }}
}}{{#ifeq:{{{tf 4}}}|¬|
}}{{#ifeq:{{{tf 4}}}|¬|
  |{{WPBannerMeta/templatepage/checkcat
  |{{BPBannerMeta/templatepage/checkcat
   |PROJECT={{{PROJECT}}}
   |PROJECT={{{PROJECT}}}
   |NAME={{{TF_4_NAME|}}}
   |NAME={{{TF_4_NAME|}}}
Line 271: Line 271:
  }}
  }}
}}{{#ifeq:{{{tf 5}}}|¬|
}}{{#ifeq:{{{tf 5}}}|¬|
  |{{WPBannerMeta/templatepage/checkcat
  |{{BPBannerMeta/templatepage/checkcat
   |PROJECT={{{PROJECT}}}
   |PROJECT={{{PROJECT}}}
   |NAME={{{TF_5_NAME|}}}
   |NAME={{{TF_5_NAME|}}}
Line 306: Line 306:
   |type=content
   |type=content
   |image=[[File:Nuvola apps kfig.svg|50px]]
   |image=[[File:Nuvola apps kfig.svg|50px]]
   |text=The following categories are required for the banner to work correctly. Please either create these categories or adjust the banner so that they are not required.{{#ifexpr:{{#ifeq:{{lc:{{SUBPAGENAME}}}}|sandbox|1|0}}+{{#ifeq:{{NAMESPACE}}|{{ns:2}}|1|0}}+{{#ifeq:{{BASEPAGENAME}}|WPBannerMeta|1|0}}|<!--Don't categorise sandboxes-->|[[Category:WikiProject banners with formatting errors|Z{{{PROJECT}}}]]}}
   |text=The following categories are required for the banner to work correctly. Please either create these categories or adjust the banner so that they are not required.{{#ifexpr:{{#ifeq:{{lc:{{SUBPAGENAME}}}}|sandbox|1|0}}+{{#ifeq:{{NAMESPACE}}|{{ns:2}}|1|0}}+{{#ifeq:{{BASEPAGENAME}}|BPBannerMeta|1|0}}|<!--Don't categorise sandboxes-->|[[Category:WikiProject banners with formatting errors|Z{{{PROJECT}}}]]}}
{{#ifeq:{{{attention}}}|¬||{{WPBannerMeta/templatepage/catother|CAT={{{ATTENTION_CAT}}}|PROJECT={{{PROJECT|}}}}}
{{#ifeq:{{{attention}}}|¬||{{BPBannerMeta/templatepage/catother|CAT={{{ATTENTION_CAT}}}|PROJECT={{{PROJECT|}}}}}
}}{{#ifeq:{{{infobox}}}|¬||{{WPBannerMeta/templatepage/catother|CAT={{{INFOBOX_CAT}}}|PROJECT={{{PROJECT|}}}}}
}}{{#ifeq:{{{infobox}}}|¬||{{BPBannerMeta/templatepage/catother|CAT={{{INFOBOX_CAT}}}|PROJECT={{{PROJECT|}}}}}
}}{{#ifeq:{{{auto}}}|¬||{{WPBannerMeta/templatepage/catother|CAT={{{AUTO_ASSESS_CAT}}}|PROJECT={{{PROJECT|}}}}}
}}{{#ifeq:{{{auto}}}|¬||{{BPBannerMeta/templatepage/catother|CAT={{{AUTO_ASSESS_CAT}}}|PROJECT={{{PROJECT|}}}}}
}}{{WPBannerMeta/templatepage/catother|CAT={{{N_1_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{BPBannerMeta/templatepage/catother|CAT={{{N_1_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{WPBannerMeta/templatepage/catother|CAT={{{N_2_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{BPBannerMeta/templatepage/catother|CAT={{{N_2_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{WPBannerMeta/templatepage/catother|CAT={{{N_3_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{BPBannerMeta/templatepage/catother|CAT={{{N_3_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{WPBannerMeta/templatepage/catother|CAT={{{N_4_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{BPBannerMeta/templatepage/catother|CAT={{{N_4_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{WPBannerMeta/templatepage/catother|CAT={{{N_5_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{BPBannerMeta/templatepage/catother|CAT={{{N_5_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{WPBannerMeta/templatepage/catother|CAT={{{TF_1_MAIN_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{BPBannerMeta/templatepage/catother|CAT={{{TF_1_MAIN_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{WPBannerMeta/templatepage/catother|CAT={{{TF_2_MAIN_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{BPBannerMeta/templatepage/catother|CAT={{{TF_2_MAIN_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{WPBannerMeta/templatepage/catother|CAT={{{TF_3_MAIN_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{BPBannerMeta/templatepage/catother|CAT={{{TF_3_MAIN_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{WPBannerMeta/templatepage/catother|CAT={{{TF_4_MAIN_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{BPBannerMeta/templatepage/catother|CAT={{{TF_4_MAIN_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{WPBannerMeta/templatepage/catother|CAT={{{TF_5_MAIN_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{BPBannerMeta/templatepage/catother|CAT={{{TF_5_MAIN_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{WPBannerMeta/templatepage/catother|CAT={{{MAIN_CAT|}}}|PROJECT={{{PROJECT|}}}
}}{{BPBannerMeta/templatepage/catother|CAT={{{MAIN_CAT|}}}|PROJECT={{{PROJECT|}}}
}}
}}
}}
}}
Line 461: Line 461:
}}<nowiki>}}</nowiki></code>
}}<nowiki>}}</nowiki></code>
produces
produces
{{WPBannerMeta/core
{{BPBannerMeta/core
|PROJECT            = {{{PROJECT}}}
|PROJECT            = {{{PROJECT}}}
  |BANNER_NAME        = {{{BANNER_NAME|}}}
  |BANNER_NAME        = {{{BANNER_NAME|}}}
Line 474: Line 474:
  |{{#ifeq:{{{QUALITY_SCALE}}}|inline
  |{{#ifeq:{{{QUALITY_SCALE}}}|inline
   |GA
   |GA
   |{{WPBannerMeta/class|BANNER_NAME={{{BANNER_NAME|}}}|class=GA|QUALITY_SCALE={{{QUALITY_SCALE|}}}}}
   |{{BPBannerMeta/class|BANNER_NAME={{{BANNER_NAME|}}}|class=GA|QUALITY_SCALE={{{QUALITY_SCALE|}}}}}
  }}
  }}
}}
}}
Line 510: Line 510:
}}<nowiki>}}</nowiki></code>
}}<nowiki>}}</nowiki></code>
produces
produces
{{WPBannerMeta/core
{{BPBannerMeta/core
|PROJECT            = {{{PROJECT}}}
|PROJECT            = {{{PROJECT}}}
  |BANNER_NAME        = {{{BANNER_NAME|}}}
  |BANNER_NAME        = {{{BANNER_NAME|}}}
Line 523: Line 523:
  |{{#ifeq:{{{QUALITY_SCALE}}}|inline
  |{{#ifeq:{{{QUALITY_SCALE}}}|inline
   |Stub
   |Stub
   |{{WPBannerMeta/class|BANNER_NAME={{{BANNER_NAME|}}}|class=Stub|QUALITY_SCALE={{{QUALITY_SCALE|}}}}}
   |{{BPBannerMeta/class|BANNER_NAME={{{BANNER_NAME|}}}|class=Stub|QUALITY_SCALE={{{QUALITY_SCALE|}}}}}
  }}
  }}
}}
}}
Line 550: Line 550:
   }}
   }}
   }}
   }}
   |link box=This documentation is automatically generated by [[Template:WPBannerMeta/templatepage]]{{#ifeq:{{lc:{{{DOC}}}}}|auto+custom
   |link box=This documentation is automatically generated by [[Template:BPBannerMeta/templatepage]]{{#ifeq:{{lc:{{{DOC}}}}}|auto+custom
   |{{Ifexist not redirect|{{Documentation/docname}}|&#32;with additional content and categories from {{pagelinks|{{Documentation/docname}}}}}}
   |{{Ifexist not redirect|{{Documentation/docname}}|&#32;with additional content and categories from {{pagelinks|{{Documentation/docname}}}}}}
   }}.
   }}.
Line 556: Line 556:
  |custom={{Documentation}}
  |custom={{Documentation}}
}}<includeonly>[[Category:Exclude in print]]</includeonly><noinclude>
}}<includeonly>[[Category:Exclude in print]]</includeonly><noinclude>
{{WPBannerMeta/subtemplatedoc|high-use=no}}
{{BPBannerMeta/subtemplatedoc|high-use=no}}
</noinclude>
</noinclude>

Latest revision as of 09:55, 28 February 2022