Template:Warningbox

From Wikivoyage
Jump to: navigation, search
[view] [edit] [history] [purge] Template-info.svg Template documentation

When to use[edit]

This template is meant for non-obvious dangers to life and limb, and should be used sparingly. If a government agency has listed a travel warning for an area (see #Travel advisories), a warning box is appropriate. Other appropriate uses include:

  • "civil war in this region"
  • "devastated by earthquake last week"
  • "Ebola virus outbreak"
  • "death penalty for marijuana possession"

Warningboxes can be used in the immediate aftermath of natural disasters, but should be removed as soon as the destination becomes reachable again (airports open, hotels available, no more plague victims). Be sure to use the warningbox to provide specific information relevant to travellers rather than a generic warning: "Area damaged by earthquakes" is less helpful than "Hotels and transportation infrastructure in the downtown area have been damaged by the November 2012 earthquake and may not be available, although the suburbs remain mostly unaffected".

Do not use this for minor announcements ("closed for repairs"), minor dangers ("fine for littering", "do not feed the monkeys"), obvious dangers ("do not walk on expressways", "do not wander down dark alleys while intoxicated"), or for news events that have short-term impact and will not affect those planning travel ("hostage situation in the town hall", "50 car accident on the freeway").

Warnings should be dated as, in times of natural or man-made disaster, the situation on the ground and available information change rapidly. For instance, an initial:

Travel Warning WARNING: Stop trains. Munitions ship on fire. Approaching Pier 6. Goodbye.
(Information last updated Dec 1917)
will attract multiple updates from other editors as the extent of the devastation becomes known and aid is urgently dispatched to rebuild the shattered city.

Usage[edit]

Article placement[edit]

If the danger affects the entire region, the warning box can be placed at the very top of the article. If the danger is localized or avoidable, place it under "Stay safe".

Template usage[edit]

This template adds mainspace pages with warnings to Category:Has warning box.

The template can be invoked as follows:

{{warningbox
| '''Regions affected:''' Northern [[Baja California]], [[Sonora]], [[Chihuahua]], [[Nuevo Leon]], and [[Tamaulipas]]<br>A travel advisory was issued April 22, 2011 due to more than 15,000 narcotics-related homicides that occurred in 2010. Most of those killed in narcotics-related violence since 2006 have been members of transnational criminal organizations. The Mexican government makes a considerable effort to protect visitors to major tourist destinations, and resort areas and tourist destinations in Mexico generally do not see the levels of drug-related violence and crime reported in the border region and in areas along major trafficking routes. Nevertheless, crime and violence are serious problems and can occur anywhere.
| us=http://travel.state.gov/content/passports/english/alertswarnings/mexico-travel-warning.html
| lastedit=2015-08-26
}}

...which produces the following warning box:

Travel Warning WARNING: Regions affected: Northern Baja California, Sonora, Chihuahua, Nuevo Leon, and Tamaulipas
A travel advisory was issued April 22, 2011 due to more than 15,000 narcotics-related homicides that occurred in 2010. Most of those killed in narcotics-related violence since 2006 have been members of transnational criminal organizations. The Mexican government makes a considerable effort to protect visitors to major tourist destinations, and resort areas and tourist destinations in Mexico generally do not see the levels of drug-related violence and crime reported in the border region and in areas along major trafficking routes. Nevertheless, crime and violence are serious problems and can occur anywhere.
Government travel advisories
(Information last updated Aug 2015)

To add advisories, insert full, direct URLs of a government's country specific information using one or more of the following template parameters:

  • Australia: australia
  • Canada: canada
  • Germany: de
  • Hong Kong: hk
  • Ireland: ie
  • India: india
  • New Zealand: nz
  • China: prc
  • South Africa: southafrica
  • United Kingdom: uk
  • United States: us

To add last updated dates, insert a date in the YYYY-MM-DD format after adding a lastedit template parameter. You should update the lastedit date every time you change the information in the warning or check the information and it is still accurate.

Only add a lastedit parameter on warning boxes with information likely to change or go out of date quickly. For example, a destination with a war currently ongoing, like Syria or where there has been a natural disaster recently, like a major flood or hurricane.

Travel advisories[edit]

The template allows the addition of Government travel advisories. Use the following links to help find URLs of official advisories on government websites.

See also[edit]

Before using this template, consider whether one of the alternatives might be more appropriate for the specific application.

Non-obvious dangers to life and limb.

Template parameters

Parameter Description Type Status
Warning text 1

no description

Default
empty
Example
empty
Auto value
empty
String required
Australia australia

no description

Default
empty
Example
empty
Auto value
empty
URL optional
Canada canada

no description

Default
empty
Example
empty
Auto value
empty
URL optional
De de

no description

Default
empty
Example
empty
Auto value
empty
URL optional
India india

no description

Default
empty
Example
empty
Auto value
empty
URL optional
Nz nz

no description

Default
empty
Example
empty
Auto value
empty
URL optional
Southafrica southafrica

no description

Default
empty
Example
empty
Auto value
empty
URL optional
Uk uk

no description

Default
empty
Example
empty
Auto value
empty
URL optional
Us us

no description

Default
empty
Example
empty
Auto value
empty
URL optional
Ie ie

no description

Default
empty
Example
empty
Auto value
empty
URL optional
Prc prc

no description

Default
empty
Example
empty
Auto value
empty
URL optional
Hk hk

no description

Default
empty
Example
empty
Auto value
empty
URL optional
Lastedit lastedit

Date the information was last updated in YYYY-MM-DD format

Default
empty
Example
empty
Auto value
empty
Date suggested