Jump to content

Template:WPBannerDoc and Template:WPBannerDoc/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
update listas
 
sync w/tmp
 
Line 1: Line 1:
*{{#if:{{{1|}}}|'''{{{1}}}''' – {{#switch:{{{1}}}
*{{#if:{{{1|}}}|'''{{{1}}}''' – {{#switch:{{{1}}}
|Attention|attention=set {{para|{{{1}}}|yes}} if the article needs immediate attention from experienced editors. Use only if another parameter does not cover the need for attention; this should be used sparingly. It is strongly encouraged to also add a section to the talk page explaining what needs attention.
|Attention|attention=set {{para|{{{1}}}|yes}} if the article needs immediate attention from experienced editors. Use only if another parameter does not cover the need for attention.
**<small>This parameter populates {{cl|{{#if:{{{ATTENTION_CAT|}}}|{{{ATTENTION_CAT}}}|{{{PROJECT|}}} articles needing attention}}}}.</small>{{#if:{{{ATTENTION_CAT|}}}{{{PROJECT|}}}||<span class=error>WPBannerDoc error: either {{para|PROJECT}} or {{para|ATTENTION_CAT}} must be specified with <code>{{{1}}}</code></span>}}
**<small>This parameter populates {{cl|{{#if:{{{ATTENTION_CAT|}}}|{{{ATTENTION_CAT}}}|{{{PROJECT|}}} articles needing attention}}}}.</small>{{#if:{{{ATTENTION_CAT|}}}{{{PROJECT|}}}||<span class=error>WPBannerDoc error: either {{para|PROJECT}} or {{para|ATTENTION_CAT}} must be specified with <code>{{{1}}}</code></span>}}
|auto=This parameter is for the use of [[Wikipedia:Bots|bots]] and indicates that the article has been [[Wikipedia:Types of bots#WikiProject tagging and auto-assessment bots|automatically rated]]:
|auto=This parameter is for the use of [[Wikipedia:Bots|bots]] and indicates that the article has been [[WP:AUTOASSESS|automatically rated]]:
**{{para|auto|length}} – based on the length of the article
**{{para|auto|length}} – based on the length of the article
**{{para|auto|inherit}} – because one or more other projects use this class
**{{para|auto|inherit}} – because one or more other projects use this class
**{{para|auto|yes}} (or {{para|auto|stub}}), in conjunction with {{para|class|stub}} – as Stub-Class because it uses a [[Wikipedia:Stub|stub template]]{{#ifeq:{{{AUTO_ASSESS_CAT|}}}|none||
**{{para|auto|yes}} (or {{para|auto|stub}}), in conjunction with {{para|class|stub}} – as Stub-Class because it uses a [[Wikipedia:Stub|stub template]]
***<small>Use of the above values (or value combinations) with this parameter populates {{cl|{{{AUTO_ASSESS_CAT|Automatically assessed {{{PROJECT|}}} articles}}}}}.</small>{{#if:{{{AUTO_ASSESS_CAT|}}}{{{PROJECT|}}}||<span class=error>WPBannerDoc error: either {{para|PROJECT}} or {{para|AUTO_ASSESS_CAT}} must be specified with <code>{{{1}}}</code></span>}}}}
***<small>Use of the above values (or value combinations) with this parameter populates {{cl|{{{AUTO_ASSESS_CAT|Automatically assessed {{{PROJECT|}}} articles}}}}}.</small>{{#if:{{{AUTO_ASSESS_CAT|}}}{{{PROJECT|}}}||<span class=error>WPBannerDoc error: either {{para|PROJECT}} or {{para|AUTO_ASSESS_CAT}} must be specified with <code>{{{1}}}</code></span>}}
|category=set {{para|category|no}} if, and only if, a banner is being used for demonstration or testing purposes, to prevent unnecessary or undesirable categorization. Otherwise, omit this parameter.
|category=set {{para|category|no}} if, and only if, a banner is being used for demonstration or testing purposes, to prevent unnecessary or undesirable categorization. Otherwise, omit this parameter.
|class|importance|priority={{WPBannerDoc/assessment|{{{1}}}|ASSESSMENT_LINK = {{#switch:{{{ASSESSMENT_LINK|}}}
|class|importance|priority={{WPBannerDoc/assessment|{{{1}}}|ASSESSMENT_LINK = {{#switch:{{{ASSESSMENT_LINK|}}}
Line 21: Line 21:
|no = <!--NULL-->
|no = <!--NULL-->
|#default = {{{ASSESSMENT_LINK}}}
|#default = {{{ASSESSMENT_LINK}}}
}} |bpara={{{bpara|}}} |bmax={{{bmax|}}} }}
}} |bpara={{{bpara|}}} |bmax={{{bmax|}}} |QUALITY_SCALE={{{QUALITY_SCALE|}}} |class_values={{{class_values|}}} |IMPORTANCE_SCALE={{{IMPORTANCE_SCALE|}}} |importance_values={{{importance_values|}}} |BANNER_NAME={{#if:{{{BANNER_NAME|}}}|{{{BANNER_NAME}}}|Template:WikiProject {{{PROJECT}}}}} }}
|listas=This parameter, which is the equivalent of the [[Help:Category#Default sort key|DEFAULTSORT sortkey]] that should be placed on all biographical articles, is a sortkey for the article talk page (e.g. for {{{first}}} {{{last}}}, use {{para|listas|{{ucfirst:{{{last}}}}}, {{{first}}}}} so that the talk page will show up in the {{uc:{{str index|{{{last}}}|1}}}}'s and not the {{str index|{{{first}}}|1}}'s of the various assessment and administrative categories{{#if:{{{last2|}}}|&#59; similarly, for topics with titles beginning with an [[article (grammar)|article]] such as "the" or "a" - e.g. for {{{first2}}} {{{last2}}}, use {{para|listas|{{ucfirst:{{{last2}}}}}, {{{first2}}}}} so that the talk page will show up in the {{uc:{{str index|{{{last2}}}|1}}}}'s}}). This is important because it is one source used by those who set DEFAULTSORT on the article; consider also setting the DEFAULTSORT for the article when setting this parameter. For more information about this, please see {{section link|Wikipedia:Categorization of people|Ordering names in a category}}.<br />If the article is using {{tl|WikiProject banner shell}} then it is preferable to add {{para|listas}} to that template instead of a project banner template. Putting the parameter on more than one template is not required. {{#if:{{{last|}}}||<span class=error>WPBannerDoc error: {{para|last}} must be specified with <code>{{{1}}}</code></span>}} {{#if:{{{first|}}}||<span class=error>WPBannerDoc error: {{para|first}} must be specified with <code>{{{1}}}</code></span>}} {{#if:{{{last2|}}}|{{#if:{{{first2|}}}||<span class=error>WPBannerDoc error: {{para|first2}} must be specified with {{para|last2}}</span>}}|{{#if:{{{first2|}}}|<span class=error>WPBannerDoc error: {{para|last2}} must be specified with {{para|first2}}</span>}} }}
|listas=This parameter, which is the equivalent of the DEFAULTSORT sortkey that should be placed on all biographical articles, is a sortkey for the article talk page (e.g. for {{{first}}} {{{last}}}, use {{para|listas|{{{last}}}, {{{first}}}}} so that the talk page will show up in the {{str index|{{{last}}}|1}}'s and not the {{str index|{{{first}}}|1}}'s of the various assessment and administrative categories{{#if:{{{last2|}}}|&#59; similarly, for topics with titles beginning with an [[article (grammar)|article]] such as "the" or "a" - e.g. for {{{first2}}} {{{last2}}}, use {{para|listas|{{{last2}}}, {{{first2}}}}} so that the talk page will show up in the {{str index|{{{last2}}}|1}}'s}}). This is important because it is one source used by those who set DEFAULTSORT on the article; consider also setting the DEFAULTSORT for the article when setting this parameter. For more information about this, please see [[Wikipedia:Categorization of people#Ordering names in a category]].<br />It is not required if another WikiProject template on the same page has its own {{para|listas}} set. {{#if:{{{last|}}}||<span class=error>WPBannerDoc error: {{para|last}} must be specified with <code>{{{1}}}</code></span>}} {{#if:{{{first|}}}||<span class=error>WPBannerDoc error: {{para|first}} must be specified with <code>{{{1}}}</code></span>}} {{#if:{{{last2|}}}|{{#if:{{{first2|}}}||<span class=error>WPBannerDoc error: {{para|first2}} must be specified with {{para|last2}}</span>}}|{{#if:{{{first2|}}}|<span class=error>WPBannerDoc error: {{para|last2}} must be specified with {{para|first2}}</span>}} }}
|needs-infobox|infobox=set {{para|{{{1}}}|yes}} if the article needs an [[Wikipedia:Manual of Style/Infoboxes|infobox]]. Remember that infoboxes are not suitable for all articles, and can overwhelm short articles.
|needs-infobox|infobox=set {{para|{{{1}}}|yes}} if the article needs an [[Wikipedia:Manual of Style/Infoboxes|infobox]].
**<small>This parameter populates {{cl|{{#if:{{{INFOBOX_CAT|}}}|{{{INFOBOX_CAT}}}|{{{PROJECT}}} articles needing infoboxes}}}}.</small>{{#if:{{{INFOBOX_CAT|}}}{{{PROJECT|}}}||<span class=error>WPBannerDoc error: either {{para|PROJECT}} or {{para|INFOBOX_CAT}} must be specified with <code>{{{1}}}</code></span>}}
**<small>This parameter populates {{cl|{{#if:{{{INFOBOX_CAT|}}}|{{{INFOBOX_CAT}}}|{{{PROJECT}}} articles needing infoboxes}}}}.</small>{{#if:{{{INFOBOX_CAT|}}}{{{PROJECT|}}}||<span class=error>WPBannerDoc error: either {{para|PROJECT}} or {{para|INFOBOX_CAT}} must be specified with <code>{{{1}}}</code></span>}}
|small=set {{para|small|yes}} to display a small version of the template aligned along the right side of the page (as opposed to at the top). This parameter does not work as expected if the banner template is enclosed in {{tlx|WikiProjectBannerShell}} or {{tlx|WikiProjectBanners}}.
|small=this parameter is no longer supported and can safely be removed from the template.
|#default=<span class=error>WPBannerDoc error: first parameter unrecognised</span>
|#default=<span class=error>WPBannerDoc error: first parameter unrecognised</span>
}}|<span class=error>WPBannerDoc error: required first parameter missing</span>}}<noinclude>
}}|<span class=error>WPBannerDoc error: required first parameter missing</span>}}<noinclude>
{{Documentation}}
{{Documentation}}
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
</noinclude>
</noinclude>