Template:HadezFamilyData: Difference between revisions
No edit summary |
Tag: Undo |
||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#get_external_data:http://battlemaster.org/data/family.php?{{#if:{{{family_name}}}|Name={{urlencode:{{{family_name}}}}}|ID={{{family_id}}} }}|xml | ||
| | |id=id | ||
|name=name | |||
|fame=fame | |||
|wealth=wealth | |||
|error=error | |||
}} | |||
{{#if: {{#external_value:name}}| | {{#if: {{#external_value:name}}| | ||
{{#ifeq: {{{format}}} | prose | The {{{family_prefix| }}} {{#external_value:name}} {{{family_suffix|family}}} has a [[fame]] of {{#external_value:fame}} and {{#external_value:wealth}} gold family wealth.| }} | {{#ifeq: {{{format}}} | prose | The {{{family_prefix| }}} {{#external_value:name}} {{{family_suffix|family}}} has a [[fame]] of {{#external_value:fame}} and {{#external_value:wealth}} gold family wealth.| }} |
Revision as of 11:46, 26 September 2020
Template Documentation |
This documentation is transcluded from Template:HadezFamilyData/doc. |
SummaryThis template displays family details (fame and wealth), updated in real-time, taken from the game. There are currently three display formats..
Nice features include..
Author: Wraith0x29a Examples and UsageSee the examples page. Parameters
If invalid family_name or family_id are entered (user error or family has been removed from game) nothing is shown at all. To remove the default family_suffix of 'Family' set family_suffix to nothing, eg. HTML hexadecimal based color codes (eg. #AA0000 for mid red) should include the # prefix. Known IssuesThe background parameter does nothing at the moment. There may be an issue with some HTML colours set by parameters not displaying properly. |