Template:Backlog/sandbox
有人話呢個模唔啱留喺維基百科,提刪理由:sandbox。請去刪版請求傾下刪定唔刪。 管理員請注意:即使係吉咗個模,模入面啲文或類都唔會自動即剷。 |
呢一版需要跟手尾,請你幫幫手去處理啲問題。 請執完手尾之後搣咗呢張招紙。 |
呢個係Template:Backlog嘅模沙盤版(差)。 |
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:維基百科手尾, 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:
This category需要跟手尾,請你幫幫手去處理啲問題。 當呢個類底下少過10件嘢,呢塊招紙會自動收埋。 ( ) |
But if the category has less than 10 items then this template will not report the page (not categorise it into Category:維基百科手尾), and will instead render like this:
如果呢個分類有10樣嘢或以上,就屬於手尾. ( ) |
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 ( ) 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, Cat: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
- {{backlog progress bar}} to visually see the backlog
上面嘅解係穿透包含咗自Template:Backlog/doc。 (改 | 史) 編者可以響呢個模嘅沙盤 (改 | 差)同埋試例 (開)版度試驗佢。 請加個類到個/doc嘅細版度。 呢個模嘅細版。 |