Difference between revisions of "Template:FamilyLink"

From BattleMaster Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<includeonly>{{#get_web_data:url=http://battlemaster.org/data/character.php?World={{{1}}}&Name={{{2}}}|format=XML
+
<includeonly>{{#get_web_data:url=https://battlemaster.org/data/character.php?World={{{1}}}&Name={{{2}}}|format=XML
 
|data=Name=name,Family=family
 
|data=Name=name,Family=family
 
}}{{#ifexist: {{#external_value:Family}} Family | [[{{#external_value:Family}} Family|{{#external_value:Name}} {{#external_value:Family}}]] | {{#external_value:Name}} {{#external_value:Family}}}}</includeonly><noinclude>{{Documentation}}[[Category:Utility Templates]]</noinclude>
 
}}{{#ifexist: {{#external_value:Family}} Family | [[{{#external_value:Family}} Family|{{#external_value:Name}} {{#external_value:Family}}]] | {{#external_value:Name}} {{#external_value:Family}}}}</includeonly><noinclude>{{Documentation}}[[Category:Utility Templates]]</noinclude>

Revision as of 04:26, 9 February 2021

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.