模板:Current disaster

Ph9讨论 | 贡献2020年12月27日 (日) 14:46的版本 (导入1个版本)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{#ifeq:模板|模板||}}

{{#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:]]}}}}}}

}}

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

{{#ifeq:current disaster |doc

    | 

{{#ifeq:show |show

|
        }}{{#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.

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}}||}}{{#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:]]}}}}}}
   }}

Wildfires

Any wildfire not 100% contained should have this template at the top of the page:

{{#ifeq:模板|{{subst:NAMESPACE}}||}}{{#ifeq:{{{small}}}|left|}} {{#if:yes
   |
   |{{#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

{{#if:{{#ifeq:Current|sandbox|1}}{{#ifeq:Current disaster|doc|1}}||

}}