Difference between revisions of "Template:FamilyLink"

From BattleMaster Wiki
Jump to navigation Jump to search
m (AGGGHHHH!)
m
Line 1: Line 1:
<includeonly>{{#get_external_data:http://battlemaster.org/data/character.php?World={{{1}}}&Name={{{2}}}|xml
+
<includeonly>{{#get_external_data:http://battlemaster.org/data/character.php?World={{{1}}}&Name={{{2}}}|xml|Name=name|Family=family}}[[{{#external_value:Family}} Family|{{#external_value:Name}} {{#external_value:Family}}]]</includeonly><noinclude>{{Documentation}}[[Category:Utility Templates]]</noinclude>
|Name=name
 
|Family=family
 
}}
 
[[{{#external_value:Family}} Family|{{#external_value:Name}} {{#external_value:Family}}]]</includeonly>
 
<noinclude>{{Documentation}}[[Category:Utility Templates]]</noinclude>
 

Revision as of 00:17, 26 March 2009

Template-info.svg Template Documentation
This documentation is transcluded from Template:FamilyLink/doc.

ExamplesSandbox

Intro

This simple template takes two parameters and outputs a link to that character's family's wiki page. If the family page does not exist, then the output is only the characters full name with no link.

Note: This does not link to the actual character subpage (which some players do not use), just to the main family page.

Usage

{{FamilyLink|World|Name}}

Parameters

  • World = World number the character is on.
  • Name = The first name of the character.

Notes

  • If the character leaves the island, the link will break. For this reason, this template should really only be used with dynamically generated names, such as those generated by templates. See: Template:RealmBox and Template:RegionBox.