Template:HadezUtilRealmLink/doc

From BattleMaster Wiki
Revision as of 00:28, 31 January 2011 by Wraith0x29a (talk | contribs) (Clarified what it does.)
Jump to navigation Jump to search

Summary

A utility template - when passed a realm name it tries to find the best valid link to the realm's wiki page.

If wiki page 'REALM_NAME (Realm)' exists it links to that page. If not but wiki page 'REALM_NAME' exists it links to that page. If neither exist it shows REALM_NAME in plain text.

The template can be called using named or numeric parameters.

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