Template:HadezUtilRealmLink/doc

From BattleMaster Wiki
Revision as of 23:59, 30 January 2011 by Wraith0x29a (talk | contribs) (new documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Summary

A utility template - when passed a realm name it generates a link to the realm page even if a region or duchy page with that name exists.

ie. if the realm 'Oritolon' is passed as a parameter the template returns a link to 'Oritolon (Realm)' if that page exists.

The template can be called using named or numeric parameters.

If there is a problem and the realm name does not exist in the wiki the name is displayed in plain text.

nb. This template would usually be invoked from within another template or dynamically generated list.

Author: Wraith0x29a

Parameters

realm or param #1 : The name of the realm as it appears in the game.

Usage

Using Named Parameters

{{HadezUtilRealmLink
| realm=REALM_NAME
}}

Displays a link to the realm page.

Using Numeric Parameters

{{HadezUtilRealmLink|REALM_NAME}}