Modèle:Current wildfire : Différence entre versions
(no base cat due to subcat addition, Category:Current wildfires, thank you for creation of useful subcategory) |
m (1 révision importée) |
(Aucune différence)
|
Version actuelle datée du 21 octobre 2017 à 20:58
{{#ifeq:Modèle|{{subst:NAMESPACE}}||}}This {{#If: ||article}} documents {{#if:
| , | }} a {{#if: | current {{#if: | {{{severity}}} | }} wildfire | current {{#if: | {{{severity}}} | }} wildfire }}. Information regarding it may change rapidly as more information becomes available; news reports and other primary sources may be unreliable. The last updates to this {{#If: ||article}} may not reflect the most current information about this wildfire for all areas. {{#if: | {{{areas}}} | }} {{#if:This wildfire is still actively burning and has not been 100 percent contained. | This wildfire is still actively burning and has not been 100 percent contained. |}} |
| |{{#ifeq:{{ safesubst:#if: | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Modèle:Current wildfire}}|1}} | {{ safesubst:#if:|{{{1}}}|Modèle:Current wildfire}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:Modèle|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}}}|Modèle:Current wildfire}}|1}} | {{ safesubst:#if:|{{{1}}}|Modèle:Current wildfire}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:Modèle|0|1}}+{{#ifeq:yes|yes|0|1}}
|{{#if: |{{#ifexist:Category:Current wildfires ||}} |[[Category:{{#if: ||Current wildfires}}]]}}{{#if:|[[Category:]]}}}}}}
{{#ifeq:current wildfire |doc
|
{{#ifeq:show |show
|This is a documentation subpage for Modèle:Current wildfire. It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Modèle |Utilisateur |modèle template page |{{#if:Modèle |modèle page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:Modèle:Current wildfire | [[Category:{{#switch:Modèle |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
Sommaire
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
{{{{#if: |subst:}}current wildfire{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||…}}}}
) 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:Modèle|{{subst:NAMESPACE}}||}}This {{#If: ||article}} documents {{#if:Hurricane Joaquin
| Hurricane Joaquin, | }} a {{#if: | current {{#if: | {{{severity}}} | }} tropical cyclone | current {{#if: | {{{severity}}} | }} tropical cyclone }}. Information regarding it may change rapidly as more information becomes available; news reports and other primary sources may be unreliable. The last updates to this {{#If: ||article}} may not reflect the most current information about this tropical cyclone for all areas. {{#if: | {{{areas}}} | }} {{#if: | {{{notes}}} |}} |
| |{{#ifeq:{{ safesubst:#if: | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Modèle:Current wildfire}}|1}} | {{ safesubst:#if:|{{{1}}}|Modèle:Current wildfire}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:Modèle|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:
-
{{{{#if: |subst:}}current wildfire{{#if:NAME_OF_FIRE ||NAME_OF_FIRE}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||…}}}}
will render as:
This {{#If: ||article}} documents {{#if:NAME_OF_FIRE
| NAME_OF_FIRE, | }} a {{#if: | current {{#if: | {{{severity}}} | }} wildfire | current {{#if: | {{{severity}}} | }} wildfire }}. Information regarding it may change rapidly as more information becomes available; news reports and other primary sources may be unreliable. The last updates to this {{#If: ||article}} may not reflect the most current information about this wildfire for all areas. {{#if: | {{{areas}}} | }} {{#if:This wildfire is still actively burning and has not been 100 percent contained. | This wildfire is still actively burning and has not been 100 percent contained. |}} |
| |{{#ifeq:{{ safesubst:#if: | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Modèle:Current wildfire}}|1}} | {{ safesubst:#if:|{{{1}}}|Modèle:Current wildfire}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:Modèle|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}}}|Modèle:Current wildfire}}|1}} | {{ safesubst:#if:|{{{1}}}|Modèle:Current wildfire}}
}}|Wikipedia:Template messages||{{#ifexpr:{{#if:Modèle|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.
The above documentation is transcluded from Modèle:Current disaster/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |