Template:RegName

From BattleMaster Wiki
Revision as of 16:46, 29 July 2008 by Indirik (talk | contribs) (minor adjustments)
Jump to navigation Jump to search


Usage

All parameters, horizontal format

{{RegName|Region Name}}
  • Region Name is the exact name of the region. You must include all spaces, punctuation, and accented characters exactly as used in the game.

Description

This template will allow you to easily link a region name to the IG region page for that region.

Limitations

This template isn't all that useful for a few reasons:

  1. You can log into BattleMaster using either http://www.battlemaster.org or http://battlemaster.org. If you log into the URL without the "www", and then try to follow a link with the "www", the link will fail, and vice versa. As a result, the link created by a template using one form of the URL will always fail for people that use the other form of the URL.
  2. The link will only work if the link is for the last island you logged in to. If it is not, then you will get an error message. i.e. if you are logged in to the East Island and you follow a link to a region on Beluaterra, you will get "Error: can't find region data."
  3. Special characters: If the region name uses special characters, such as "Ünterstrom", then it may not be possible to get the link to work due to the way browsers encode such characters. I haven't been able to get them to work at all. (This may only apply to a few regions on Dwilight. I don't think the other islands have region names with accented characters.)
  4. Region names with spaces are not properly handled. (Can I code round this somehow? Need to check on this...)

If these are ever fixed (maybe for War 2.0), or can be worked around somehow) then this template could actually be useful. Until then, it's really just an academic exercise. Even fixing #1 would make this template moderately useful.

Example

  • Atamara: {{RegName|Siver}} = Siver
  • Beluaterra: {{RegName|Eno}} = Eno
  • Colonies: {{RegName|Naan Forest}} = Forest Naan Forest
  • Colonies: {{RegName|Naan%20Forest}} = Naan%20Forest
  • Dwilight: {{RegName|Madina}} = Madina
  • East Island: {{RegName|Perdan}} = Perdan
  • Far East: {{RegName|Anacan}} = Anacan