Fire Emblem Heroes Wiki
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Contributor's Guide
To‐do list
Build Center
Wiki Discord
Game info
Basics
Mechanics
Advanced mechanics
Skill interaction
Skill Inheritance
Sacred Seal Forge
Weapon Refinery
Confer Blessing
Quests
Summoning events
Game modes
Aether Raids
Aether Resort
Special Maps
Story Maps
Paralogue Maps
Tactics Drills
Heroic Ordeals
Chain Challenge
Squad Assault
Blessed Gardens
Summoner Duels
Resonant Battles
Allegiance Battles
Arena
Arena Assault
Training Tower
Events
Voting Gauntlet
Tempest Trials
Tap Battle
Grand Conquests
Forging Bonds
Røkkr Sieges
Lost Lore
Hall of Forms
Mjölnir's Strike
Frontline Phalanx
Pawns of Loki
Heroes Journey
Summoner Duels R/S
Binding Worlds
Seer's Snare
Affinity Auto-Battles
More
Heroes
Hero list
Level 1 stats table
Level 40 stats table
Hero skills table
Legendary/Mythic Heroes
Other charts
Arena score tier list
Skills
Weapons
Assists
Specials
Passives
Sacred Seals
Other
Items
Accessories
Orb distribution table
Background Music
Artists list
Voice actors list
Guides
Beginner's Guide
Technical Help
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Fire Emblem Heroes Wiki
24,345
pages
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Contributor's Guide
To‐do list
Build Center
Wiki Discord
Game info
Basics
Mechanics
Advanced mechanics
Skill interaction
Skill Inheritance
Sacred Seal Forge
Weapon Refinery
Confer Blessing
Quests
Summoning events
Game modes
Aether Raids
Aether Resort
Special Maps
Story Maps
Paralogue Maps
Tactics Drills
Heroic Ordeals
Chain Challenge
Squad Assault
Blessed Gardens
Summoner Duels
Resonant Battles
Allegiance Battles
Arena
Arena Assault
Training Tower
Events
Voting Gauntlet
Tempest Trials
Tap Battle
Grand Conquests
Forging Bonds
Røkkr Sieges
Lost Lore
Hall of Forms
Mjölnir's Strike
Frontline Phalanx
Pawns of Loki
Heroes Journey
Summoner Duels R/S
Binding Worlds
Seer's Snare
Affinity Auto-Battles
More
Heroes
Hero list
Level 1 stats table
Level 40 stats table
Hero skills table
Legendary/Mythic Heroes
Other charts
Arena score tier list
Skills
Weapons
Assists
Specials
Passives
Sacred Seals
Other
Items
Accessories
Orb distribution table
Background Music
Artists list
Voice actors list
Guides
Beginner's Guide
Technical Help
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
Editing
Module:AssistsTable
Back to page
Edit source
View history
Talk (0)
Edit Page
Module:AssistsTable
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} local cargo = mw.ext.cargo local getArgs = require 'Module:Arguments'.getArgs local Util = require('Module:Util') local List = require 'Module:ListUtil' local escq = require 'Module:EscQ'.main1 local getColorText = require('Module:Color')._getText local MAX_ASSISTS = 4 local assistsList = function (args) local RARITY_TXT = Util.getRarityTexts() local assists = List.select(List.generate(MAX_ASSISTS, function (i) return Util.isNilOrEmpty(args[i * 3 - 2]) and {} or { skill = args[i * 3 - 2], default = tonumber(args[i * 3 - 1]), unlock = tonumber(args[i * 3]), } end), function (x) return not Util.isNilOrEmpty(x.skill) end) if #assists == 0 then return '<div>This unit owns no Assist skills.</div>' end local assistsQueryResult = List.map(assists, function (w) local queryResult = cargo.query('Skills', '_pageName,Name,UseRange,Description,SP', { where = ("Scategory='assist' AND Name='%s'"):format(escq(w.skill)), groupBy = '_pageName', limit = 1, }) return #queryResult > 0 and queryResult[1] or {_pageName = w.skill, AssistName = w.skill} end) -- Initialize the table local tbl = mw.html.create('table') :addClass('wikitable default unsortable skills-table') :css('text-align','center') -- Table Headers local bg = getColorText('th-color1') -- for FandomMobile tbl:tag('th'):wikitext('Name'):cssText(bg) tbl:tag('th'):wikitext('Range'):cssText(bg) tbl:tag('th'):wikitext('Description'):cssText(bg) tbl:tag('th'):wikitext('SP'):cssText(bg) tbl:tag('th'):wikitext(mw.getCurrentFrame():expandTemplate{title = 'Hover', args = {'Default', 'Skills are listed at the lowest rarity they are automatically learned at, regardless of whether or not the Hero can be obtained at that rarity.'}}):cssText(bg) tbl:tag('th'):wikitext(mw.getCurrentFrame():expandTemplate{title = 'Hover', args = {'Unlock', 'Skills are listed at the lowest rarity they can be learned at, regardless of whether or not the Hero can be obtained at that rarity.'}}):cssText(bg) -- Go through all the assists in the query result for i, q in ipairs(assistsQueryResult) do local as = assists[i] local tr = tbl:tag('tr') tr:tag('td'):wikitext('[[' .. q._pageName .. '|' .. (q.Name ~= '' and q.Name or q._pageName) .. ']]') -- Name tr:tag('td'):wikitext(tonumber(q.UseRange) or '—') -- Range tr:tag('td'):wikitext(q.Description == '' and '—' or '<div style="text-align:left">' .. q.Description .. '</div>') -- Effect local cost = tonumber(q.SP) or '—' tr:tag('td'):wikitext(cost == 0 and '—' or cost) -- SP tr:tag('td'):wikitext(RARITY_TXT[as.default] or '—') -- Default tr:tag('td'):wikitext(RARITY_TXT[as.unlock] or '—') -- Unlock end return tostring(tbl) end return require 'Module:MakeMWModule'.makeMWModule {assistsList = assistsList}
Summary:
Please note that all contributions to the Fire Emblem Heroes Wiki are considered to be released under the CC BY-NC-SA
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Doc/end
(
view source
)
Template:Doc/start
(
view source
)
Template:EscQ
(
view source
) (protected)
Template:Exist
(
view source
)
Module:AssistsTable/doc
(
edit
)
Module:EscQ
(
view source
) (protected)
Follow on IG
TikTok
Join Fan Lab