Note: As this is just a proof of concept, I haven't implemented ALL of the data fields.
Below, I'm demonstrating how the template reacts to a different number of tiers being included in the call. If there are exactly two tiers for which details are provided, the second panel has the title "Upgraded". If there's only one tier specified, "No upgrade", etc.
I also put in a single header (above the panels) with optional subheaders (in the panels).
And I also pulled static properties (those that don't change through upgrades) up, above the panels.
I'm also defaulting the "Upgrades To" to the name provided for the next upgrade.
DEBUG |
DEBUG |
DEBUG |
DEBUG |
The Healer's House is a little different because it doesn't become available until Tier 2 and it's name actually changes when upgraded.
I also experimented with using a × instead of an "x" for the size (and I think it looks nicer but do accept that it's WAY more typing.) I tried automating this with a {{#replace:6x6|x|×}} but even though we have Extension:ParserFunctions installed, it seems to be getting ignored and just rendered verbatim.
DEBUG |