wikilife>BegbertBiggs (Reverted good faith edits by Cupper52 (talk) (TW)) |
小 (导入1个版本) |
(没有差异)
|
2020年12月27日 (日) 14:46的最新版本
{{#ifeq:模板|模板||}}
[[File:{{#switch:{{#expr: floor(({{#time:G}} + 2) / 8) mod 3 }}
|0=Ambox current red Asia Australia.svg |1=Ambox current red.svg |2=Ambox current red Americas.svg }}|50x40px|alt=Globe icon with a red clock.]] | This {{#If: ||article}} is about {{#if:
| {{{name}}}, | }} a {{#if: | current {{#if: | {{{severity}}} | }} disaster | current {{#if: | {{{severity}}} | }} disaster }} where information can change quickly or be unreliable. The latest page updates may not reflect the most up-to-date information. {{#if: | {{{areas}}} | }} {{#if: | {{{notes}}} |}} (Learn how and when to remove this template message) |
{{#ifeq:{{{small}}}|left|}} {{#if:
| |{{#ifeq:{{ safesubst:#if: | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Current disaster}}|1}} | {{ safesubst:#if:|{{{1}}}|模板:Current disaster}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:模板|0|1}}+{{#ifeq:yes|yes|0|1}}
|{{#if: |{{#ifexist:Category:Current events from ||}} |[[Category:{{#if: ||Current events}}]]}}{{#if: |[[Category:]]}}}}}}
}}
{{#ifeq:current disaster |doc
|
{{#ifeq:show |show
|40px | This is a documentation subpage for 模板:Current disaster. It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:模板 |用户 |模板 template page |{{#if:模板 |模板 page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:模板:Current disaster | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
This is the {{current disaster}} article message box.
For pages that are considered current disasters see: main (article) namespace links
Guidelines编辑
- This template was created for those occasions that many editors (perhaps a hundred or more) edit an article on the same day, as an advisory to editors.
- It is intended for use on articles for large natural disasters, such as severe weather, where official information should be consulted instead of Wikipedia exclusively. This template reminds readers that Wikipedia information may not be up-to-date and to consult secondary and primary sources instead.
- It should be used on any article that is considered a current disaster. That is to say, one that is still taking place.
- For a current wildfire (use
{{current wildfire}}
) this means any wildfire that is actively burning and has not been deemed 100% contained.
- For a current wildfire (use
Usage编辑
The template takes seven optional parameters:
- event – Overrides the type of event, such as for instance "event=hurricane".
- severity – Adds an adjective in front of the initial disaster name, for something like a "major earthquake", like this: "severity=major".
- areas – Specifies a warning for situations where information in the article may not be applicable for all areas (such as during weather events), please add this with "for all areas" as the option.
- name – Overrides in a name for the event, most common on storms. It is placed in front of the current event wikilink.
- time – Overrides the "current" word for another word, like "time=recent".
- type - Overrides the word "article" with another word, such as "type=section".
- link – Feeding anything to this parameter removes the link to Portal:Current events, for instance "link=no".
For instance, for a tropical cyclone named Hurricane Joaquin you could use this code:
{{Current disaster|name=Hurricane Joaquin|event=tropical cyclone}}
Which renders like this:
{{#ifeq:模板|{{subst:NAMESPACE}}||}}[[File:{{#switch:{{#expr: floor(({{#time:G}} + 2) / 8) mod 3 }}
|0=Ambox current red Asia Australia.svg |1=Ambox current red.svg |2=Ambox current red Americas.svg }}|50x40px|alt=Globe icon with a red clock.]] | This {{#If: ||article}} is about {{#if:Hurricane Joaquin
| Hurricane Joaquin, | }} a {{#if: | current {{#if: | {{{severity}}} | }} tropical cyclone | current {{#if: | {{{severity}}} | }} tropical cyclone }} where information can change quickly or be unreliable. The latest page updates may not reflect the most up-to-date information. {{#if: | {{{areas}}} | }} {{#if: | {{{notes}}} |}} (Learn how and when to remove this template message) |
| |{{#ifeq:{{ safesubst:#if: | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Current disaster}}|1}} | {{ safesubst:#if:|{{{1}}}|模板:Current disaster}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:模板|0|1}}+{{#ifeq:yes|yes|0|1}}
|{{#if: |{{#ifexist:Category:Current events from ||}} |[[Category:{{#if: ||Current events}}]]}}{{#if: |[[Category:]]}}}}}} }}
Wildfires编辑
Any wildfire not 100% contained should have this template at the top of the page:
{{current wildfire|NAME_OF_FIRE}}
will render as:
[[File:{{#switch:{{#expr: floor(({{#time:G}} + 2) / 8) mod 3 }}
|0=Ambox current red Asia Australia.svg |1=Ambox current red.svg |2=Ambox current red Americas.svg }}|50x40px|alt=Globe icon with a red clock.]] | This {{#If: ||article}} is about {{#if:NAME_OF_FIRE
| NAME_OF_FIRE, | }} a {{#if: | current {{#if: | {{{severity}}} | }} wildfire | current {{#if: | {{{severity}}} | }} wildfire }} where information can change quickly or be unreliable. The latest page updates may not reflect the most up-to-date information. {{#if: | {{{areas}}} | }} {{#if:This wildfire is still actively burning so residents should refer to local authorities for up-to-date information. | This wildfire is still actively burning so residents should refer to local authorities for up-to-date information. |}} (Learn how and when to remove this template message) |
| |{{#ifeq:{{ safesubst:#if: | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Current disaster}}|1}} | {{ safesubst:#if:|{{{1}}}|模板:Current disaster}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:模板|0|1}}+{{#ifeq:yes|yes|0|1}}
|{{#if: |{{#ifexist:Category:Current events from ||}} |[[Category:{{#if: ||Current events}}]]}}{{#if: |[[Category:]]}}}}}} }}{{#ifeq:{{ safesubst:#if: | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Current disaster}}|1}} | {{ safesubst:#if:|{{{1}}}|模板:Current disaster}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:模板|0|1}}+{{#ifeq:yes|yes|0|1}}
|{{#if: |{{#ifexist:Category:Current wildfires ||}} |[[Category:{{#if: ||Current wildfires}}]]}}{{#if: |[[Category:]]}}}}}}
See also编辑
- Wikipedia:Template messages/General#Timing-related messages – For other article message boxes of this kind.
- Wikipedia:Current event templates — For the use of current message boxes.
- {{Current}} — For current events.
- {{Current related}} — For articles related to a current event.
- {{Current weather event}} — a fork of this template.
{{#if:{{#ifeq:Current|sandbox|1}}{{#ifeq:Current disaster|doc|1}}||
}}