更多操作
删除的内容 添加的内容
创建页面,内容为“Level:” |
创建页面,内容为“VALID” |
||
(未显示2个用户的7个中间版本) | |||
第1行: | 第1行: | ||
<includeonly> |
|||
{{Ambox |
{{Ambox |
||
|name=公告信息 |
|name=公告信息 |
||
|image=[[File:Icon_announcement.svg|50px|link=|公告]] |
|image=[[File:Icon_announcement.svg|50px|link=|公告]] |
||
|type=rule |
|type=rule |
||
|issue='''This page is an announcement of Dancing Line & Fanmade Wiki. Please pay attention.'''<br/>{{#if:{{{1|}}}|Publish Date:{{{1}}}|{{Color|red|''The date of publishment is unknown. Administrators, please add the date according to the history!''}}}}<br/>Last Update On: {{#switch:{{REVISIONMONTH1}}|1=Jan.|2=Feb.|3=Mar.|4=Apr.|5=May|6=Jun.|7=Jul|8=Aug.|9=Sept.|10=Oct.|11=Nov.|12=Dec.}} {{REVISIONDAY}} |
|issue='''This page is an announcement of Dancing Line & Fanmade Wiki. Please pay attention.'''<br/>{{#if:{{{1|}}}|Publish Date:{{{1}}}|{{Color|red|''The date of publishment is unknown. Administrators, please add the date according to the history!''}}}}<br/>Last Update On: {{#switch:{{REVISIONMONTH1}}|1=Jan.|2=Feb.|3=Mar.|4=Apr.|5=May|6=Jun.|7=Jul|8=Aug.|9=Sept.|10=Oct.|11=Nov.|12=Dec.}} {{REVISIONDAY}}{{#switch:{{#expr:{{REVISIONDAY}}-trunc({{REVISIONDAY}}/10)}}|1={{#ifeq:{{REVISIONDAY}}|11|th|st}}|2={{#ifeq:{{REVISIONDAY}}|12|th|nd}}|3={{#ifeq:{{REVISIONDAY}}|13|th|rd}}|th}}, {{REVISIONYEAR}}<br/>Level:{{#switch:{{{2|}}}|1={{Color|red|'''IMPORTANT'''}}|Normal}}<br/>Status:{{#switch:{{{3|}}}|1=''Archive''|2=<s>Outdated</s>|VALID}} |
||
|all={{#if:{{{nocat|}}}||公告{{#translation}}}} |
|all={{#if:{{{nocat|}}}||公告{{#translation:}}}} |
||
}} |
}}<noinclude> |
||
<languages/> |
<languages/> |
||
{{doc}} |
{{doc}} |
2023年4月3日 (一) 14:47的最新版本
This page is an announcement of Dancing Line & Fanmade Wiki. Please pay attention. The date of publishment is unknown. Administrators, please add the date according to the history! Last Update On: Apr. 3rd, 2023 Level:Normal Status:VALID |
本模板是管理员模板。 普通用户不得使用该模板,否则按越权处理。 |
This template is used on the top of announcements to show the publish date, last update date, importance level, and status.
Table of Parameters
Name | Description | Acceptable Content |
---|---|---|
1 | Set the publish date of the announcement. REQUIRED, or there will be an error message. | A date, such as "Mar. 15th, 2023" |
2 | Set the importance level of the announcement. Optional. If you set a "1" for it, the box will show "IMPORTANT", in other cases the box will show "Normal". |
Number 1, or leave it empty |
3 | Set the status of the announcement. Optional. Set it to 1 will make it show “Archive”, set it to 2 will make it show “ |
Number 1, 2, or leave it empty. |
- Note: The last update date will be fetched automatically from system variants.
Examples
{{公告|Mar. 15th, 2023}}
Result:
This page is an announcement of Dancing Line & Fanmade Wiki. Please pay attention. Publish Date:Mar. 15th, 2023 Last Update On: Apr. 3rd, 2023 Level:Normal Status:VALID |
{{公告}}
Result (Wrong Example!):
This page is an announcement of Dancing Line & Fanmade Wiki. Please pay attention. The date of publishment is unknown. Administrators, please add the date according to the history! Last Update On: Apr. 3rd, 2023 Level:Normal Status:VALID |
{{公告|Mar. 15th, 2023|1}}
Result
This page is an announcement of Dancing Line & Fanmade Wiki. Please pay attention. Publish Date:Mar. 15th, 2023 Last Update On: Apr. 3rd, 2023 Level:IMPORTANT Status:VALID |
{{公告|Mar. 15th, 2023||1}}
Result:
This page is an announcement of Dancing Line & Fanmade Wiki. Please pay attention. Publish Date:Mar. 15th, 2023 Last Update On: Apr. 3rd, 2023 Level:Normal Status:Archive |
The documentation above is embedded from Template:公告/doc/en.(Edit | History)