Template:HadezUtilRealmLink: Difference between revisions
Wraith0x29a (talk | contribs) m (testing) |
(No difference)
|
Revision as of 21:52, 30 January 2011
Template Documentation |
This documentation is transcluded from Template:HadezUtilRealmLink/doc. |
Summary{{HadezUtilRealmLink|REALM_NAME}} A utility template - when passed a realm name it returns a link to the realm page even when a region of that name also exists. If wiki page 'REALM_NAME (Realm)' exists it links to that page with REALM_NAME as the link text. The template can be called using named or numeric parameters. The template returns the link or text with no surrounding spaces. nb. This template would usually be invoked from within another template or dynamically generated list. Author: Wraith0x29a Parametersrealm or param #1 : The name of the realm as it appears in the game. UsageUsing Named Parameters {{HadezUtilRealmLink Using Numeric Parameters {{HadezUtilRealmLink|REALM_NAME}}
Adapting Existing TemplatesFor use in existing templates, simply change.. [[ {{#external_value:realm}} ]] ..to.. {{HadezUtilRealmLink|realm={{#external_value:realm}}}} ..assuming you had the realm name assigned to the external_value called 'realm'. |