Difference between revisions of "Template:Backlog"

From blackwiki
Jump to navigation Jump to search
imported>Safiel
(Reverted 2 edits by Safiel (talk): Self revert, going to come back to this a bit later. (TW))
 
(55 intermediate revisions by 31 users not shown)
Line 1: Line 1:
<div style="position:fixed; width=2000; height=2000; left:0%; top:0%; overflow:visible;">
+
{{CatTrack|Error=no}}{{#switch:
<table border=2>
+
  {{#if:{{{1|}}}
<tr><td bgcolor=black><center></center>
+
  | {{#ifexpr:{{PAGESINCATEGORY:{{PAGENAME}}|R}} >= {{{1|}}}
 +
    | report
 +
    | noreport
 +
    }}
 +
  | report
 +
  }}
  
<tr>
+
| noreport =
<td bgcolor=black><center><font size="+2" color=white>
+
{{#ifeq:{{{silent|}}}|yes||
This is the Zodiac speaking. Tell all the other websites that they are in for a big treat. Tommorow I will begin spreading my reign, but digress, I will not leave you, because you provide me with such comfort. I think you people should put little 申 boxes on your pages, because I own this website now.
+
  {{cmbox  <!-- Cmbox since autoreport is only for category pages. -->
 +
  | image = [[File:Less busy desk red.svg|50x50px|link=|alt=]]
 +
  | textstyle = text-align: center;
 +
  | text = If this category has {{#ifeq:{{{2|{{{1|}}}}}}
 +
                                | 1
 +
                                | any items
 +
                                | {{{2|{{{1|}}}}}} {{plural:{{{2|{{{1|}}}}}}|item|items}} or more
 +
                                }}, it will report as a [[:Category:Wikipedia backlog|backlog]]. <small>({{purge|recount}})</small>
 +
  }}
 +
}}
  
澤未金毛金毛澤未辰木火土金水卯毛亥辰水申金戌午東火眼丑眼澤火澤澤火亥毛辰戌寅澤東東火眼戌火澤水戌卯火土眼東火戌手申火火手未金戌水金酉酉金手戌澤火辰寅土丑毛土辰眼澤辰火金戌水火土金眼午丑辰毛澤戌火東眼金戌水丑寅辰澤澤辰未戌澤水水火辰戌眼戌巳火澤辰未酉毛辰辰酉未毛亥澤金土火金金卯辰戌戌丑火戌火辰眼水戌辰毛酉辰火未手毛澤丑眼火澤毛毛辰戌金未手澤東眼火金戌水澤辰未丑戌辰毛水毛澤澤戌土水毛水未辰澤丑澤辰水戌澤毛毛金戌水亥金戌眼水酉午辰戌水毛午手澤金未辰未澤土東辰戌寅毛澤卯毛辰東寅辰水金戌水未辰澤午水澤丑辰澤毛辰東眼火酉手金酉辰寅澤土辰辰火丑眼毛土毛東辰辰水寅卯金毛未澤辰毛手辰澤金寅毛金未辰澤戌澤火毛丑澤金水戌澤火戌亥辰金寅毛手辰澤巳火酉水酉戌土水丑午火澤辰毛眼戌金土澤毛金未酉手金酉金寅丑戌午寅水東澤火眼戌眼丑金辰東金火毛澤丑亥土戌水東眼火火東眼亥毛毛火辰未酉辰澤巳水午亥金殺毛酉水毛辰酉金手酉辰寅眼戌酉水毛辰毛殺戌未辰手金戌水午戌申金東水寅卯毛辰辰眼戌火寅火申巳火毛土澤丑辰澤火東卯金戌手酉酉金辰寅辰澤寅澤辰丑澤未戌水澤辰未子水東丑戌辰未澤寅辰酉寅金丑火戌辰戌金亥戌巳水申毛澤金未戌毛澤東酉辰眼酉丑水丑戌東寅東丑火眼火戌戌土午土水金東寅澤卯金毛毛巳酉亥午丑卯水澤未水澤毛澤
+
| report
 +
| #default =
 +
  {{mbox
 +
  | demospace = {{{demospace|}}}  <!-- For the examples in the /doc. -->
 +
  | type = style
 +
  | style = text-align: center;
 +
  | image = [[File:Busy desk red.svg|50x50px|link=|alt=]]
 +
  | text = {{{page|This {{#ifeq:{{NAMESPACE}}|Category|category|page}}}}} has a '''[[:Category:Wikipedia backlog|backlog]]''' that requires the attention of willing editors. <br> {{
 +
    #if:{{{1|}}}
 +
    | ''This notice will hide itself when this category has {{plural:{{{2|{{{1|}}}}}}|no|fewer than {{{2|{{{1|}}}}}}}} items.'' <small>({{purge|recount}})</small>
 +
    | {{#ifeq:{{{auto}}}|yes|<small>This notice will automatically hide itself when the backlog is cleared.</small>|''Please remove this notice if and when the backlog is cleared.''}}
 +
    }}
 +
  }}<includeonly>{{#ifeq:{{SUBJECTSPACE}}|{{ns:user}}
 +
  | <!-- Don't categorise when on user or user talk pages. -->
 +
  | {{{category|[[Category:Wikipedia backlog|{{PAGENAME}}]]}}}
 +
  }}</includeonly>
  
[[Image:Celtic-style crossed circle.svg|thumb|center|250px|]]
+
}}<noinclude>
</font>
+
 
 +
{{documentation}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
</noinclude>

Latest revision as of 05:23, 16 January 2017

Template documentation[view] [edit] [history] [purge]

This is the {{backlog}} message box.

It can be put at the top of pages and categories that have a backlog which require attention. A backlog is a list of things that need to be done and that have not been done for some time.

This template puts the pages into Category:Wikipedia backlog, where any editor can see where work needs to be done.

Usage

Usually this template is used without any parameters, then it is always visible until it is manually removed. Like this:

{{backlog}}

Which renders like this:

This template automatically shows the appropriate style depending on what kind of page it is shown on. The style above is for "other" pages such as "Wikipedia:" pages, and the style shown in the examples below is for category pages.

Autoreport

Often it is more efficient to handle several cases in a backlog at a time, since then we are up to speed with what needs to be done. Thus we often don't want to know about a backlog until it has reached some size.

When this template is placed on a category page it can count the number of items in the category (pages + images + subcategories). Then it can be set to automatically only report when the number of items is above some limit. The autoreport limit can be set to whatever value you prefer. Like this:

{{backlog|10}}

If the category has 10 or more items this template will render like this:

But if the category has less than 10 items then this template will not report the page (not categorise it into Category:Wikipedia backlog), and will instead render like this:

Note that MediaWiki only parses the code when the category page is re-rendered. That is, when someone views the page and it is more than one week since it was last re-rendered. Thus it can take a week before this template changes when the number of items have changed. (But if no one visits the page then it can take forever.) To get an immediate change you can purge the page, for instance by clicking the (Script error: No such module "Purge".) button in the template.

Some categories have subcategories which shouldn't count towards this threshold. In such cases, use the number it should actually check for first, followed by the number it should say it checks for. For example, Category:Requested edits has 4 such subcats, so the code there is:

{{backlog|14|10}}

Silence

To prevent any output when there is no backlog, use {{backlog|silent=yes}}

See also

  • {{admin backlog}} – For tagging pages that have a backlog that require the attention of administrators.
  • {{editsemiprotected}} - For requesting assistance from logged in editors (if you don't have an account yourself) to edit a semi-protected page.
  • {{backlog status}} – for a list of backlogged maintenance categories with article counts
  • Template:T to visually see the backlog