Template:HadezUtilRealmLink/doc

From BattleMaster Wiki
Revision as of 21:59, 30 January 2011 by Wraith0x29a (talk | contribs) (new documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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}}