User:Tub/Sandbox/Location disambiguation

From Guild Wars Wiki
Jump to navigationJump to search

Usage[edit]

Info-Logo.png Note: This template is still a work in progress. Do not add it to mainspace articles without carefully considering the consequences — ideally, discuss on the talk page beforehand and ensure others support its use.

Just add this to the top of an article:

{{Location disambiguation 2}}

For most articles, autodetection will do the rest. If it doesn't, see the examples below for workarounds.

Parameter list[edit]

All parameters are optional and shall only be used to override autodetection, if required.

  • first unnamed parameter : The name of the location without any disambiguation suffix (e.g. Arborstone, not Arborstone (explorable area)). Usually taken from the article's name.

Article overrides (set to none to remove the article)

  • mission = name of the article about the mission
  • outpost = name of the article about the outpost
  • explorable = name of the article about the explorable area
  • explorablewik = name of the article about the explorable area during War in Kryta
  • explorablewoc = name of the article about the explorable area during Winds of Change
  • quest = name of the primary quest (mostly for Eye of the North primary quests vs. zaishen missions)
  • zquest = name of the Zaishen Mission quest
  • zvanquish = name of the Zaishen Vanquish quest
  • landmark = name of the Landmark
  • other = name of a freely configurable article
  • otherdesc = description of the article given by other=. (if one of these two is given, the other is required as well)
  • disambigtype = the type of an article that shall be disambiguated more verbosely, mostly used for nightfall. See examples.
  • disambigarticle = first article fitting the parameter above
  • disambigarticle2 = second article fitting the parameter above

Examples[edit]

General usage[edit]

Normal usage. (Doesn't find any other articles, since this is not a location article)
{{Location disambiguation 2}} →
Disambig icon.png This article is about a location. This name is also used for .
If the location is named differently than the article
{{Location disambiguation 2 | Arborstone}} →
Disambig icon.png This article is about a location. This name is also used for a mission, an outpost, an explorable area, a Zaishen mission, and a Zaishen vanquish.

Adding articles that aren't autodetected[edit]

Manually specify the landmark, needed here because it does not follow the naming convention of The Great Northern Wall (landmark)
{{Location disambiguation 2 | The Great Northern Wall | landmark=Great Northern Wall}} →
Disambig icon.png This article is about a location. This name is also used for a mission, an outpost, a Zaishen mission, and a landmark.
Articles that don't fit existing categories, add both other= and otherdesc= to add one more article with a custom description
{{Location disambiguation 2 | Eye of the North | other=Guild Wars Eye of the North | otherdesc=an Expansion}} →
Disambig icon.png This article is about a location. This name is also used for an outpost and an Expansion.
{{Location disambiguation 2 | The Falls | other=The Falls (NPC) | otherdesc=a creature}} →
Disambig icon.png This article is about a location. This name is also used for an explorable area and a Zaishen vanquish.

Removing articles that are erroneously detected[edit]

Haiju Lagoon (mission) is not about a regular mission, but would be detected as such.
{{Location disambiguation 2 | Haiju Lagoon}} →
Disambig icon.png This article is about a location. This name is also used for a mission, an explorable area, an explorable area during Winds of Change, a Zaishen vanquish, and a landmark.
Remove the mission by giving mission=none
{{Location disambiguation 2 | Haiju Lagoon | mission=none}} →
Disambig icon.png This article is about a location. This name is also used for an explorable area, an explorable area during Winds of Change, a Zaishen vanquish, and a landmark.
Better yet, we'll specify the mission as belonging to another category, using other=. This also removes it from autodetection.
{{Location disambiguation 2 | Haiju Lagoon | other=Haiju Lagoon (mission) | otherdesc=the mission during Dragon Festival}} →
Disambig icon.png This article is about a location. This name is also used for an explorable area, an explorable area during Winds of Change, a Zaishen vanquish, a landmark, and the mission during Dragon Festival.
While Riverside Province (explorable area) is an explorable, it belongs to War in Kryta.
{{Location disambiguation 2 | Riverside Province)}} →
Disambig icon.png This article is about a location. This name is also used for a mission, an outpost, an explorable area, and a Zaishen mission.
Some additional code could fix that, if desired.
{{Location disambiguation 2 | Riverside Province | explorable=none | explorablewik=Riverside Province (explorable area)}} →
Disambig icon.png This article is about a location. This name is also used for a mission, an outpost, an explorable area during War in Kryta, and a Zaishen mission.

Disambiguating Nightfall missions and explorables[edit]

In Nightfall, missions and explorables have different names, i.e. Blacktide Den -> Latenda Bog, or Consulate Docks/Pogahn Passage -> Gandara, the Moon Fortress. Use the disambig* parameters here.

on missions, e.g. Blacktide Den:
{{Location disambiguation 2 | Blacktide Den | disambigtype=explorable area | disambigarticle=Latenda Bog}} →
Disambig icon.png This article is about a location. This name is also used for a mission, an outpost and a Zaishen mission. For the explorable area, see Latenda Bog.
on explorables, e.g. Latenda Bog:
{{Location disambiguation 2 | Latenda Bog | disambigtype=mission | disambigarticle=Blacktide Den}} →
Disambig icon.png This article is about a location. This name is also used for . For the mission, see Blacktide Den.
on Gandara, the Moon Fortress:
{{Location disambiguation 2 | Gandara, the Moon Fortress | disambigtype=mission | disambigarticle=Consulate Docks | disambigarticle2=Pogahn Passage}} →
Disambig icon.png This article is about a location. This name is also used for an explorable area and a Zaishen vanquish. For the mission, see Consulate Docks and Pogahn Passage.

Full example[edit]

One with all links:
{{Location disambiguation 2 | Template:Location disambiguation 2 | outpost=Main Page | mission=Main Page | explorable=Main Page | explorablewik=Main Page | explorablewoc=Main Page | quest=Main Page | zquest=Main Page | zvanquish=Main Page | landmark=Main Page | other=Guild Wars | otherdesc=other stuff}} →
Disambig icon.png This article is about a location. This name is also used for a mission, an outpost, an explorable area, an explorable area during War in Kryta, an explorable area during Winds of Change, a primary quest, a Zaishen mission, a Zaishen vanquish, a landmark, and other stuff.