Template talk:UnitData

From Fire Emblem Heroes Wiki
Jump to: navigation, search

Module[edit source]

I'm going to create a module to deprecate this. It will be created such that it is invoked like

{{#invoke:UnitData|main
|Hard=
(unit=,rarity=,slot=,blessing=,level=,hp=,atk=,spd=,def=,res=,weapon=,refine=,assist=,special=,cdbonus=,a=,b=,c=,seal=,accessory=)(unit=,rarity=,slot=,blessing=,level=,hp=,atk=,spd=,def=,res=,weapon=,refine=,assist=,special=,cdbonus=,a=,b=,c=,seal=,accessory=)
...
|Lunatic=
(unit=,rarity=,slot=,blessing=,level=,hp=,atk=,spd=,def=,res=,weapon=,refine=,assist=,special=,cdbonus=,a=,b=,c=,seal=,accessory=)(unit=,rarity=,slot=,blessing=,level=,hp=,atk=,spd=,def=,res=,weapon=,refine=,assist=,special=,cdbonus=,a=,b=,c=,seal=,accessory=)
...
|OtherDifficulties etc.=
(unit=,rarity=,slot=,blessing=,level=,hp=,atk=,spd=,def=,res=,weapon=,refine=,assist=,special=,cdbonus=,a=,b=,c=,seal=,accessory=)(unit=,rarity=,slot=,blessing=,level=,hp=,atk=,spd=,def=,res=,weapon=,refine=,assist=,special=,cdbonus=,a=,b=,c=,seal=,accessory=)
...
}}

Tabbers are in the invocation now instead of having data being passed through Template:Enemy Info Tabber then passed through the unit data table template. This drastically decreases template argument size and post-expand include size, makes the page load faster, and makes section links work again (previously links to story sections did not work properly on pages with Enemy Info Tabber instead of direct <tabber> because the browser would jump to the section, and then the enemy info would load, pushing the page down). Endilyn (talk) 21:56, 24 November 2018 (UTC)