Module:Shared VA: Difference between revisions

No edit summary
mNo edit summary
Line 44: Line 44:
function p._main(args, frame)
function p._main(args, frame)
local VAs = {character = args['char']}
local VAs = {character = args['char']}
local data = Parse(args['char'], {only='Character Infobox'}) or {}
local data = Parse(args['char'], {only='Neighbor Infobox'}) or {}
local out = mw.html.create('ul')
local out = mw.html.create('ul')
Line 54: Line 54:
or (lib.isNotEmpty(va) and
or (lib.isNotEmpty(va) and
frame:preprocess(lib.trim(
frame:preprocess(lib.trim(
VAs.character=='Trailblazer'  
VAs.character=='Trailblazer' --if we ever do have a voice actor for MC
and (va:gsub('^.-F: (.-)<r?b?.-M: (.+)$', '%1 or %2'):gsub('%s*<ref.+$', ''))
and (va:gsub('^.-F: (.-)<r?b?.-M: (.+)$', '%1 or %2'):gsub('%s*<ref.+$', ''))
or (va:gsub('%s*<ref.+$', ''))
or (va:gsub('%s*<ref.+$', ''))