模板:Portal maintenance status/doc
![本頁使用了標題或全文手工轉換](http://upload.wikimedia.org/wikipedia/commons/thumb/c/cd/Zh_conversion_icon_m.svg/35px-Zh_conversion_icon_m.svg.png)
![]() | 此頁面是Template:Portal maintenance status的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
![]() | 除非編者指定,本模板在主題頁面不輸出顯示內容。 |
![]() | 此模板會自動將主題加入Category:所有主題首頁,請不要手動加入分類。 |
![]() | 此模板使用Lua語言: |
![]() | 此模板已評為beta版,可進行廣泛使用。因其新近完成,請謹慎使用,以確保輸出結果符合預期。 |
{{portal maintenance status}}
提供主題首頁維護狀態,應置於主題首頁或其討論頁頂部。
用法
[編輯]{{Portal maintenance status |{{subst:DATE}} |maintainer1= |maintainer2= |maintainer3= |maintainer4= |manual= |upgrade= |notes= |update= |broken= |nonstandard= |incomplete= |subpages=
}}
{{Portal maintenance status
|{{subst:DATE}}
|maintainer1=
|maintainer2=
|maintainer3=
|maintainer4=
|manual=
|upgrade=
|notes=
|update=
|broken=
|nonstandard=
|incomplete=
|subpages=
}}
可選參數
[編輯]The following parameters should be populated, where possible:
|date=
Date of last template update|maintainer[1-4]=Example
: Used to specify users who look after the portal in question.|subpages=
Subpage triage status- Set to
untriaged
oryes
(or leave unset) if the subpages have not yet been checked. - Once a portal's subpages have been checked, set to:
checked
ortriaged
orkeep
(or any other value): if any unneeded subpages have been removed.none
orsingle
orsinglepage
orno
: if the portal has a single page layout (no subpages exist).
- Set to
This template can also hold miscellaneous notes:
|notes=Text goes here
: to record notes in plain text or even wikitext markup.
Include the following parameters, if they are applicable; otherwise, omit the parameter (or set to no
)
|manual=yes
(or any other value): Portal is manually maintained. You should specify at least one maintainer using the|maintainer[1-4]=
parameter.|upgrade=yes
(or any other value): Portal needs upgrading. Use the|notes=
field to elaborate.|update=yes
(or any other value): Portal needs updating. Use the|notes=
field to elaborate.|broken=
Portal has issues needing attention. Use the|notes=
field to elaborate.- Set to
yes
,major
orserious
: for portals that have errors or major problems, such as Lua timeouts, template parsing limits exceeded, or completely wrecked layout - Set to
minor
,access
orlayout
: for portals that have minor problems, such as accessibility issues or minor layout issues
- Set to
|nonstandard=yes
(or any other value): Portal has a nonstandard layout|incomplete=yes
(or any other value): Portal is under construction or incomplete
別名
[編輯]如何更新主題的維護資訊
[編輯]To change the maintenance information for a portal:
- Edit the portal using source editor (edit source tab on the portal)
- In the first few lines of the edit box (not inside of a table or another template), there should be this template ({{Portal maintenance status}})
- Edit the parameters of this template to change the information as needed; what each parameter does is described above in #Usage.
Tracking categories
[編輯]When in portal space, this template populates the following hidden categories (or their subcategories):
- Category:Portals with undated maintenance templates – Added when
date
is unset or missing - Category:Portals with named maintainer – Added when one or more maintainers are listed
- Category:Portals with no named maintainer – Added when no maintainers are listed
- Category:Automatically maintained portals with listed maintainers – Added when
manual
is set to no or left out and maintainer(s) have been provided - Category:All manually maintained portal pages – Added when
manual
is set toyes
- Category:Manually maintained portal pages with no date – Added when
manual
is set toyes
but nodate
is listed - Category:Manually maintained portals without listed maintainers – Added when
manual
is set toyes
, but nomaintainer
parameters have been provided - Category:Portals that need upgrading – Added when
upgrade
is set to yes - Category:Portals that need updating – Added when
update
is set to yes - Category:Portals with errors in need of immediate attention – Added when
broken
is set toyes
- Category:Portals with minor issues in need of attention – Added when
broken
is set tominor
- Category:Portals under construction – Added when
incomplete
is set toyes
- Category:All portals with untriaged subpages – Added when
subpages
is unset, or set tountriaged
- Category:All portals with triaged subpages – Added when
subpages
is set totriaged
- Category:Single-page portals – Added when
subpages
is set tosingle
orsinglepage
顯示
[編輯]預設情況下,本模板在主題頁面不輸出顯示內容。
- To show hidden categories, enable that setting in your preferences ("Appearance" tab, checkbox under "Advanced options")
- To show a message box like the examples below, add the following line to your personal CSS:
div.portal-maintenance-status { display:block !important }
- Alternatively, the messages may be viewed on portal talk pages, inside the {{WikiProject Portals}} banner (which automatically transcludes them)
範例
[編輯]{{Portal maintenance status|date=2024年8月|maintainer1=Example}}
{{Portal maintenance status|date=2024年8月|manual=yes}}
{{Portal maintenance status|date=2024年8月|broken=yes}}
{{Portal maintenance status|date=2024年8月|broken=minor}}
{{Portal maintenance status|date=2024年8月|nonstandard=yes}}
{{Portal maintenance status|date=2024年8月|incomplete=yes}}
{{Portal maintenance status|date=2024年8月|subpages=checked}}
{{Portal maintenance status|date=2024年8月|subpages=none}}
{{Portal maintenance status|date=2024年8月|upgrade=yes}}
{{Portal maintenance status|date=2024年8月|update=yes}}
{{Portal maintenance status|date=2024年8月|notes=This is a test note.}}
{{Portal maintenance status|date=2024年8月|manual=yes|maintainer1=Example|broken=yes|nonstandard=yes|incomplete=yes|subpages=checked|notes=(some lorem text, you get the idea)}}
![]() | 主題首頁維護狀態:(2024年8月)
|
模板資料
[編輯]TemplateData
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Hidden notice box used to record portal maintenance metadata
|
參見
[編輯]
|