Module:Skills/sandbox

local getArgs = require('Module:Arguments').getArgs local getGames = require('Module:Gamedata') local p = {} local function makeInvokeFunction(funcName) -- makes a function that can be returned from #invoke, using -- Module:Arguments. return function (frame) local args = getArgs(frame, {parentOnly = true}) return p[funcName](args) end end local styles = { ['skill'] = '\n|-\n!style="background:#000;color:#fff"|', ['skillc'] = '\n!style="background:#000;color:#fff"|', ['skill3'] = '\n!style="background:#000;color:#fff;',	['skill3m'] = '\n!style="background:transparent"|',	['cost1'] = '\n|style="background:#222"|',	['cost2'] = '\n|style="background:#282828"|',	['effect1'] = '\n|style="background:#222;text-align:left;padding-left:5px"|',	['effect2'] = '\n|style="background:#282828;text-align:left;padding-left:5px"|',	['effect1p'] = '\n|colspan=2 style="background:#222;text-align:left;padding-left:5px"|',	['effect2p'] = '\n|colspan=2 style="background:#282828;text-align:left;padding-left:5px"|',	['order'] = '\n|style="background:#000;color:#fff;text-align:left;padding-left:5px"|',	['table2h'] = '\n{|width="100%" class="customtable ', ['table2'] = '\n{|width="100%" class="customtable"', ['table2b'] = '\n{|cellpadding=0 cellspacing=0 style="width:100%;background:transparent" ', ['statlow'] = '\n|style="background:#000;color:#fff"|', ['statlow2'] = '\n|style="background:#fff;color:#000"|', ['quote'] = '\n|-\n|style="background:#000;color:#fff;text-align:center;border-radius:3.5px;',	}

local function cate(catename) local result result = ' ' if mw.title.getCurrentTitle:inNamespace('') then result = result .. '[[Category:'	end	return result .. catename .. ']] ' end

local function noskill(skill,gamed) local result = '\n|-\n!colspan=5 style="background:#300;width:600px"|' if skill and gamed then result = result .. 'Invalid skill name of "' .. skill .. '". You may correct the skill name or modify module:Skills/' .. gamed .. ' if needed' else result = result .. 'No empty line or empty skill name is allowed. You should either remove the empty line or add some proper skill name' end return result .. '. ' .. cate('Articles with unrecognizable skill name for Module:Skills') .. '\n|-style="display:none"\n' end

local function getRace(race,game) local result if not race or race == '' or race == '-' or race == 'Unclassified' or race == 'None' or race == 'none' then result = '-' elseif game == 'ddsaga1' or game == 'ddsaga2' then if race == 'Deity' then result =  .. race ..  elseif race == 'Evil' or race == 'Icon' then result =  .. race ..  elseif race == 'Fiend' or race == 'Nether' then result =  .. race ..  elseif race == 'Aerial' then result =  .. race ..  elseif race == 'Aerial2' then result = 'Aerial' elseif race == 'Dragon' then result =  .. race ..  elseif race == 'Demon' or race == 'Brute' then result =  .. race ..  elseif race == 'Beast' then result =  .. race ..  elseif race == 'Device' then result =  .. race ..  else result = race end elseif game == 'raidou1' or game == 'raidou2' then if race == 'Element' then result = 'Element' .. cate('Element Race') elseif race == 'Spirit' then result = 'Spirit' .. cate('Mitama Race') elseif race == 'Soldier Bug' then result = 'Soldier Bug' elseif race == 'Destroyer' then result = 'Destroyer' elseif race == 'Fiend' then result = 'Fiend' .. cate('Fiend Race') elseif race == 'General' then result = 'General' .. cate('General Race') elseif race == 'Pyro' or race == 'Frost' or race == 'Volt' or race == 'Wind' or race == 'Fury' or race == 'Pagan' or race == 'Skill' or race == 'Evil' then result =  .. race ..  .. cate(race .. ' Race') else result = race end elseif race == 'Omega' then result = 'Omega' .. cate('Fury Race') elseif race == 'Seraph' then result = 'Seraph' .. cate('Herald Race') elseif race == 'Geist' then result = 'Geist' .. cate('Entity Race') elseif race == 'Nocturne' then result = 'Nocturne' .. cate('Night Race') elseif race == 'Prime' then result = 'Prime' .. cate('Element Race') elseif race == 'Summoner' then result = 'Summoner' .. cate('Summoner Race') elseif race == 'Ghost' then if game == 'sh' then result = 'Ghost' .. cate('Ghost Race') else result = 'Ghost' .. cate('Haunt Race') end elseif race == 'Gaean' or result == 'Gaian' then race = 'Gaean' .. cate('Ring of Gaea') elseif race == 'Messian' then result = 'Messian'.. cate('Order of Messiah') elseif race == 'Akuma' then result = 'Akuma'.. cate('Demon Race') elseif race == 'Futenshi' then result = 'Futenshi'.. cate('Fallen Race') elseif race == 'Star' then result = 'Star' .. cate('Star Race') else result =  .. race ..  .. cate(race .. ' Race') end return result end

local function aligncat(align,gamen) local result if align == 'Law' or align == 'Light-Law' or align == 'Neutral-Law' or align == 'Dark-Law' then result = cate('Law Demons in ' .. gamen) elseif align == 'Neutral' or align == 'Light-Neutral' or align == 'Neutral-Neutral' or align == 'Dark-Neutral' then result = cate('Neutral Demons in ' .. gamen) elseif align == 'Chaos' or align == 'Light-Chaos' or align == 'Neutral-Chaos' or align == 'Dark-Chaos' then result = cate('Chaos Demons in ' .. gamen) else result = '' end return result end

local function bossdemoncat(boss,gamen) local result if boss then result = cate(gamen .. ' Bosses') else result = cate(gamen .. ' Demons') end return result end

local function getArcana(arcana,game,gamen) local result if not arcana or arcana == '' or arcana == '-' or arcana == 'Unclassified' or arcana == 'None' or arcana == 'none' then result = '-' elseif arcana == 'Coin' or arcana == 'Coins' then result = 'Coin' .. cate('Coin Arcana') elseif arcana == 'Pentacle' then result = 'Pentacle' .. cate('Coin Arcana') elseif arcana == 'Sword' or arcana == 'Swords' then result = 'Sword' .. cate('Sword Arcana') elseif arcana == 'Cup' or arcana == 'Cups' then result = 'Cup' .. cate('Cup Arcana') elseif arcana == 'Wand' or arcana == 'Wands' then result = 'Wand' .. cate('Wand Arcana') elseif arcana == 'Rod' then result = 'Rod' .. cate('Wand Arcana') elseif arcana == 'Rumor' then result = 'Rumor *' .. cate('Rumor Demon') elseif arcana == 'Taurus' or arcana == 'Aquarius' or arcana == 'Leo' or arcana == 'Scorpio' or arcana == 'Masquerade' then result =  .. arcana ..  .. cate('Masked Circle') elseif arcana == 'Reich' then result =  .. arcana ..  elseif arcana == 'Zonbie' or arcana == 'Zombie' then result =  .. arcana  .. cate('Masked Circle') elseif arcana == 'Human' then result = 'Human' .. cate(arcana) elseif arcana == 'Machine' then result = 'Machine' .. cate('Machine Race') else result =  .. arcana ..  .. cate(arcana .. ' Arcana') end return result end

local property_names = { image = { 'Image', 'image' }, quote = { 'Quote', 'quote', 'FusedQuote', 'fusedquote', 'fquote1' }, profile = { 'Profile', 'profile', 'FusingQuote', 'fusingquote', 'fquote2', 'Password', 'password' }, enemy = { 'Enemy', 'enemy' }, boss = { 'Boss', 'boss' }, guest = { 'Guest', 'guest', 'Guest1', 'guest1', 'Guest2', 'guest2' }, alignment = { 'Alignment', 'Align', 'alignment', 'align', default = '?' }, formation = { 'Formations', 'formations', 'Formation', 'formation', 'Form', 'form', default = '' }, hp = { 'HP', 'hp', 'HitPoints' }, mp = { 'MP', 'mp', 'ManaPoints', 'SP', 'sp', 'PP', 'pp' }, level = { 'Level', 'level', 'Lv', 'lv', 'lvl', 'LV', 'LVL', 'Rank', 'rank', default = '?' }, race = { 'Race', 'race', 'Clan', 'clan', 'type', 'species', 'Order', 'order' }, arcana = { 'Arcana', 'arcana' }, class = { 'Class', 'class' }, etype = { 'Type', 'etype', 'Affinity', 'affinity', 'Element', 'element', 'align' }, element = { 'Element', 'element', 'Subtype', 'subtype' }, bonus = { 'Bonus', 'bonus' }, mag = { 'MAG Per Step', 'MAG', 'Mag', 'mag', 'Mag Drop', 'Magnetite', 'magnetite' }, cp = { 'CP', 'cp' }, condition = { 'Condition', 'condition', 'Conditional', 'conditional', 'MAG Cost', 'Cost', 'CP' }, summoncost = { 'MAG Summon', 'summoncost' }, normal = { 'Normal', 'normal', 'Drops', 'drops', 'Drop', 'drop' }, rare = { 'Rare', 'rare' }, drop1 = { 'Drop1', 'drop1' }, drop2 = { 'Drop2', 'drop2' }, drop3 = { 'Drop3', 'drop3' }, dropc = { 'DropC', 'Dropc', 'dropc' }, preturn = { 'Return', 'Return Item', 'Heart', 'heart' }, card = { 'Cards', 'cards', 'Card', 'card', 'Tarot', 'tarot', 'Tarot Card Number', 'Extract', 'extract' }, fragment = { 'Fragment', 'fragment' }, totem = { 'Totem', 'totem' }, material = { 'Material', 'material' }, evolvef = { 'evolved from', 'Evolvedfrom', 'evolvef' }, evolvefl = { 'Evolvedfromlevel', 'evolvefl' }, evolvet = { 'evolves into', 'Evolveinto', 'evolvet' }, evolvetl = { 'Evolveintolevel', 'evolvetl' }, fusion = { 'Fusion', 'fusion', 'Specialfusion', 'special fusion' }, requiredquest = { 'Requiredquest', 'requiredquest' }, relatedquest = { 'Relatedquest', 'relatedquest' }, type1 = { 'Type1', 'type1' }, type2 = { 'Type2', 'type2' }, type3 = { 'Type3', 'type3' }, desc1 = { 'Description1', 'description1' }, desc2 = { 'Description2', 'description2' }, desc3 = { 'Description3', 'description3' }, unknown = { 'Unknown Power', 'unknown' }, investigate = { 'Investigate', 'investigate', default = '' }, call = { 'Call', 'CALL', 'call', default = '' }, spell = { 'Spell', 'spell', 'SPL', 'Spl', 'spl', 'SP', 'Sp', 'sp', default = '' }, support = { 'Support', 'support', default = '' }, number = { 'NO', 'no', 'Number', 'number', default = '' }, equip = { 'Equipment', 'equipment', 'Equip', 'equip', default = '' }, move = { 'Movement', 'MOVEMENT', 'movement', 'Move', 'MOVE', 'move', default = '' }, movetype = { 'Move Type', 'move type', 'movetype', default = '' }, power = { 'Power', 'POWER', 'power', 'Pwr', 'PWR', 'pwr', default = '' }, might = { 'Might', 'MIGHT', 'might', 'Mgt', 'MGT', 'mgt', default = '' }, exclusive = { 'Exclusive', 'exclusive' }, traits = { 'Traits', 'traits', 'Trait', 'trait', 'Personality', 'personality', 'PSRN' }, convo = { 'special conversation', 'Conver', 'conver', 'Conbo', 'convo', 'PTalk', 'Ptalk', 'ptalk' }, recruit = { 'Recruit', 'recruit', 'Confine', 'confine', default = '' }, turnicon = { 'Turnicon', 'turnicon', 'turn', 'icon' }, noa = { 'NOA', 'NOH', 'noa', 'noh', 'Normalattack', 'Basicattack', 'Regularattack', 'normalattack', 'basicattack', 'regularattack', 'AttackType', 'attacktype', 'Att Type', 'Range', 'range', default = '' }, hit = { 'Hit', 'HIT', 'hit', 'PHit', 'PHIT', 'phit', default = '' }, atk = { 'Attack', 'ATTACK', 'attack', 'ATK', 'Atk', 'atk', 'ATT', 'Att', 'att', 'PATK', default = '' }, def = { 'Defense', 'DEFENSE', 'defense', 'DEF', 'Def', 'def', 'BDEF', 'PHYSDEF', 'PhysDef', 'pd', default = '' }, matk = { 'MAttack', 'mAttack', 'MATK', 'MAtk', 'Matk', 'matk', 'MAATK', 'md', default = '' }, mdef = { 'MDefense', 'mDefense', 'MDEF', 'MDef', 'Mdef', 'mdef', 'MADEF', 'MagDef', 'MD', default = '' }, mpw = { 'MPower', 'mpower', 'MPW', 'MPw', 'Mpw', default = '' }, mef = { 'MEffect', 'meffect', 'MEF', 'MEf', 'Mef', 'MHIT', 'mhit', default = '' }, itin = { 'ITIN', 'itin', 'Intuition', 'intuition', default = '' }, wllpow = { 'WLLPOW', 'wllpow', 'Will Power', 'will power', default = '' }, dvnprt = { 'DVNPRT', 'dvnprt', 'Divine Protestion', 'divine protestion', default = '' }, avd = { 'Avoid', 'avoid', 'AVD', 'Avd', 'avd', 'Evasion', 'Eva', 'eva', default = '' }, critical = { 'Critical', 'critical', 'Crit', 'CRIT', 'crit', 'CRI', 'cri', 'CRT', 'crt', default = '' }, critdef = { 'CritDef', 'cd', default = '' }, res = { 'Resistance', 'resistance', 'RES', 'Res', 'res', 'Ailmentresistance', 'ailmentresistance', default = '' }, growth = { 'Growth', 'growth', 'Grow', 'grow', default = '' }, feature = { 'Features', 'features', 'Feature', 'feature', default = '' }, seealso = { 'SeeAlso', 'seealso', default = '' }, almres = { 'Almightyresistance', 'almightyresistance', default = '' }, str = { 'Strength', 'strength', 'STR', 'Str', 'str', 'ST', 'St', 'st', default = '' }, int = { 'Intelligence', 'intelligence', 'INT', 'Int', 'int', 'IN', 'In', 'in', 'Wisdom', 'wisdom', 'WSM', 'wsm', default = '' }, magic = { 'Magic', 'magic', 'MGC', 'Mgc', 'mgc', 'MAG', 'Mag', 'mag', 'MA', 'Ma', 'ma', default = '' }, vit = { 'Vitality', 'vitality', 'VIT', 'Vit', 'vit', 'VI', 'Vi', 'vi', 'Endurance', 'endurance', 'EN', 'En', 'en', 'END', 'End', 'end', 'ENDU', 'Endu', 'endu', 'Stamina', 'stamina', 'STM', 'Stm', 'stm', default = '' }, dex = { 'Dexterity', 'dexterity', 'DEX', 'Dex', 'dex', 'DX', 'Dx', 'dx', 'Technique', 'technique', 'Technicality', 'technicality', 'TEC', 'Tec', 'tec', default = '' }, agl = { 'Agility', 'agility', 'AGL', 'Agl', 'agl', 'AGI', 'Agi', 'agi', 'AG', 'Ag', 'ag', 'Speed', 'speed', 'SPD', 'Spd', 'spd', 'Sp', default = '' }, quick = { 'Quick', 'quick', 'QCK', 'Qck', 'qck', default = '' }, luc = { 'Luck', 'luck', 'LCK', 'Lck', 'lck', 'LUC', 'Luc', 'luc', 'LUK', 'Luk', 'luk', 'LU', 'Lu', 'lu', default = '' }, chm = { 'CHM', 'chm', 'Charm', 'charm', default = '' }, weapon = { 'Weapon', 'WEAPON', 'weapon', default = '' }, boost = { 'Boost', 'boost' }, resist = { 'Resist', 'Resists', 'resist', 'resists' }, block = { 'Block', 'Null', 'Immune', 'Shield', 'Void', 'block', 'null', 'immune', 'shield', 'void' }, absorb = { 'Absorb', 'Absorbs', 'Drain', 'Drains', 'absorb', 'absorbs', 'drain', 'drains' }, reflect = { 'Reflect', 'Reflects', 'Repel', 'Repels', 'reflect', 'reflects', 'repel', 'repels' }, weak = { 'Weak', 'weak', 'Weakness', 'weakness' }, frail = { 'Frail', 'frail' }, phys = { 'Phys', 'Physical', 'phys', 'physical' }, pierce = { 'Pierce', 'pierce', 'Stab', 'stab', 'Gun', 'gun', 'Ranged', 'ranged', 'RN', 'Rn', 'rn' }, closerange = { 'CloseRng', 'cr' }, longrange = { 'LongRng', 'lr' }, onehand = { '1h' }, twohand = { '2h' }, sword = { 'Sword', 'sword', 'SW', 'Sw', 'sw', 'Cut', 'cut', 'Slash', 'slash', 'Sl', 'SL', 'sl' }, spear = { 'Spear', 'spear', 'Sp' }, axe = { 'Axe', 'axe', 'AX', 'Ax', 'ax' }, whip = { 'Whip', 'whip', 'WP', 'Wp', 'wp' }, thrown = { 'Thrown', 'thrown', 'Throw', 'throw', 'TH', 'Th', 'th' }, arrow = { 'Arrows', 'Arrow', 'arrows', 'arrow', 'AR', 'Ar', 'ar' }, fist = { 'Fist', 'fist', 'FS', 'Fs', 'fs' }, handgun = { 'Handgun', 'handgun', 'HG', 'Hg', 'hg' }, machinegun = { 'Machinegun', 'machinegun', 'MG', 'Mg', 'mg' }, shotgun = { 'Shotgun', 'shotgun', 'SG', 'Sg', 'sg' }, rifle = { 'Rifle', 'rifle', 'RI', 'Ri', 'ri' }, strike = { 'Strike', 'strike', 'SK', 'Sk', 'sk', 'Bash', 'bash' }, tech = { 'Tech', 'TECH', 'tech', 'TE', 'Te', 'te' }, rush = { 'Rush', 'rush', 'RU', 'Ru', 'ru', 'Havoc', 'havoc', 'HV', 'Hv', 'hv' }, fire = { 'Fire', 'fire', 'FI', 'Fi', 'fi' }, water = { 'Water', 'water', 'WT', 'Wt', 'wt' }, earth = { 'Earth', 'earth', 'ER', 'Er', 'er' }, ice = { 'Ice', 'ice', 'IC', 'Ic', 'ic' }, elec = { 'Electricity', 'electricity', 'ELEC', 'Elec', 'elec', 'EL', 'El', 'el', 'Lightning', 'lightning', 'LIT', 'Lit', 'lit' }, wind = { 'Wind', 'wind', 'WI', 'Wi', 'wi' }, force = { 'Force', 'force' }, nuclear = { 'Nuclear', 'nuclear', 'NC', 'Nc', 'nc' }, blast = { 'Blast', 'blast', 'BL', 'Bl', 'bl' }, gravity = { 'Gravity', 'gravity', 'GR', 'Gr', 'gr' }, expel = { 'Expel', 'expel', 'EX', 'Ex', 'ex', 'Light', 'light', 'LI', 'Li', 'li', 'Holy', 'holy' }, miracle = { 'Miracle', 'miracle', 'MI', 'Mi', 'mi' }, death = { 'Death', 'death', 'DE', 'De', 'de' }, dark = { 'Darkness', 'darkness', 'Dark', 'dark', 'DK', 'Dk', 'dk' }, curse = { 'Curse', 'curse', 'CU', 'Cu', 'cu' }, nerve = { 'Nerve', 'nerve', 'NR', 'Nr', 'nr' }, mind = { 'Mind', 'mind', 'MN', 'Mn', 'mn' }, hiero = { '???', 'hiero' }, mystic = { 'Mystic', 'mystic', 'mys' }, poison = { 'Poison', 'poison' }, paralyze = { 'Paralyze', 'paralyze', 'Paralysis', 'paralysis', 'Para', 'para', 'Stun', 'stun' }, stone = { 'Stone', 'stone', 'Petrify', 'petrify', 'Petrification', 'petrification', 'Petra', 'petra' }, strain = { 'Strain', 'strain' }, sleep = { 'Sleep', 'sleep', 'Asleep', 'asleep' }, charm = { 'Charm', 'charm' }, mute = { 'Mute', 'mute', 'Seal', 'seal' }, fear = { 'Fear', 'fear' }, bomb = { 'Bomb', 'bomb' }, rage = { 'Rage', 'rage' }, ko = { 'KO', 'ko', 'instkill', 'kill' }, panic = { 'Panic', 'panic', 'Confusion', 'confusion', 'Confuse', 'confuse' }, down = { 'Down', 'down' }, stbind = { 'St Bind', 'stbind' }, mabind = { 'Ma Bind', 'mabind' }, agbind = { 'Ag Bind', 'agbind' }, racial = { 'Racial', 'racial' }, alm = { 'Almighty', 'almighty', 'ALM', 'Alm', 'alm', 'AL', 'Al', 'al' }, inherit = { 'Inherit', 'inherit', 'Inheritance', 'inheritance' }, forceslot = { 'ForceSlot', 'forceslot', default = '' }, wild = { 'Wild Effects', 'wild' }, yen = { 'Yen', 'yen', 'Money', 'money', 'Macca', 'macca', 'Dollar', 'dollar' }, xp = { 'EXP', 'Exp', 'exp', 'Karma', 'karma', 'XP', 'Xp', 'xp' }, location = { 'Location', 'location' }, skills = { 'Skills', 'Skill1', 'Skill 1', 'skills', 'Skill', 'skill' }, dskills = { 'Skillds', 'Skilld1', 'Skilld 1', 'skillds', 'Skilld', 'skilld', 'DSkills', 'dSkills', 'Dskills', 'dskills', 'DSkill', 'dSkill', 'Dskill', 'dskill' }, fskills = { 'FSkill', 'FSkill1', 'Fskill', 'Fskill1', 'fskill', 'fskill1', 'FSkills', 'Fskills', 'fskills', 'Combo1', 'combo1', 'Combos', 'combos', 'Combo', 'combo' }, pskills = { 'Passive', 'Passive1', 'passive', 'pskill', 'pskills', 'D-Skill1', 'D-Skill', 'D-Skills', 'dskills', 'dskill' }, askills = { 'AucSkill', 'AucSkill1', 'aucskill', 'askill', 'askills', 'Item1', 'Items', 'items', 'Item', 'item' }, apskills = { 'AucPassive', 'AucPassive1', 'aucpassive', 'apskill', 'apskills' }, }

local function get_prop(args) local prop = {} for k, v in pairs(property_names) do		for _, name in ipairs(v) do			if args[name] then prop[k] = args[name] break end end prop[k] = prop[k] or v.default end return prop end p.stats = makeInvokeFunction('_stats') function p._stats(args) local game = args[1] or args.game or args.Game or '' game = game:lower if game == 'mt' then game = 'mt1' end if game == 'kmt' then game = 'kmt1' end if game == 'smt' then game = 'smt1' end if game == 'if' or game == 'if...' then game = 'smtif' end if game == 'smtn' or game == 'smt3n' then game = 'smt3' end if game == 'imagine' or game == 'smti' then game = 'smtim' end if game == 'lb' then game = 'lb1' end if game == 'majin' or game == 'mjt' then game = 'majin1' end if game == 'majin2sn' or game == 'mt2sn' then game = 'majin2' end if game == 'dssh' then game = 'sh' end if args.FES then game = 'p3f' end if args.P3P then game = 'p3p' end if args.P4G then game = 'p4g' end if args.BR or args.RB then game = 'desu2rb' end local gameg -- Game general style if getGames.games[game].fallback then gameg = getGames.games[game].fallback -- e.g. 'p3f' and 'p3p' will fall back to 'p3' if applicable. else gameg = game end local gamen = getGames.games[game].name -- Full game name local gamegn = getGames.games[gameg].name -- e.g. 'Persona 3 FES' will fall back to 'Persona 3' if applicable. local gamed if gameg == 'mt1' or gameg == 'mt2' then gamed = 'KMT' elseif gameg == 'smtif' then gamed = 'if...' elseif gameg == 'raidou1' then gamed = 'DSRKSA' elseif gameg == 'raidou2' then gamed = 'DSRKKA' elseif gameg == 'childps' then gamed = 'CHILDRED' elseif gameg == 'childlight' then gamed = 'DMK' elseif gameg then gamed = gameg:upper end local data if not (game == 'lb1' or game == 'lb3' or game == 'ab' or game == 'lbs' or game == 'majin1' or game == 'majin2' or game == 'ronde') then data = require('Module:Skills/' .. gamed) end local styleh = '\n!style="background: ' .. getGames.games[gameg].colorbg .. ';color: ' .. getGames.games[gameg].font .. '" ' local spanc = '' local prop = get_prop(args) local result = '{|align="center" style="min-width:650px;text-align:center; background: #222; border:2px solid ' .. getGames.games[gameg].colorb .. '; border-radius:10px; font-size:75%; font-family:verdana;"\n|-\n|' .. styles.table2b if prop.image then result = result .. '\n!style="width:20px;border:#333 solid 2px;border-radius:7px;background:'		if game == 'smt1' then result = result .. '#637373'		elseif game == 'smtif' then result = result .. '#3018b8'		elseif game == 'majin2' then result = result .. '#31315a'		elseif gameg == 'p1' or gameg == 'p2is' or gameg == 'p2ep' or gameg == 'p3' or gameg == 'childred' or gameg == 'childps' or gameg == 'childwhite' or gameg == 'childfire' or gameg == 'childlight' then result = result .. 'transparent'		else result = result .. '#000'		end		result = result .. '"|' .. prop.image end result = result .. '\n|' if prop.location then prop.location =  .. prop.location ..  else prop.location = '' end if game == 'mt1' then if not prop.hp then prop.hp = '' end if not prop.xp then prop.xp = '' end if not prop.cp then prop.cp = '' end if not prop.mag then prop.mag = '' end if not prop.yen then prop.yen = '' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Race ' .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|EXP' .. styleh .. '|Macca' .. styleh .. '|MAG\n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.xp .. styles.statlow .. prop.yen .. styles.statlow .. prop.mag .. prop.cp .. '\n|}' result = result .. styles.table2 .. styleh .. '|Strength' .. styleh .. '|Intelligence' .. styleh .. '|Hit' .. styleh .. '|Agility' .. styleh .. '|Defense' .. styleh .. '|' .. spanc .. 'Location \n|-' .. styles.statlow .. prop.str .. styles.statlow .. prop.int .. styles.statlow .. prop.hit .. prop.luc .. styles.statlow .. prop.agl .. styles.statlow .. prop.def .. prop.vit .. styles.statlow .. prop.location .. '\n|}' end if game == 'mt2' then if not prop.hp then prop.hp = '' end if not prop.mp then prop.mp = '' end if not prop.cp then prop.cp = '' end if not prop.mag then prop.mag = '' end if not prop.yen then prop.yen = '' end if not prop.normal then prop.normal = '' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Race ' .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|MP\n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. '\n|}' result = result .. styles.table2 .. styleh .. '|Formations' .. styleh .. 'title="Cost Point - MAG Cost per 10 Steps"| CP ' .. styleh .. '|Macca' .. styleh .. '|Item Drops\n|-' .. styles.statlow .. prop.formation .. styles.statlow .. prop.mag .. prop.cp .. styles.statlow .. prop.yen .. styles.statlow .. prop.normal .. '\n|}' result = result .. styles.table2 .. styleh .. '|Stamina' .. styleh .. '|Intelligence' .. styleh .. '|Attack' .. styleh .. '|Agility' .. styleh .. '|Defense' .. styleh .. '|Luck\n|-' .. styles.statlow .. prop.vit .. styles.statlow .. prop.int .. styles.statlow .. prop.atk .. styles.statlow .. prop.agl .. styles.statlow .. prop.def .. styles.statlow .. prop.luc .. '\n|}' end if game == 'kmt1' or game == 'kmt2' then if not prop.hp then prop.hp = '' end if not prop.mp then prop.mp = '' end if prop.noa == '' then prop.noa = '1' end if not prop.cp then prop.cp = '' end if not prop.mag then prop.mag = '' end if not prop.xp then prop.xp = '' end if not prop.yen then prop.yen = '' end if not prop.normal then prop.normal = '' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Race ' .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|MP' .. styleh .. 'title="Vitality"|VIT' .. styleh .. 'title="Intellect"|INT' .. styleh .. 'title="Strength"|STR' .. styleh .. 'title="Speed"|SPD' .. styleh .. 'title="Luck"|LUC' .. styleh .. 'title="Defense"|DEF\n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow .. prop.vit .. styles.statlow .. prop.int .. styles.statlow .. prop.str .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. styles.statlow .. prop.def .. '\n|}' result = result .. styles.table2 .. styleh .. 'title="Cost Point - MAG Cost per 10 steps"| CP ' .. styleh .. 'title="Number of Attacks"| NOA ' .. styleh .. '|EXP' .. styleh .. '|Macca' .. styleh .. 'title="Magnetite dropped"| MAG ' .. styleh if game == 'kmt1' then result = result .. '|' .. spanc .. 'Location ' elseif game == 'kmt2' then result = result .. '|Item Drops' end result = result .. '\n|-' .. styles.statlow .. prop.cp .. styles.statlow .. prop.noa .. styles.statlow .. prop.xp .. styles.statlow .. prop.yen .. styles.statlow .. prop.mag .. styles.statlow if game == 'kmt1' then result = result .. prop.location .. '\n|}' elseif game == 'kmt2' then result = result .. prop.normal .. '\n|}' end end if gameg == 'smt1' or gameg == 'smt2' or gameg == 'smtif' then if not prop.hp then prop.hp = '?' end if not prop.mp then prop.mp = '?' end if not prop.cp then prop.cp = '' end if not prop.mag then prop.mag = '' end if not prop.normal then prop.normal = '' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Race ' .. styleh .. '|' .. spanc .. 'Alignment ' .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|MP' .. styleh .. 'title="Strength"|St' .. styleh .. 'title="Intelligence"|In' .. styleh .. 'title="Magic"|Ma' .. styleh .. 'title="Vitality"|Vi' .. styleh .. 'title="Agility"|Ag' .. styleh .. 'title="Luck"|Lu' result = result .. '\n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.alignment .. aligncat(prop.alignment,gamen) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow .. prop.str .. styles.statlow .. prop.int .. styles.statlow .. prop.magic .. styles.statlow .. prop.vit .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. '\n|}' result = result .. styles.table2 .. styleh if boss or enemy then result = result .. '|MAG Drops' else result = result .. 'title="Cost Point - MAG Cost per 10 steps"| CP ' end result = result .. styleh .. 'title="Number of Attacks"| NOA ' .. styleh .. 'title="Physical Attack Power"|ATK' .. styleh .. 'title="Physical Attack Accuracy"|ACC' .. styleh .. 'title="Defenses"|DEF' .. styleh .. 'title="Evasion"|EVA' .. styleh .. 'title="Magical Attack Power"|M.ATK' .. styleh .. 'title="Magical Hit-rate"|M.EFC' if gameg == 'smt1' then result = result .. styleh .. '|' .. spanc .. 'Drop ' end result = result .. '\n|-' .. styles.statlow .. prop.mag .. prop.cp .. styles.statlow .. prop.noa .. styles.statlow .. prop.atk .. styles.statlow .. prop.hit .. styles.statlow .. prop.def .. styles.statlow .. prop.avd .. styles.statlow .. prop.mpw .. styles.statlow .. prop.mef if gameg == 'smt1' then result = result .. styles.statlow .. prop.normal end result = result .. '\n|}' .. bossdemoncat(prop.boss,gamen) end if gameg == 'smt3' then if not prop.hp then prop.hp = '?' end if not prop.mp then prop.mp = '?' end result = result .. styles.table2 .. styleh .. '| Race ' .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|MP' .. styleh .. 'title="Strength"|St' .. styleh .. 'title="Magic"|Ma' .. styleh .. 'title="Vitality"|Vi' .. styleh .. 'title="Agility"|Ag' .. styleh .. 'title="Luck"|Lu\n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow .. prop.str .. styles.statlow .. prop.magic .. styles.statlow .. prop.vit .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. '\n|}' .. bossdemoncat(prop.boss,gamen) end if gameg == 'smtsj' then if not prop.hp then prop.hp = '?' end if not prop.mp then prop.mp = '?' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Race ' .. styleh .. '|' .. spanc .. 'Alignment ' .. styleh .. '|Level' .. styleh .. 'width=7%|HP' .. styleh .. 'width=7%|MP' .. styleh .. 'width=7% title="Strength"|ST' .. styleh .. 'width=7% title="Magic"|MA' .. styleh .. 'width=7% title="Agility"|AG' .. styleh .. 'width=7% title="Vitality"|VI' .. styleh .. 'width=7% title="Luck"|LU\n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.alignment .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow .. prop.str .. styles.statlow .. prop.magic .. styles.statlow .. prop.agl .. styles.statlow .. prop.vit .. styles.statlow .. prop.luc .. '\n|}' .. bossdemoncat(prop.boss,gamen) .. aligncat(prop.alignment,gamen) end if gameg == 'smt4' then if not prop.hp then prop.hp = '?' end if not prop.mp then prop.mp = '?' end styleh = '\n!style="color:' .. getGames.games[gameg].colorbg2 .. ';background:#000" ' result = result .. styles.table2 .. styleh .. '| Race ' .. styleh .. 'style="color:' .. getGames.games[gameg].colorbg2 .. '"|Level' .. styleh .. 'style="color:#FDEC3C"|HP' .. styleh .. 'style="color:#69BB29"|MP' .. styleh .. 'title="Strength"|ST' .. styleh .. 'title="Dexterity"|DX' .. styleh .. 'title="Magic"|MA' .. styleh .. 'title="Agility"|AG' .. styleh .. 'title="Luck"|LU\n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow2 .. prop.str .. styles.statlow2 .. prop.dex .. styles.statlow2 .. prop.magic .. styles.statlow2 .. prop.agl .. styles.statlow2 .. prop.luc .. '\n|}' .. bossdemoncat(prop.boss,gamen) if not prop.phys then prop.phys = '-' end if not prop.pierce then prop.pierce = '-' end if not prop.fire then prop.fire = '-' end if not prop.ice then prop.ice = '-' end if not prop.elec then prop.elec = '-' end if not prop.force then prop.force = '-' end if not prop.expel then prop.expel = '-' end if not prop.dark then prop.dark = '-' end styleh = '\n!style="background:' .. getGames.games[gameg].colorbg2 .. ';color:#000" ' local statlow = '\n|style="background:' .. getGames.games[gameg].colorbg2 .. ';color:#000"|' result = result .. styles.table2 .. styleh .. 'title="Physical"| Phys' .. styleh .. 'title="Gun"| Gun' .. styleh .. 'title="Fire"| Fire' .. styleh .. 'title="Ice"| Ice' .. styleh .. 'title="Electricity"| Elec' .. styleh .. 'title="Force"| Force' .. styleh .. 'title="Light"| Light' .. styleh .. 'title="Dark"| Dark\n|-\n' .. statlow .. prop.phys .. statlow .. prop.pierce .. statlow .. prop.fire .. statlow .. prop.ice .. statlow .. prop.elec .. statlow .. prop.force .. statlow .. prop.expel .. statlow .. prop.dark .. '\n|}' styleh = '\n!style="background: ' .. getGames.games[gameg].colorbg .. ';color: ' .. getGames.games[gameg].font .. '" ' result = result .. styles.table2 .. styleh .. 'width=130px title="All enemies and guest allies are immune to '.."'Lost%'"..' ailment"| ' if prop.almres ~= '' then result = result .. 'Other' else result = result .. 'Ailment' end result = result .. ' Resistance ' .. styles.order .. prop.almres .. prop.res .. '\n|}' .. styles.table2 .. styleh .. 'width=100px|Normal Attack' .. styles.order .. prop.noa if prop.turnicon then result = result .. styleh .. 'width=70px|' .. spanc .. 'Turn Icon ' .. styles.order .. prop.turnicon end result = result .. '\n|}' if prop.requiredquest or prop.relatedquest or prop.normal then result = result .. styles.table2 if prop.requiredquest then result = result .. styleh .. 'width=100px|' .. spanc .. 'Required quest ' .. styles.order .. prop.requiredquest elseif prop.relatedquest then result = result .. styleh .. 'width=100px|' .. spanc .. 'Related quest ' .. styles.order .. prop.relatedquest end if prop.normal then result = result .. styleh .. 'width=70px|' .. spanc .. 'Drop ' .. styles.order .. prop.normal end result = result .. '\n|}' end if prop.evolvef or prop.evolvet then result = result .. styles.table2 if prop.evolvef then result = result .. styleh .. 'width=100px|' .. spanc .. 'Evolved from ' .. styles.order .. prop.evolvef .. ' (' .. prop.evolvefl .. ')' end if prop.evolvet then result = result .. styleh .. 'width=100px|' .. spanc .. 'Evolves into ' .. styles.order .. prop.evolvet .. ' (' .. prop.evolvetl .. ')' end result = result .. '\n|}' end if prop.fusion then result = result .. styles.table2 .. styleh .. 'width=100px|' .. spanc .. 'Special fusion ' .. styles.order .. prop.fusion .. '\n|}' end end if gameg == 'lb1' or gameg == 'lb2' or gameg == 'lb3' or gameg == 'lbs' then if not prop.hp then prop.hp = '?' end if not prop.mp then prop.mp = '?' end result = result .. styles.table2 .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|MP' if gameg ~= 'lb1' then result = result .. styleh .. 'title="Attack Power"|ATK' .. styleh .. 'title="Defense"|DEF' end result = result .. styleh .. 'title="Strength"|STR' .. styleh .. 'title="Intelligence"|INT' .. styleh .. 'title="Endurance"|END' .. styleh .. 'title="Speed"|SPD' .. styleh .. 'title="Luck"|LUC\n|-' .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp if gameg ~= 'lb1' then result = result .. styles.statlow .. prop.atk .. styles.statlow .. prop.def end result = result .. styles.statlow .. prop.str .. styles.statlow .. prop.int .. styles.statlow .. prop.vit .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. '\n|}' .. bossdemoncat(prop.boss,gamen) if prop.equip ~= '' or prop.card then if prop.equip == 'Pteros' or prop.equip == 'pteros' or prop.equip == 'Bird' then prop.equip = 'Knuckle, Claw' elseif prop.equip == 'Kobold' or prop.equip == 'kobold' or prop.equip == 'Jaki' then prop.equip = 'Claw, Hammer, Tornado, Axe, Knuckle, Shield' elseif prop.equip == 'Dwarf' or prop.equip == 'dwarf' or prop.equip == 'Jirae' then prop.equip = 'Knuckle, Claw, Sword, Armour, Shield' elseif prop.equip == 'Pixie' or prop.equip == 'pixie' or prop.equip == 'Fairy' then prop.equip = 'Knuckle, Claw, Hammer, Shuriken, Axe, Sword, Armour, Shield' else if gameg == 'lb2' then prop.equip = 'None' end end result = result .. styles.table2 if prop.equip ~= '' then result = result .. styleh .. 'width=70|' .. spanc .. 'Equipment ' .. styles.order .. prop.equip end if prop.card then result = result .. styleh .. 'width=100|Card Location' .. styles.order .. prop.card end result = result .. '\n|}' end end if gameg == 'ab' then if not prop.hp then prop.hp = '?' end if not prop.mp then prop.mp = '?' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Race ' .. styleh .. '|Rank' .. styleh .. '|HP' .. styleh .. '|PP' .. styleh .. '|Move' .. styleh .. '|Power' .. styleh .. 'title="Defensive Power"| Might ' .. styleh .. '|Magic' .. styleh .. '|Speed' .. styleh .. '|Luck\n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow .. prop.move .. styles.statlow .. prop.power .. styles.statlow .. prop.might .. styles.statlow .. prop.magic .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. '\n|}' .. bossdemoncat(prop.boss,gamen) if prop.weapon ~= '' or prop.tech then result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Weapon ' .. styleh .. '|Tech\n|-' .. styles.statlow .. prop.weapon .. styles.statlow .. prop.tech .. '\n|}' end end if gameg == 'majin1' or gameg == 'majin2' or gameg == 'ronde' then if not prop.hp then prop.hp = '?' end if not prop.mp then prop.mp = '?' end if not prop.cp then prop.cp = '' end if not prop.mag then prop.mag = '' end result = result .. bossdemoncat(prop.boss,gamen) .. styles.table2 .. styleh .. '|' .. spanc .. 'Race ' .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|MP' .. styleh .. '|Move Range' .. styleh .. '|Move Type' .. styleh if gameg == 'majin1' then result = result .. '|Attack Type' .. styleh .. 'title="Cost Point - MAG cost per 10 steps"| CP ' elseif gameg == 'majin2' then result = result .. '|Attack Range' .. styleh .. '|MAG' elseif gameg == 'ronde' then result = result .. '|Attack Range' .. styleh .. '|Arcana' end result = result .. '\n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow .. prop.move .. styles.statlow .. prop.movetype .. styles.statlow .. prop.noa .. styles.statlow if gameg == 'ronde' then result = result .. prop.arcana .. '\n|}' else result = result .. prop.cp .. prop.mag .. '\n|}' end if gameg == 'majin1' then result = result .. styles.table2 .. styleh .. '|Strength' .. styleh .. '|Magic' .. styleh .. '|Technique' .. styleh .. '|Agility' .. styleh .. '|Luck\n|-' .. styles.statlow .. prop.str .. styles.statlow .. prop.magic .. styles.statlow .. prop.dex .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. '\n|}' else result = result .. styles.table2 .. styleh .. 'title="Strength"|St' .. styleh .. 'title="Magic|Ma' .. styleh .. 'title="Intelligence"|In' .. styleh .. 'title="Agility"|Ag' .. styleh .. 'title="Luck|Lu' .. styleh .. 'title="Attack Power"|Atk' .. styleh .. 'title="Physical Defense"|P.Def' .. styleh if gameg == 'majin2' then result = result .. 'title="Magical Attack Power"|M.Atk' .. styleh .. 'title="Magical Defense"|M.Def' .. styleh .. 'title="Hit-rate"|Hit' .. styleh .. 'title="Evasion"|Eva' .. styleh .. 'title="Critical Rate"|Crt\n|-' else result = result .. 'title="Magical Defense"|M.Def\n|-' end result = result .. styles.statlow .. prop.str .. styles.statlow .. prop.magic .. styles.statlow .. prop.int .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. styles.statlow .. prop.atk .. styles.statlow .. prop.def .. styles.statlow if gameg == 'majin2' then result = result .. prop.matk .. styles.statlow .. prop.mdef .. styles.statlow .. prop.hit .. styles.statlow .. prop.avd .. styles.statlow .. prop.critical .. '\n|}' else result = result .. prop.mdef .. '\n|}' end end if gameg == 'ronde' then result = result .. styles.table2 .. styleh .. 'width=100px|Equipment' .. styles.order .. prop.equip .. styleh .. 'width=100px|Item' .. styles.order .. prop.askills .. '\n|}' end end if gameg == 'smtds' or gameg == 'sh' then if not prop.hp then prop.hp = '?' end if not prop.mp then prop.mp = '?' end if not prop.cp then prop.cp = '' end if not prop.mag then prop.mag = '' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Race ' .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|MP' .. styleh .. 'title="Strength"|ST' .. styleh .. 'title="Intelligence"|IN' .. styleh .. 'title="Magic"|MA' .. styleh if gameg == 'sh' then result = result .. 'title="Endurance"|EN' .. styleh end result = result .. 'title="Agility"|AG' .. styleh .. 'title="Luck"|LU' result = result .. '\n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow .. prop.str .. styles.statlow .. prop.int .. styles.statlow .. prop.magic .. styles.statlow if gameg == 'sh' then result = result .. prop.vit .. styles.statlow end result = result .. prop.agl .. styles.statlow .. prop.luc result = result .. '\n|}' .. styles.table2 .. styleh if not (boss or enemy) then result = result .. 'title="Cost Point - Magnetite cost per 10 steps"| CP ' .. styleh end if gameg == 'smtds' then result = result .. 'title="Number of Attacks"| NOA ' elseif gameg == 'sh' and not (boss or enemy) then result = result .. '|MAG Summon' end if not prop.traits or prop.traits == '' or prop.traits == '-' or prop.traits == '--' or boss or enemy then else result = result .. styleh .. '|' .. spanc .. 'Personality ' .. styleh end result = result .. 'title="Physical Attack Power"|P.ATK' .. styleh .. 'title="Physical Attack Hit-rate"|P.HIT' .. styleh .. 'title="Base Defenses"|B.DEF' .. styleh .. 'title="Avoidance"|AVD' .. styleh .. 'title="Magical Power"|M.ATK' .. styleh if gameg == 'smtds' then result = result .. 'title="Magical Defense"|M.DEF' elseif gameg == 'sh' then result = result .. 'title="Magical Hit-rate"|M.HIT' end result = result .. '\n|-' .. styles.statlow if not (boss or enemy) then result = result .. prop.mag .. prop.cp .. styles.statlow end if gameg == 'smtds' then result = result .. prop.noa elseif gameg == 'sh' and not boss then result = result .. prop.summoncost end if not prop.traits or prop.traits == '' or prop.traits == '-' or prop.traits == '--' then else result = result .. styles.statlow .. prop.traits .. styles.statlow end result = result .. prop.atk .. styles.statlow .. prop.hit .. styles.statlow .. prop.def .. styles.statlow .. prop.avd .. styles.statlow .. prop.matk .. styles.statlow if gameg == 'smtds' then result = result .. prop.mdef elseif gameg == 'sh' then result = result .. prop.mef end result = result .. bossdemoncat(prop.boss,gamen) .. '\n|}' end if gameg == 'raidou1' or gameg == 'raidou2' then if prop.str == '' then prop.str = '-' end if prop.magic == '' then prop.magic = '-' end if prop.vit == '' then prop.vit = '-' end if prop.luc == '' then prop.luc = '-' end if not prop.condition then prop.condition = '-' end if not prop.convo then prop.convo = '-' end if not prop.investigate then prop.investigate = '-' end if not prop.recruit then prop.recruit = '?' elseif prop.boss then prop.recruit = 'No' end if not prop.resist then prop.resist = '-' end if not prop.block then prop.block = '-' end if not prop.absorb then prop.absorb = '-' end if not prop.reflect then prop.reflect = '-' end if not prop.weak then prop.weak = '-' else if gameg == 'raidou1' then prop.weak = ' ' .. prop.weak .. ' '			else prop.weak = ' ' .. prop.weak .. ' '			end end if not prop.frail then prop.frail = '-' else prop.frail = ' ' .. prop.frail .. ' ' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Order ' .. styleh .. '|Level' .. styleh .. '|HP' if gameg == 'raidou1' then result = result .. styleh .. '|MP' end result = result .. styleh .. 'title="Strength"|ST' .. styleh .. 'title="Magic"|MA' .. styleh .. 'title="Vitality"|VI' .. styleh .. 'title="Luck"|LU' .. styleh if gameg == 'raidou1' then result = result .. '|MAG Cost' else result = result .. 'title="Conversation skill of the demon"| Conversation ' end result = result .. styleh .. 'title="Demon' .. "'s" .. ' Investigation Skill"| Investigation \n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp if gameg == 'raidou1' then result = result .. styles.statlow .. prop.mp end result = result .. styles.statlow .. prop.str .. styles.statlow .. prop.magic .. styles.statlow .. prop.vit .. styles.statlow .. prop.luc .. styles.statlow if gameg == 'raidou1' then result = result .. prop.condition else result = result .. prop.convo end result = result .. styles.statlow .. prop.investigate .. '\n|}' .. styles.table2 if gameg == 'raidou1' then result = result .. styleh .. 'title="Whether the demon can be subdued as ally or not."|Confinable' end result = result .. styleh .. '|Reflects' .. styleh .. '|Absorbs' .. styleh .. '|Block' .. styleh .. '|Resists' .. styleh if gameg == 'raidou2' then result = result .. 'title="Unit takes extra damage without being staggered."| Weak ' .. styleh .. 'title="Unit will be staggered by the said element(s). Whether the element does extra damage or not varies."| Frail \n|-' else result = result .. '|Weak\n|-' .. styles.statlow .. prop.recruit end result = result .. styles.statlow .. prop.reflect .. styles.statlow .. prop.absorb .. styles.statlow .. prop.block .. styles.statlow .. prop.resist .. styles.statlow .. prop.weak if gameg == 'raidou2' then result = result .. styles.statlow .. prop.frail end result = result .. '\n|}' .. bossdemoncat(prop.boss,gamen) end if gameg == 'giten' then if not prop.condition then prop.condition = '' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Race ' .. styleh .. '|Alignment' .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|MP' .. styleh .. 'title="Cost Point. Magnetite per 10 steps"| CP \n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.alignment .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow .. prop.condition .. '\n|}' result = result .. styles.table2 .. styleh .. '|Intuition' .. styleh .. '|Will Power' .. styleh .. '|Magic' .. styleh .. '|Intelligence' .. styleh .. '|Divine Protection\n|-' .. styles.statlow .. prop.itin .. styles.statlow .. prop.wllpow .. styles.statlow .. prop.magic .. styles.statlow .. prop.int .. styles.statlow .. prop.dvnprt .. '\n|}' result = result .. styles.table2 .. styleh .. '|Strength' .. styleh .. '|Stamina' .. styleh .. '|Agility' .. styleh .. '|Dexterity' .. styleh .. '|Charm\n|-' .. styles.statlow .. prop.str .. styles.statlow .. prop.vit .. styles.statlow .. prop.agl .. styles.statlow .. prop.dex .. styles.statlow .. prop.chm .. '\n|}' .. aligncat(prop.alignment,gamen) .. bossdemoncat(prop.boss,gamegn) end if gameg == 'p1' then if prop.boss or prop.enemy or prop.hp then if not prop.etype then prop.etype = '' end if not prop.element then prop.element = '' end if not prop.hp then prop.hp = '' end if not prop.mp then prop.mp = '' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Order ' .. styleh .. '|Type' .. styleh .. '|Subtype' .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|SP' if prop.normal then result = result .. styleh .. '|' .. spanc .. 'Drops ' end result = result .. '\n|-' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.etype .. styles.statlow .. prop.element .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp if prop.normal then result = result .. styles.statlow .. prop.normal end result = result .. '\n|}' if prop.matk ==  and prop.mdef ==  and prop.str ==  and prop.vit ==  and prop.dex ==  and prop.agl ==  and prop.luc == '' then else result = result .. styles.table2 .. styleh .. 'width=14.3% title="Magical Power"|MAtk' .. styleh .. 'width=14.3% title="Magical Defense"|MDef' .. styleh .. 'width=14.3% title="Strength"|St' .. styleh .. 'width=14.3% title="Vitality"|Vi' .. styleh .. 'width=14.3% title="Dexterity"|Dx' .. styleh .. 'width=14.3% title="Agility"|Ag' .. styleh .. 'title="Luck"|Lu\n|-' .. styles.statlow .. prop.matk .. styles.statlow .. prop.mdef .. styles.statlow .. prop.str .. styles.statlow .. prop.vit .. styles.statlow .. prop.dex .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. '\n|}' end if not prop.traits and not prop.convo then else result = result .. styles.table2 if prop.traits then result = result .. styleh .. 'width=50px|' .. spanc .. 'Traits ' .. styles.order .. prop.traits end if prop.convo then result = result .. styleh .. 'width=50px title="If equipped with the listed Persona, there is a chance it will talk to this demon if encountered."| ' .. spanc .. 'Ptalk ' .. styles.order .. prop.convo end result = result .. '\n|}' .. bossdemoncat(prop.boss,gamen) end else if not prop.etype then prop.etype = '' end if not element then prop.element = '' end if not prop.mp then prop.mp = '' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Arcana ' .. styleh .. '|Type' .. styleh .. '|Subtype' .. styleh .. '|Level' .. styleh .. '|SP cost' if prop.totem then result = result .. styleh .. '|' .. spanc .. 'Totem ' end if prop.preturn then result = result .. styleh .. '|' .. spanc .. 'Returns ' .. spanc .. '° ' end result = result .. '\n|-' .. styles.statlow .. getArcana(prop.arcana,gameg,gamen) .. styles.statlow .. prop.etype .. styles.statlow .. prop.element .. styles.statlow .. prop.level .. styles.statlow .. prop.mp if prop.totem then result = result .. styles.statlow .. prop.totem end if prop.preturn then result = result .. styles.statlow .. prop.preturn end result = result .. '\n|}' .. styles.table2 .. styleh .. 'width=14.3% title="Magical Power"|MAtk' .. styleh .. 'width=14.3% title="Magical Defense"|MDef' .. styleh .. 'width=14.3% title="Strength"|St' .. styleh .. 'width=14.3% title="Vitality"|Vi' .. styleh .. 'width=14.3% title="Dexterity"|Dx' .. styleh .. 'width=14.3% title="Agility"|Ag' .. styleh .. 'title="Luck"|Lu\n|-' .. styles.statlow .. prop.matk .. styles.statlow .. prop.mdef .. styles.statlow .. prop.str .. styles.statlow .. prop.vit .. styles.statlow .. prop.dex .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. '\n|}' if not args.Affinity and not prop.convo then else result = result .. styles.table2 if args.Affinity then result = result .. styleh .. 'width=60px title="Characters with ' .. "'Best'" .. ' Affinity"|' .. spanc .. ' Affinity ' .. styles.order .. args.Affinity end if prop.convo then result = result .. styleh .. 'width=50px title="If equipped with the this Persona, there is a chance it will talk to listed demon if encountered."| ' .. spanc .. 'Ptalk ' .. styles.order .. prop.convo end result = result .. '\n|}' .. cate(gamen .. ' Personas') end end end if (gameg == 'p2is' or gameg == 'p2ep') and prop.quote then result = result .. styles.table2b .. styles.quote .. 'font-style:italic"|' .. string.gsub(prop.quote, '!!', '‼') .. '\n|}'	end -- replace exclamation mark otherwise it will be interpreted as wiki table seperator.	if gameg == 'p2is' or gameg == 'p2ep' then		result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Arcana '		if prop.enemy or prop.boss or prop.hp then			if prop.etype then result = result .. styleh .. '|Type' end			result = result .. styleh .. '|Level'			if prop.hp then result = result .. styleh .. '|HP' end			if prop.normal then result = result .. styleh .. '|' .. spanc .. 'Normal Drop' end			if prop.rare then result = result .. styleh .. 'style="background:#8E283D"|Rare Drop' end			result = result .. '\n|-' .. styles.statlow .. getArcana(prop.arcana,gameg,gamen)			if prop.etype then result = result .. styles.statlow .. prop.etype end			result = result .. styles.statlow .. prop.level if prop.hp then result = result .. styles.statlow .. prop.hp end if prop.normal then result = result .. styles.statlow .. prop.normal end if prop.rare then result = result .. styles.statlow .. prop.rare end result = result .. bossdemoncat(prop.boss,gamen) else if not prop.etype then prop.etype = '' end if not prop.mp then prop.mp = '' end if not prop.bonus then prop.bonus = '' end if not prop.preturn then prop.preturn = '' end result = result .. styleh .. '|Type' .. styleh .. '|Level' .. styleh .. '|SP cost' .. styleh .. 'title="Extra stats that are conferred upon every level up with the Persona equipped"|Bonus' .. styleh .. '|' .. spanc .. 'Returns ' .. '' .. spanc .. '° ' .. '\n|-' .. styles.statlow .. getArcana(prop.arcana,gameg,gamen) .. styles.statlow .. prop.etype .. styles.statlow .. prop.level .. styles.statlow .. prop.mp .. styles.statlow .. prop.bonus .. styles.statlow .. prop.preturn .. cate(gamegn .. ' Personas') end result = result .. '\n|}' end if gameg == 'p3' or gameg == 'p4' then result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Arcana ' .. styleh .. 'width=10%|Level' if prop.hp then result = result .. styleh .. 'width=10%|HP' end if prop.mp then result = result .. styleh .. 'width=10%|SP' end result = result .. styleh .. 'width=10% title="Strength"|St' .. styleh .. 'width=10% title="Magic"|Ma' .. styleh .. 'width=10% title="Endurance"|En' .. styleh .. 'width=10% title="Agility"|Ag' .. styleh .. 'width=10% title="Luck"|Lu\n|-\n' .. styles.statlow .. getArcana(prop.arcana,gameg,gamegn) result = result .. styles.statlow .. prop.level if prop.hp then result = result .. styles.statlow .. prop.hp end if prop.mp then result = result .. styles.statlow .. prop.mp end result = result .. styles.statlow .. prop.str .. styles.statlow .. prop.magic .. styles.statlow .. prop.vit .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. '\n|}' if gameg == 'p3' then if prop.hp then if prop.boss then if game == 'p3p' then result = result .. cate(gamen .. ' Bosses') else result = result .. cate(gamegn .. ' Bosses') .. cate('Persona 3 Portable Bosses') end else result = result .. cate(gamegn .. ' Shadows') end else if game == 'p3p' then result = result .. cate(gamen .. ' Personas') elseif game == 'p3f' then result = result .. cate(gamen .. ' Personas') else result = result .. cate(gamegn .. ' Personas') .. cate('Persona 3 FES Personas') .. cate('Persona 3 Portable Personas') end end end if gameg == 'p4' then if prop.hp then if prop.boss then if game == 'p4g' then result = result .. cate(gamen .. ' Bosses') else result = result .. cate(gamegn .. ' Bosses') .. cate('Persona 4 Golden Bosses') end else if game == 'p4g' then result = result .. cate(gamen .. ' Shadows') else result = result .. cate(gamegn .. ' Shadows') .. cate('Persona 4 Golden Shadows') end end else if game == 'p4g' then result = result .. cate(gamen .. ' Personas') else result = result .. cate(gamegn .. ' Personas') .. cate('Persona 4 Golden Personas') end end end end if gameg == 'pq' then if not prop.arcana then if not prop.drop1 then prop.drop1 = '-' end if not prop.drop2 then prop.drop2 = '-' end if not prop.drop3 then prop.drop3 = '-' end result = result .. styles.table2 .. styleh .. 'width=11.11%|Level' .. styleh .. 'width=11.11%|HP' .. styleh .. 'width=11.11%|Attack' .. styleh .. 'width=11.11%|Defense' .. styleh .. 'width=11.11% title="Strength"|St' .. styleh .. 'width=11.11% title="Magic"|Ma' .. styleh .. 'width=11.11% title="Endurance"|En' .. styleh .. 'width=11.11% title="Agility"|Ag' .. styleh .. 'width=11.11% title="Luck"|Lu\n|-\n' .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.atk .. styles.statlow .. prop.def .. styles.statlow .. prop.str .. styles.statlow .. prop.magic .. styles.statlow .. prop.vit .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. '\n|}' result = result .. styles.table2 .. styleh .. '|Exp' .. styleh .. '|Drop 1' .. styleh .. '|Drop 2' .. styleh if prop.dropc and prop.condition then result = result .. '|Conditional' else result = result .. '|Drop 3' end result = result .. '\n|-\n' .. styles.statlow .. prop.xp .. styles.statlow .. prop.drop1 .. styles.statlow .. prop.drop2 .. styles.statlow if prop.dropc and prop.condition then result = result .. '' .. prop.dropc .. ' '			else result = result .. prop.drop3 end if prop.boss then result = result .. cate(gamegn .. ' Bosses') else result = result .. cate(gamegn .. ' Shadows') end elseif prop.hp or prop.mp then -- sub-persona result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Arcana ' .. styleh .. 'width=10%|Level' .. styleh .. 'title="HP bonus. Replenishes after battle." width=10%|HP +' .. styleh .. 'title="SP bonus. Replenishes after battle." width=10%|SP +' .. styleh .. '|Inherit' .. styleh .. '|' .. spanc .. 'Extract ' .. styleh .. '|' .. spanc .. 'Fragment\n|-\n' if not prop.inherit then prop.inherit = '-' end if not prop.card then prop.card = '-' end if not prop.fragment then prop.fragment = '-' end result = result .. styles.statlow .. getArcana(prop.arcana,gameg,gamen) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow .. prop.inherit .. styles.statlow .. prop.card .. styles.statlow .. prop.fragment .. cate(gamegn .. ' Personas') else -- main persona result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Arcana ' .. styleh .. 'width=10%|Level' .. styleh .. 'width=11.11% title="Strength"|St' .. styleh .. 'width=11.11% title="Magic"|Ma' .. styleh .. 'width=11.11% title="Endurance"|En' .. styleh .. 'width=11.11% title="Agility"|Ag' .. styleh .. 'width=11.11% title="Luck"|Lu\n|-\n' result = result .. styles.statlow .. getArcana(prop.arcana,gameg,gamen) .. styles.statlow .. prop.level .. styles.statlow .. prop.str .. styles.statlow .. prop.magic .. styles.statlow .. prop.vit .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. cate(gamegn .. ' Personas') end result = result .. '\n|}' end if gameg == 'ddsaga1' or gameg == 'ddsaga2' then if not prop.mp then prop.mp = '-' end if not prop.normal then prop.normal = '-' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Race ' .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|MP' .. styleh .. '|Drops\n|-\n' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow .. prop.normal .. '\n|}' .. bossdemoncat(prop.boss,gamen) end if gameg == 'desu1' or gameg == 'desu2' then result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Race ' .. styleh .. 'width=10%|Level' .. styleh .. 'width=10%|HP' .. styleh .. 'width=10%|MP' .. styleh .. 'width=10% title="Strength"|ST' .. styleh .. 'width=10% title="Magic"|MA' .. styleh .. 'width=10% title="Vitality"|VI' .. styleh .. 'width=10% title="Agility"|AG\n|-\n' .. styles.statlow .. getRace(prop.race,gameg) .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow .. prop.str .. styles.statlow .. prop.magic .. styles.statlow .. prop.vit .. styles.statlow .. prop.agl .. '\n|}' if prop.boss then if gameg == 'desu2' and game ~= 'desu2rb' then result = result .. cate(gamegn .. ' Bosses') .. cate('Devil Survivor 2 Record Breaker Bosses') else result = result .. cate(gamen .. ' Bosses') end else if gameg == 'desu2' and game ~= 'desu2rb' then result = result .. cate(gamegn .. ' Demons') .. cate('Devil Survivor 2 Record Breaker Demons') else result = result .. cate(gamen .. ' Demons') end end end if gameg == 'childred' or gameg == 'childps' or gameg == 'childwhite' or gameg == 'childfire' or gameg == 'childlight' then result = result .. styles.table2 .. styleh .. '|Class' .. styleh .. '|Element' .. styleh .. '|' .. spanc .. 'Type' .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|MP' .. styleh .. '|Exp\n|-' .. styles.statlow .. prop.class .. styles.statlow .. prop.etype .. styles.statlow .. prop.race .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. styles.statlow .. prop.xp .. '\n|}' result = result .. styles.table2 .. styleh .. 'width=16.67% title="Attack Power"|ATK' .. styleh .. 'width=16.67% title="Defense"|DEF' .. styleh .. 'width=16.67% title="Magic"|MGC' .. styleh .. 'width=16.67% title="Resistance"|RES' .. styleh .. 'width=16.67% title="Speed"|SPD' .. styleh .. 'width=16.67% title="Luck"|LCK\n|-\n' .. styles.statlow .. prop.atk .. styles.statlow .. prop.def .. styles.statlow .. prop.magic .. styles.statlow .. prop.res .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. '\n|}' if prop.boss or race == 'Boss' then if gameg == 'childlight' then result = result .. cate(getGames.games[gameg].name3 .. ' Bosses') else result = result .. cate(gamen .. ' Bosses') end else if game == 'childblack' or gameg == 'childps' then result = result .. cate('Devil Children PS demons') elseif gameg == 'childwhite' then result = result .. cate(gamen) elseif gameg == 'childred' then result = result .. cate(getGames.games[gameg].name1 .. ' Demons') .. cate(getGames.games[gameg].name2 .. ' Demons') elseif gameg == 'childfire' then result = result .. cate(getGames.games[gameg].name1 .. ' Demons') .. cate(getGames.games[gameg].name2 .. ' Demons') elseif gameg == 'childlight' then result = result .. cate(getGames.games[gameg].name1 .. ' Demons') .. cate(getGames.games[gameg].name2 .. ' Demons') end end result = result .. cate(prop.race .. ' Type') end if gameg == 'childmessiah' then if not prop.number then prop.number = '-' end if not prop.element then prop.element = '-' end if not prop.weak then prop.weak = '-' end if not prop.race then prop.race = '-' end if not prop.level then prop.level = '-' end if not prop.hp then prop.hp = '-' end if not prop.mp then prop.mp = '-' end if not prop.call then prop.call = '-' end if not prop.spell then prop.spell = '-' else if not data.skills[prop.spell] then prop.spell = prop.spell else prop.spell = '' .. prop.spell .. ' '			end end if not prop.spell then prop.spell = prop.spell end result = result .. styles.table2 .. styleh .. '|Number' .. styleh .. '|Element' .. styleh .. '|Weakness' .. styleh .. '|Type' .. styleh .. '|Level' .. styleh .. '|HP' .. styleh .. '|MP\n|-' .. styles.statlow .. prop.number .. styles.statlow .. prop.element .. styles.statlow .. prop.weak .. styles.statlow .. prop.race .. styles.statlow .. prop.level .. styles.statlow .. prop.hp .. styles.statlow .. prop.mp .. '\n|}' result = result .. styles.table2 .. styleh .. 'title="Attack"|ATK' .. styleh .. 'title="Magic"|MGC' .. styleh .. 'title="Defense"|DEF' .. styleh .. 'title="Resistance"|RES' .. styleh .. 'title="Speed"|SPD' .. styleh .. '|Quick' .. styleh .. '|Call' .. styleh .. '|Spell\n|-' .. styles.statlow .. prop.atk .. styles.statlow .. prop.magic .. styles.statlow .. prop.def .. styles.statlow .. prop.res .. styles.statlow .. prop.agl .. styles.statlow .. prop.quick .. styles.statlow .. prop.call .. styles.statlow .. prop.spell .. '\n|}' .. cate(prop.race .. ' Type') .. bossdemoncat(prop.boss,getGames.games[game].name2) end if gameg == 'smtsj' then if not prop.noa then prop.noa = '-' end if not prop.phys then prop.phys = '-' end if not prop.pierce then prop.pierce = '-' end if not prop.fire then prop.fire = '-' end if not prop.ice then prop.ice = '-' end if not prop.elec then prop.elec = '-' end if not prop.wind then prop.wind = '-' end if not prop.expel then prop.expel = '-' end if not prop.curse then prop.curse = '-' end if not prop.alm then prop.alm = '-' end if not prop.poison then prop.poison = '-' end if not prop.paralyze then prop.paralyze = '-' end if not prop.stone then prop.stone = '-' end if not prop.strain then prop.strain = '-' end if not prop.sleep then prop.sleep = '-' end if not prop.charm then prop.charm = '-' end if not prop.mute then prop.mute = '-' end if not prop.fear then prop.fear = '-' end if not prop.bomb then prop.bomb = '-' end if not prop.rage then prop.rage = '-' end result = result .. styles.table2 .. styleh .. '|Attack Type' .. styleh .. 'width=7% title="Physical"|' .. styleh .. 'width=7% title="Gun"|' .. styleh .. 'width=7% title="Fire"|' .. styleh .. 'width=7% title="Ice"|' .. styleh .. 'width=7% title="Electricity"|' .. styleh .. 'width=7% title="Wind"|' .. styleh .. 'width=7% title="Expel"|' .. styleh .. 'width=7% title="Curse"|' .. styleh .. 'width=7% title="Almighty"|\n|-\n' result = result .. styles.statlow .. prop.noa .. styles.statlow .. prop.phys .. styles.statlow .. prop.pierce .. styles.statlow .. prop.fire .. styles.statlow .. prop.ice .. styles.statlow .. prop.elec .. styles.statlow .. prop.wind .. styles.statlow .. prop.expel .. styles.statlow .. prop.curse .. styles.statlow .. prop.alm .. '\n|}' result = result .. styles.table2 .. styleh .. 'width=10%|Poison' .. styleh .. 'width=10%|Paralyze' .. styleh .. 'width=10%|Stone' .. styleh .. 'width=10%|Strain' .. styleh .. 'width=10%|Sleep' .. styleh .. 'width=10%|Charm' .. styleh .. 'width=10%|Mute' .. styleh .. 'width=10%|Fear' .. styleh .. 'width=10%|Bomb' .. styleh .. 'width=10%|Rage\n|-\n' result = result .. styles.statlow .. prop.poison .. styles.statlow .. prop.paralyze .. styles.statlow .. prop.stone .. styles.statlow .. prop.strain .. styles.statlow .. prop.sleep .. styles.statlow .. prop.charm .. styles.statlow .. prop.mute .. styles.statlow .. prop.fear .. styles.statlow .. prop.bomb .. styles.statlow .. prop.rage .. '\n|}' end if gameg == 'desu1' or gameg == 'desu2' then if not prop.racial then prop.racial = '-' end if not prop.phys then prop.phys = '-' end if not prop.fire then prop.fire = '-' end if not prop.ice then prop.ice = '-' end if not prop.elec then prop.elec = '-' end if not prop.force then prop.force = '-' end if not prop.mystic then prop.mystic = '-' end result = result .. styles.table2 .. styleh .. '|' .. spanc .. 'Racial / ' .. spanc .. 'Auto Skill' .. styleh .. 'width=12% title="Physical"| Phys' .. styleh .. 'width=12% title="Fire"| Fire' .. styleh .. 'width=12% title="Ice"| Ice' .. styleh .. 'width=12% title="Electricity"| Elec' .. styleh .. 'width=12% title="Force"| Force' .. styleh .. 'width=12% title=' if gameg == 'desu1' then result = result .. '"Mystic"| Mystic' elseif gameg == 'desu2' then result = result .. '"Curse"| Curse' end result = result .. '\n|-\n' .. styles.statlow .. prop.racial .. styles.statlow .. prop.phys .. styles.statlow .. prop.fire .. styles.statlow .. prop.ice .. styles.statlow .. prop.elec .. styles.statlow .. prop.force .. styles.statlow .. prop.mystic .. '\n|}' end if gameg == 'ronde' or gameg == 'p3' or gameg == 'p4' then if prop.sword or prop.strike or prop.pierce or prop.phys or prop.fire or prop.ice or prop.elec or prop.wind or prop.expel or prop.dark or prop.alm or prop.xp or prop.yen then result = result .. styles.table2 if not prop.sword then prop.sword = '-' end if not prop.strike then prop.strike = '-' end if not prop.pierce then prop.pierce = '-' end if not prop.phys then prop.phys = '-' end if not prop.fire then prop.fire = '-' end if not prop.ice then prop.ice = '-' end if not prop.elec then prop.elec = '-' end if not prop.wind then prop.wind = '-' end if not prop.expel then prop.expel = '-' end if not prop.dark then prop.dark = '-' end if not prop.alm then prop.alm = '-' end if not prop.xp then prop.xp = '-' end if not prop.yen then prop.yen = '-' end if gameg == 'ronde' then result = result .. styleh .. '|Slash' .. styleh .. '|Strike' .. styleh .. '|Ranged' elseif gameg == 'p3' then result = result .. styleh .. '|Slash' .. styleh .. '|Strike' .. styleh .. '|Pierce' elseif gameg == 'p4' then result = result .. styleh .. '|Physical' end result = result .. styleh .. '|Fire' .. styleh .. '|Ice' .. styleh .. 'title="Electricity"|Elec' if gameg == 'p3' or gameg == 'p4' then result = result .. styleh .. '|Wind' end result = result .. styleh .. '|Light' .. styleh .. '|Dark' .. styleh .. '|Almighty' if gameg == 'p4' then result = result .. styleh .. '|EXP' .. styleh .. '|Yen' end result = result .. '\n|-\n' if gameg == 'ronde' or gameg == 'p3' then result = result .. styles.statlow .. prop.sword .. styles.statlow .. prop.strike .. styles.statlow .. prop.pierce elseif gameg == 'p4' then result = result .. styles.statlow .. prop.phys end result = result .. styles.statlow .. prop.fire .. styles.statlow .. prop.ice .. styles.statlow .. prop.elec if gameg == 'p3' or gameg == 'p4' then result = result .. styles.statlow .. prop.wind end result = result .. styles.statlow .. prop.expel .. styles.statlow .. prop.dark .. styles.statlow .. prop.alm if gameg == 'p4' then result = result .. styles.statlow .. prop.xp .. styles.statlow .. prop.yen end result = result .. '\n|}' elseif prop.inherit or prop.resist or prop.block or prop.absorb or prop.reflect or prop.weak then result = result .. styles.table2 if not prop.inherit then prop.inherit = '-' end if not prop.resist then prop.resist = '-' end if not prop.block then prop.block = '-' end if not prop.absorb then prop.absorb = '-' end if not prop.reflect then prop.reflect = '-' end if not prop.weak then prop.weak = '-' else prop.weak = ' ' .. prop.weak .. ' ' end result = result .. styleh .. '|Inherit' .. styleh .. '|Reflects' .. styleh .. '|Absorbs' .. styleh .. '|Block' .. styleh .. '|Resists' .. styleh .. '|Weak\n|-\n' .. styles.statlow .. prop.inherit .. styles.statlow .. prop.reflect .. styles.statlow .. prop.absorb .. styles.statlow .. prop.block .. styles.statlow .. prop.resist .. styles.statlow .. prop.weak .. '\n|}' end end if gameg == 'p3' and (prop.card or prop.preturn) then result = result .. styles.table2 if prop.card then result = result .. styleh .. 'width=100px|' .. spanc .. 'Skill Card ' .. styles.order .. '' .. prop.card .. ' '		end if prop.preturn then result = result .. styleh .. 'width=100px|' .. spanc .. 'Heart Item ' .. styles.order .. prop.preturn end result = result .. '\n|}' end if (gameg == 'p2is' or gameg == 'p2ep') and (prop.exclusive or prop.traits or prop.convo) then result = result .. styles.table2 if prop.exclusive then result = result .. styleh .. 'width=90px|Exclusive to' .. styles.order .. prop.exclusive end if prop.traits then result = result .. styleh .. 'width=50px|' .. spanc .. 'Traits ' .. styles.order .. prop.traits end if prop.convo then result = result .. styleh .. 'width=50px|' .. spanc .. 'Ptalk ' .. styles.order .. prop.convo end result = result .. '\n|}' end if (gameg == 'p2is' or gameg == 'p2ep') and prop.profile then result = result .. styles.table2b .. styles.quote .. '"|' .. mw.text.nowiki(prop.profile) .. '\n|}'	end	result = result .. '\n|}' -- End of image span.	if game == 'kmt1' or game == 'smt1' then 		result = result .. styles.table2 .. styleh .. 'width=100px|Resistances' .. styles.order .. prop.resist .. '\n|}'	end	if gameg == 'p1' and (prop.onehand or prop.twohand or prop.spear or prop.axe or prop.whip or prop.thrown or prop.arrow or prop.fist or prop.handgun or prop.machinegun or prop.shotgun or prop.rifle or prop.tech or prop.rush or prop.fire or prop.ice or prop.wind or prop.earth or prop.elec or prop.nuclear or prop.blast or prop.gravity or prop.expel or prop.miracle or prop.death or prop.curse or prop.nerve or prop.hiero) then		if not prop.onehand then prop.onehand = '-' end		if not prop.twohand then prop.twohand = '-' end		if not prop.spear then prop.spear = '-' end		if not prop.axe then prop.axe = '-' end		if not prop.whip then prop.whip = '-' end if not prop.thrown then prop.thrown = '-' end if not prop.arrow then prop.arrow = '-' end if not prop.fist then prop.fist = '-' end if not prop.handgun then prop.handgun = '-' end if not prop.machinegun then prop.machinegun = '-' end if not prop.shotgun then prop.shotgun = '-' end if not prop.rifle then prop.rifle = '-' end if not prop.tech then prop.tech = '-' end if not prop.rush then prop.rush = '-' end if not prop.fire then prop.fire = '-' end if not prop.ice then prop.ice = '-' end if not prop.wind then prop.wind = '-' end if not prop.earth then prop.earth = '-' end if not prop.elec then prop.elec = '-' end if not prop.nuclear then prop.nuclear = '-' end if not prop.blast then prop.blast = '-' end if not prop.gravity then prop.gravity = '-' end if not prop.expel then prop.expel = '-' end if not prop.miracle then prop.miracle = '-' end if not prop.death then prop.death = '-' end if not prop.curse then prop.curse = '-' end if not prop.nerve then prop.nerve = '-' end if not prop.hiero then prop.hiero = '-' end result = result .. styles.table2 .. '\n!style="background:#a9a9a9" title="Weapons" colspan="8"|\n!title="Firearms" style="background:#898989" colspan="4"|\n!style="background:#a9a9a9" title="Havoc" colspan="2"|\n|-' .. styleh .. 'title="Weapons"|1h ' .. styleh .. 'title="Weapons"|2h ' .. styleh .. 'title="Weapons"|Sp ' .. styleh .. 'title="Weapons"|Ax ' .. styleh .. 'title="Weapons"|Wp ' .. styleh .. 'title="Weapons"|Th ' .. styleh .. 'title="Weapons"|Ar ' .. styleh .. 'title="Weapons"|Fs ' .. styleh .. 'title="Firearms" style="background:#898989;width:7.12%"|HG ' .. styleh .. 'title="Firearms" style="background:#898989;width:7.12%"|MG ' .. styleh .. 'title="Firearms" style="background:#898989;width:7.12%"|<abbr title="Shotgun">SG ' .. styleh .. 'title="Firearms" style="background:#898989;width:7.12%"|<abbr title="Rifle">Ri ' .. styleh .. 'title="Havoc"|<abbr title="Tech">Te ' .. styleh .. 'title="Havoc"|<abbr title="Rush">Ru \n|-\n' .. styles.statlow .. prop.onehand .. styles.statlow .. prop.twohand .. styles.statlow .. prop.spear .. styles.statlow .. prop.axe .. styles.statlow .. prop.whip .. styles.statlow .. prop.thrown .. styles.statlow .. prop.arrow .. styles.statlow .. prop.fist .. styles.statlow .. prop.handgun .. styles.statlow .. prop.machinegun .. styles.statlow .. prop.shotgun .. styles.statlow .. prop.rifle .. styles.statlow .. prop.tech .. styles.statlow .. prop.rush result = result .. '\n|-\n!style="background:#a9a9a9" title="Element" colspan="4"|\n!style="background:#898989" title="Force" colspan="4"|\n!style="background:#a9a9a9" title="Light" colspan="2"|\n!style="background:#898989" title="Dark" colspan="3"|\n!style="background:#a9a9a9" title="Special" colspan="1"|\n|-' .. styleh .. 'width="7.12%" title="Element"|<abbr title="Fire">Fi ' .. styleh .. 'width="7.12%" title="Element"|<abbr title="Ice">Ic ' .. styleh .. 'width="7.12%" title="Element"|<abbr title="Wind">Wi ' .. styleh .. 'width="7.12%" title="Element"|<abbr title="Earth">Er ' .. styleh .. 'style="background:#898989;width:7.12%" title="Force"|<abbr title="Electricity">El ' .. styleh .. 'style="background:#898989;width:7.12%" title="Force"|<abbr title="Nuclear">Nc ' .. styleh .. 'style="background:#898989;width:7.12%" title="Force"|<abbr title="Blast">Bl ' .. styleh .. 'style="background:#898989;width:7.12%" title="Force"|<abbr title="Gravity">Gr ' .. styleh .. 'title="Light"|<abbr title="Expel">Ex ' .. styleh .. 'title="Light"|<abbr title="Miracle">Mi ' .. styleh .. 'style="background:#898989" title="Dark"|<abbr title="Death">De ' .. styleh .. 'style="background:#898989" title="Dark"|<abbr title="Curse">Cu ' .. styleh .. 'style="background:#898989;width:7.12%" title="Dark (Ailments)"|<abbr title="Nerve">Nr ' .. styleh .. 'width="7.12%" title="Special"|<abbr title="Resistance to Hieroglyphein">??? \n|-\n' .. styles.statlow .. prop.fire .. styles.statlow .. prop.ice .. styles.statlow .. prop.wind .. styles.statlow .. prop.earth .. styles.statlow .. prop.elec .. styles.statlow .. prop.nuclear .. styles.statlow .. prop.blast .. styles.statlow .. prop.gravity .. styles.statlow .. prop.expel .. styles.statlow .. prop.miracle .. styles.statlow .. prop.death .. styles.statlow .. prop.curse .. styles.statlow .. prop.nerve .. styles.statlow .. prop.hiero .. '\n|}' end if (gameg == 'p2is' or gameg == 'p2ep') and (prop.atk or prop.def or prop.matk or prop.mdef or prop.str or prop.vit or prop.dex or prop.agl or prop.luc) then result = result .. styles.table2 .. styleh .. 'width=11.1% title="Physical Attack Power"|Atk' .. styleh .. 'width=11.1% title="Physical Defense"|Def' .. styleh .. 'width=11.1% title="Magical Power"|Matk' .. styleh .. 'width=11.1% title="Magical Defense"|Mdef' .. styleh .. 'width=11.1% title="Strength"|' if gameg == 'p2is' then result = result .. 'St' else result = result .. 'STR' end result = result .. styleh .. 'width=11.1% title="Vitality"|' if gameg == 'p2is' then result = result .. 'Vi' else result = result .. 'VIT' end result = result .. styleh .. 'width=11.1% title="'		if gameg == 'p2is' then result = result .. 'Dexterity"|Dx' else result = result .. 'Technique"|TEC' end		result = result .. styleh .. 'width=11.1% title="Agility"|'		if gameg == 'p2is' then result = result .. 'Ag' else result = result .. 'AGI' end		result = result .. styleh .. 'width=11.1% title="Luck"|'		if gameg == 'p2is' then result = result .. 'Lu' else result = result .. 'LUC' end		result = result .. '\n|-\n' .. styles.statlow .. prop.atk .. styles.statlow .. prop.def .. styles.statlow .. prop.matk .. styles.statlow .. prop.mdef .. styles.statlow .. prop.str .. styles.statlow .. prop.vit .. styles.statlow .. prop.dex .. styles.statlow .. prop.agl .. styles.statlow .. prop.luc .. '\n|}'	end	if (gameg == 'smt3' or gameg == 'sh' or gameg == 'p2is' or gameg == 'p2ep' or gameg == 'pq' or gameg == 'ddsaga1' or gameg == 'ddsaga2') and (prop.resist or prop.block or prop.absorb or prop.reflect or prop.weak or prop.boost or prop.wild) then		result = result .. styles.table2 if not prop.resist then prop.resist = '-' end if not prop.block then prop.block = '-' end if not prop.absorb then prop.absorb = '-' end if not prop.reflect then prop.reflect = '-' end if not prop.weak then prop.weak = '-' else prop.weak = ' ' .. prop.weak .. ' ' end result = result .. styleh .. '|Reflects' .. styleh .. '|Absorbs' .. styleh .. '|Void' .. styleh .. '|Resists' .. styleh .. '|Weak' if prop.boost then result = result .. styleh .. '|Boost' elseif prop.wild then result = result .. styleh .. '|Wild Effect' end result = result .. '\n|-\n' .. styles.statlow .. prop.reflect .. styles.statlow .. prop.absorb .. styles.statlow .. prop.block .. styles.statlow .. prop.resist .. styles.statlow .. prop.weak if prop.boost then result = result .. styles.statlow .. prop.boost elseif prop.wild then result = result .. styles.statlow .. prop.wild end result = result .. '\n|}' end if (gameg == 'p2is' or gameg == 'p2ep') and (prop.sword or prop.pierce or prop.strike or prop.thrown or prop.rush or prop.fire or prop.water or prop.wind or prop.earth or prop.ice or prop.elec or prop.nuclear or prop.expel or prop.dark or prop.alm or prop.nerve or prop.mind) then result = result .. styles.table2 if not prop.sword then prop.sword = '-' end if not prop.pierce then prop.pierce = '-' end if not prop.strike then prop.strike = '-' end if not prop.thrown then prop.thrown = '-' end if not prop.rush then prop.rush = '-' end if not prop.fire then prop.fire = '-' end if not prop.water then prop.water = '-' end if not prop.wind then prop.wind = '-' end if not prop.earth then prop.earth = '-' end if not prop.ice then prop.ice = '-' end if not prop.elec then prop.elec = '-' end if not prop.nuclear then prop.nuclear = '-' end if not prop.expel then prop.expel = '-' end if not prop.dark then prop.dark = '-' end if not prop.alm then prop.alm = '-' end if not prop.nerve then prop.nerve = '-' end if not prop.mind then prop.mind = '-' end local Fi, Wt, Wi, Er		if prop.etype == 'Fire' then Fi = ' Fi ' else Fi = 'Fi' end if prop.etype == 'Water' then Wt = ' Wt ' else Wt = 'Wt' end if prop.etype == 'Wind' then Wi = ' Wi ' else Wi = 'Wi' end if prop.etype == 'Earth' then Er = ' Er ' else Er = 'Er' end result = result .. styleh .. 'title="Sword"|Sw' .. styleh .. 'title="Ranged"|Rn' .. styleh .. 'title="Strike"|Sk' .. styleh .. 'title="Thrown"|Th' .. styleh .. 'title="Havoc"|Hv' .. styleh .. 'style="background:#8E283D" title="Fire"|' .. Fi .. styleh .. 'style="background:#8E283D" title="Water"|' .. Wt .. styleh .. 'style="background:#8E283D" title="Wind"|' .. Wi .. styleh .. 'style="background:#8E283D" title="Earth"|' .. Er .. styleh .. 'title="Ice"|Ic' .. styleh .. 'title="Electricity"|El' .. styleh .. 'title="Nuclear"|Nc' .. styleh .. 'title="Light"|Li' .. styleh .. 'title="Dark"|Dk' .. styleh .. 'title="Almighty"|Al' .. styleh .. 'title="Nerve"|Nr' .. styleh .. 'title="Mind"|Mn\n|-\n' result = result .. styles.statlow .. prop.sword .. styles.statlow .. prop.pierce .. styles.statlow .. prop.strike .. styles.statlow .. prop.thrown .. styles.statlow .. prop.rush .. styles.statlow .. prop.fire .. styles.statlow .. prop.water .. styles.statlow .. prop.wind .. styles.statlow .. prop.earth .. styles.statlow .. prop.ice .. styles.statlow .. prop.elec .. styles.statlow .. prop.nuclear .. styles.statlow .. prop.expel .. styles.statlow .. prop.dark .. styles.statlow .. prop.alm .. styles.statlow .. prop.nerve .. styles.statlow .. prop.mind .. '\n|}' end if gameg == 'pq' and (prop.sword or prop.pierce or prop.strike or prop.fire or prop.water or prop.elec or prop.wind or prop.expel or prop.dark or prop.alm or prop.ko or prop.sleep or prop.panic or prop.poison or prop.paralyze or prop.down or prop.stbind or prop.mabind or prop.agbind) then result = result .. styles.table2 if not prop.sword then prop.sword = '-' end if not prop.pierce then prop.pierce = '-' end if not prop.strike then prop.strike = '-' end if not prop.fire then prop.fire = '-' end if not prop.ice then prop.ice = '-' end if not prop.elec then prop.elec = '-' end if not prop.wind then prop.wind = '-' end if not prop.expel then prop.expel = '-' end if not prop.dark then prop.dark = '-' end if not prop.alm then prop.alm = '-' end if not prop.sleep then prop.sleep = '-' end if not prop.panic then prop.panic = '-' end if not prop.poison then prop.poison = '-' end if not prop.curse then prop.curse = '-' end if not prop.paralyze then prop.paralyze = '-' end if not prop.stbind then prop.stbind = '-' end if not prop.mabind then prop.mabind = '-' end if not prop.agbind then prop.agbind = '-' end if not prop.down then prop.down = '-' end if not prop.ko then prop.ko = '-' end result = result .. styleh .. '|Cut' .. styleh .. '|Stab' .. styleh .. '|Bash' .. styleh .. '|Fire' .. styleh .. '|Ice' .. styleh .. 'title="Electricity"|Elec' .. styleh .. '|Wind' .. styleh .. '|Light' .. styleh .. '|Dark' .. styleh .. 'title="Almighty"|Alm\n|-\n' .. styles.statlow .. prop.sword .. styles.statlow .. prop.pierce .. styles.statlow .. prop.strike .. styles.statlow .. prop.fire .. styles.statlow .. prop.ice .. styles.statlow .. prop.elec .. styles.statlow .. prop.wind .. styles.statlow .. prop.expel .. styles.statlow .. prop.dark .. styles.statlow .. prop.alm .. '\n|}' result = result .. styles.table2 .. styleh .. '|Sleep' .. styleh .. '|Panic' .. styleh .. '|Poison' .. styleh .. '|Curse' .. styleh .. '|Paralysis' .. styleh .. 'title="Strength Bind"|St Bind' .. styleh .. 'title="Magic Bind"|Ma Bind' .. styleh .. 'title="Agility Bind"|Ag Bind' .. styleh .. '|Down' .. styleh .. 'title="Instant Kill"|KO\n|-' .. styles.statlow .. prop.sleep .. styles.statlow .. prop.panic .. styles.statlow .. prop.poison .. styles.statlow .. prop.curse .. styles.statlow .. prop.paralyze .. styles.statlow .. prop.stbind .. styles.statlow .. prop.mabind .. styles.statlow .. prop.agbind .. styles.statlow .. prop.down .. styles.statlow .. prop.ko .. '\n|}' end if gameg == 'p2is' or gameg == 'p2ep' then if prop.card or prop.material or prop.type1 or prop.type2 or prop.type3 then result = result .. styles.table2 .. styleh .. 'colspan=4|Summon Information\n|-' if prop.material then result = result .. styles.skill .. '' .. spanc .. 'Material Card ' .. styles.effect1 .. ' ' .. prop.material .. ' Card' end if prop.card then result = result .. styles.skillc .. '' .. spanc .. 'Tarot Cards ' .. styles.effect1 .. ' ' .. prop.card .. ' ' .. prop.arcana .. ' Cards' end local effect1 if prop.material then effect1 = '\n|colspan=3 style="background:#222;text-align:left"|' else effect1 = styles.effect1 end if prop.type1 then result = result .. styles.skill .. prop.type1 .. effect1 .. prop.desc1 end if prop.type2 then result = result .. styles.skill .. prop.type2 .. effect1 .. prop.desc2 end if prop.type3 then result = result .. styles.skill .. prop.type3 .. effect1 .. prop.desc3 end result = result .. '\n|}' end end if gameg == 'smt3' then prop.recruit = prop.recruit:lower if prop.recruit == 'yes' or prop.recruit == 'recruit' then prop.recruit = '<abbr title="Can be recruited in normal battle or obtained from conventional fusion.">Normal recruit or fusion ' elseif prop.recruit == 'dark recruit' then prop.recruit = '<abbr title="Can be obtained via conventional fusion or recruited in normal battle under Full Kagutsuchi with fair chance.">Full Kagutsuchi recruitment or fusion ' elseif prop.recruit == 'dark' then prop.recruit = '<abbr title="Can only be obtained via fusion. Open to non-recruitment conversation in normal battle.">Fusion only. Open to trading. '		elseif prop.recruit == 'fusion' then prop.recruit = '<abbr title="Can only be obtained via conventional fusion.">Fusion only ' elseif prop.recruit == 'special' or prop.recruit == 'special fusion' then prop.recruit = '<abbr title="Can only be obtained via special fusion.">Special fusion only ' elseif prop.recruit == 'evolve' or prop.recruit == 'evolution' then prop.recruit = '<abbr title="Can only be obtained via evolution from another demon.">Evolution only ' elseif prop.recruit == 'evolve neutral' or prop.recruit == 'neutral evolution' then prop.recruit = '<abbr title="Can be recruited in normal battle or obtained via evolution from another demon. Cannot be created via fusion.">Normal recruit or evolution ' elseif prop.recruit == 'evolve dark' or prop.recruit == 'dark evolution' then prop.recruit = '<abbr title="Can only be obtained via evolution from another demon. Cannot be created via fusion. Open to non-recruitment conversation in normal battle.">Evolution only. Open to trading. '		elseif prop.recruit == 'boss fusion' then prop.recruit = '<abbr title="Can only be obtained via fusion after defeating it in boss battle.">Fusion only after boss battle ' elseif prop.recruit == 'boss special' or prop.recruit == 'boss special fusion' then prop.recruit = '<abbr title="Can only be obtained via special fusion after defeating it in boss battle.">Special fusion only after boss battle ' elseif prop.recruit == 'boss evolve' or prop.recruit == 'boss evolution' then prop.recruit = '<abbr title="Can only be obtained via evolution after defeating it in battle.">Evolution only after boss battle ' elseif prop.recruit == 'dark boss fusion' then prop.recruit = '<abbr title="Can only be obtained via fusion after defeating it in boss battle. Open to non-recruitment conversation in normal battle.">Fusion only after boss battle. Open to trading. '		elseif prop.recruit == 'dark boss special fusion' then prop.recruit = '<abbr title="Can only be obtained via special fusion after defeating it in boss battle. Open to non-recruitment conversation in normal battle.">Special fusion only after boss battle. Open to trading. '		elseif prop.recruit == 'dark boss evolve' then prop.recruit = '<abbr title="Can only be obtained via evolution after defeating it in battle. Open to non-recruitment conversation in normal battle.">Evolution only after boss battle. Open to trading. '		elseif prop.recruit == 'samael' then prop.recruit = '<abbr title="Can only be obtained via special fusion after defeating it in boss battle or choosing Shijima Reason after meeting with Ahriman in Kagutsuchi Tower.">Choose Shijima Reason or perform special fusion only after boss battle. '		elseif prop.recruit == 'thor' then prop.recruit = '<abbr title="Can only be obtained via fusion after defeating him at Tower of Kagutsuchi.">Fusion only after boss battle at Tower of Kagutsuchi ' elseif prop.recruit == 'bishamon' then prop.recruit = '<abbr title="Can only be obtained via fusion after defeating him at Bandou Shrine.">Fusion only after boss battle at Bandou Shrine ' elseif prop.recruit == 'futomimi' or prop.recruit == 'sakahagi' then prop.recruit = 'Fusion only after boss battle and completing the revival side quest.' elseif prop.recruit == 'raidou' or prop.recruit == 'dante' then prop.recruit = '<abbr title="Can only be recruited in story plot.">Plot related ' elseif prop.recruit == 'unique' or prop.recruit == 'exclusive' or prop.recruit == 'enemy' or prop.recruit == 'enemy only' or prop.recruit == 'enemy exclusive' then prop.recruit = 'Enemy only' end if prop.recruit or prop.convo then result = result .. styles.table2 .. styleh if prop.recruit then result = result .. 'width=100px|Obtainable' .. styles.order .. prop.recruit end if prop.convo then result = result .. 'width=200px|'..spanc..'Special conversation ' .. styles.order .. prop.convo end result = result .. '\n|}' end if prop.evolvef or prop.evolvet or prop.fusion then result = result .. styles.table2 if prop.evolvef then result = result .. styleh .. 'width=100px|' .. spanc .. 'Evolved from ' .. styles.order .. prop.evolvef end if prop.evolvet then result = result .. styleh .. 'width=100px|' .. spanc .. 'Evolves into ' .. styles.order .. prop.evolvet end if prop.fusion then result = result .. styleh .. 'width=100px|' .. spanc .. 'Special fusion ' .. styles.order .. prop.fusion end result = result .. '\n|}' end end if prop.dskills then result = result .. styleh .. 'colspan=4|' .. spanc .. 'Default Skills ' .. styles.skill .. 'Skill' .. styles.skillc .. 'Cost' .. styles.skillc .. 'Effect' for k, v in ipairs(mw.text.split(prop.dskills, '\n')) do			local dskill = data.skills[v] if not dskill then local dalias = data.aliases[v] if dalias then v = dalias dskill = data.skills[v] end end local dskillcell, dcost, deffect if v == '' then dskillcell = '' dcost = '' deffect = noskill elseif not dskill then dskillcell = '' dcost = '' deffect = noskill(v,gamed) elseif dskill then dcost = dskill.cost deffect = dskill.effect if (k % 2 == 0) then dcost = styles.cost2 .. dcost deffect = styles.effect2 .. deffect else dcost = styles.cost1 .. dcost deffect = styles.effect1 .. deffect end if dskill.name then v = dskill.name end dskillcell = styles.skill .. v			end result = result .. dskillcell .. dcost .. deffect end end if prop.skills then result = result .. styles.table2 if game == 'mt1' or game == 'mt2' or game == 'kmt1' or game == 'kmt2' then result = result .. styleh .. 'colspan=4|' .. spanc .. 'List of Spells ' elseif game == 'smtim' then result = result .. styleh .. 'colspan=4|' .. spanc .. 'Learned Skills ' elseif gameg == 'p5' then result = result .. '\n!colspan=4 style="background-color: ' .. getGames.games[gameg].colorb .. ';background: linear-gradient(120deg, ' .. getGames.games[gameg].colorb .. ' 42%, #000 42.1%, #000 43%, #fff 43.1%, #fff 57%, #000 57.1%, #000 58%, ' .. getGames.games[gameg].colorb .. ' 58.1%"| List of Skills '		elseif gameg == 'smtsj' then			result = result .. styleh .. 'colspan=3|' .. spanc .. 'Natural Skills'		elseif gameg == 'desu1' or gameg == 'desu2' then			result = result .. styleh .. 'colspan=3|' .. spanc .. 'Command Skills'		else			result = result .. styleh .. 'colspan=4|' .. spanc .. 'List of Skills '		end		if (game == 'kmt1' and not (prop.enemy or prop.boss)) or (game == 'kmt2' and not (prop.enemy or prop.boss)) or (gameg == 'smt1' and not (prop.enemy or prop.boss)) or (gameg == 'smt2' and not (prop.enemy or prop.boss)) or (gameg == 'smtif' and not (prop.enemy or prop.boss)) or (gameg == 'smt3' and (prop.enemy or prop.boss)) then -- skill - cost - effect result = result .. styles.skill .. 'Skill' .. styles.skillc .. 'Cost' .. styles.skillc .. 'Effect' for k, v in ipairs(mw.text.split(prop.skills, '\n')) do				local skill = data.skills[v] if not skill then local alias = data.aliases[v] if alias then v = alias skill = data.skills[v] end end local skillcell, cost, effect if v == '' then skillcell = '' cost = '' effect = noskill elseif not skill then skillcell = '' cost = '' effect = noskill(v,gamed) elseif skill then if skill.phy then cost = 'none' else cost = skill.cost end effect = skill.effect if (k % 2 == 0) then cost = styles.cost2 .. cost effect = styles.effect2 .. effect else cost = styles.cost1 .. cost effect = styles.effect1 .. effect end if skill.name then v = skill.name end skillcell = styles.skill .. v				end result = result .. skillcell .. cost .. effect end elseif (gameg == 'smt4' and prop.guest == '2') or ((gameg == 'p1' or gameg == 'p2is' or gameg == 'p2ep' or gameg == 'p3' or gameg == 'p4') and prop.hp) or gameg == 'ddsaga1' or gameg == 'ddsaga2' or (gameg == 'pq' and prop.xp) or prop.boss or prop.enemy then -- skill - effect (optional: Inheritable Skill or Rumor Skill) result = result .. styles.skill .. 'Skill' .. styles.skillc .. 'Effect' for k1, v1 in ipairs(mw.text.split(prop.skills, '\n')) do for k2, v2 in ipairs(mw.text.split(v1 .. '\\', '\\')) do					if k2 > 2 then break elseif (k2 % 2 == 1) then local skill = data.skills[v2] if not skill then local alias = data.aliases[v2] if alias then v2 = alias skill = data.skills[v2] end end local skillcell, effect if v2 == '' then skillcell = '' effect = noskill elseif not skill then skillcell = '' effect = noskill(v2,gamed) elseif skill then if (k1 % 2 == 0) then effect = styles.effect2 .. skill.effect else effect = styles.effect1 .. skill.effect end if skill.name then v2 = skill.name end skillcell = styles.skill .. v2						end result = result .. skillcell .. effect elseif (k2 % 2 == 0) then if v2 == 'I' or v2 == 'i' then result = result .. ' Inheritable Skill ' elseif v2 == 'R' or v2 == 'r' then result = result .. ' Rumor Skill  ' else result = result end end end end elseif gameg == 'childlight' then -- skill - element - cost - effect result = result .. styles.skill .. 'Skill' .. styles.skillc .. 'Element' .. styles.skillc .. 'Cost' .. styles.skillc .. 'Effect' for k, v in ipairs(mw.text.split(prop.skills, '\n')) do				local skill = data.skills[v] if not skill then local alias = data.aliases[v] if alias then v = alias skill = data.skills[v] end end local skillcell, skille, cost, effect if v == '' then skillcell = '' skille = '' cost = '' effect = noskill elseif not skill then skillcell = '' skille = '' cost = '' effect = noskill(v,gamed) elseif skill then if (k % 2 == 0) then effect = styles.effect2 .. skill.effect skille = styles.cost2 .. skill.element cost = styles.cost2 .. skill.cost else effect = styles.effect1 .. skill.effect skille = styles.cost1 .. skill.element cost = styles.cost1 .. skill.cost end if skill.name then v = skill.name end skillcell = styles.skill .. v				end result = result .. skillcell .. skille .. cost .. effect end else if gameg == 'smtim' or gameg == 'p1' or gameg == 'p2is' or gameg == 'p2ep' then -- rank - skill - effect result = result .. styles.skill if gameg == 'smtim' then result = result .. 'Level' else result = result .. 'Rank' end result = result .. styles.skillc .. 'Skill' .. styles.skillc .. 'Effect' for k1, v1 in ipairs(mw.text.split(prop.skills, '\n')) do for k2, v2 in ipairs(mw.text.split(v1 .. '\\', '\\')) do						if k2 > 2 then break elseif (k2 % 2 == 1) then if v2 == 'M' or v2 == 'm' then v2 = ' Mutation ' elseif v2 == 'R' or v2 == 'r' then v2 = ' Rumor ' else v2 = v2							end result = result .. styles.skill .. v2						elseif (k2 % 2 == 0) then local skill = data.skills[v2] if not skill then local alias = data.aliases[v2] if alias then v2 = alias skill = data.skills[v2] end end local skillcell, effect if v2 == '' then skillcell = '' effect = noskill elseif not skill then skillcell = '' effect = noskill(v2,gamed) elseif skill then if (k1 % 2 == 0) then effect = styles.effect2 .. skill.effect else effect = styles.effect1 .. skill.effect end if skill.name then v2 = skill.name end skillcell = styles.skillc .. v2							end result = result .. skillcell .. effect end end end elseif game == 'mt1' or game == 'mt2' or gameg == 'giten' or gameg == 'smtsj' or gameg == 'lb2' or gameg == 'smtds' or gameg == 'sh' or gameg == 'childred' or gameg == 'childblack' or gameg == 'childps' or gameg == 'childblack' or gameg == 'childwhite' or gameg == 'childfire' or gameg == 'childice' or gameg == 'desu1' or gameg == 'desu2' then result = result .. '\n|-style="border:0"\n|style="padding:0;width:33%"|\n|style="padding:0;width:33%"|\n|style="padding:0;width:33%"|' for k, v in ipairs(mw.text.split(prop.skills, '\n')) do					local skill = data.skills[v] if not skill then local alias = data.aliases[v] if alias then v = alias skill = data.skills[v] end end local skillcell if v == '' or v == '-' or v == '--' then skillcell = '' elseif not skill then skillcell = styles.skill3 .. '"|' .. v					else						if skill.name then v = skill.name end						skillcell = styles.skill3 .. '" title="Cost: ' .. skill.cost .. '; ' .. string.gsub(string.gsub(skill.effect, '%[%[', ), '%]%]', ) .. '"|' .. v					end if (k == 7) then result = result .. '\n|-' .. styles.skill3m .. skillcell .. styles.skill3m elseif (k % 3 == 1) then result = result .. '\n|-' .. skillcell else result = result .. skillcell end end elseif gameg == 'lb1' or gameg == 'lb3' or gameg == 'ab' or gameg == 'lbs' or gameg == 'majin1' or gameg == 'majin2' or gameg == 'ronde' then result = result .. '\n|-style="border:0"\n|style="padding:0;width:33%"|\n|style="padding:0;width:33%"|\n|style="padding:0;width:33%"|' for k, v in ipairs(mw.text.split(prop.skills, '\n')) do					local skillcell if v == '' or v == '-' or v == '--' then skillcell = '' else skillcell = styles.skill3 .. '"|' .. v					end					if (k == 7) then						result = result .. '\n|-' .. styles.skill3m .. skillcell .. styles.skill3m					elseif (k % 3 == 1) then						result = result .. '\n|-' .. skillcell					else						result = result .. skillcell					end				end			else -- skill - cost - effect - level				result = result .. styles.skill .. 'Skill'				if not (gameg == 'smt4' and prop.guest == '1') then					result = result .. styles.skillc .. 'Cost' .. styles.skillc .. 'Effect' .. styles.skillc .. 'Level'				else					result = result .. styles.skillc .. 'Effect' .. styles.skillc .. 'Level'				end				for k1, v1 in ipairs(mw.text.split(prop.skills, '\n')) do -- Any entry on new line within "Skills" parameter is treated as new skill name.					for k2, v2 in ipairs(mw.text.split(v1 .. '\\', '\\')) do -- Entry after backslash after skill name is treated as "level" for learning new skill per level gain. Any entry starting from second backslash on the same line is ignored until a new line. if k2 > 2 then break elseif (k2 % 2 == 1) then -- this checks level (false) or skill name (true) divided by the backslash. local skill = data.skills[v2] -- now v2 represents skill name. if not skill then local alias = data.aliases[v2] if alias then v2 = alias skill = data.skills[v2] end end local skillcell, cost, effect if v2 == '' then skillcell = '' cost = '' effect = noskill elseif not skill then skillcell = '' cost = '' effect = noskill(v2,gamed) elseif skill then if gameg == 'smt3' then if skill.cost == 'Convo' then cost = '<abbr title="Active conversational skill without HP or MP cost. Ineffective to Corpus, Haunt, Wilder, Foul, Light-tendency demons, bosses and all enemies in Labyrinth of Amala.">Convo ' elseif skill.cost == 'Interrupt' then cost = '<abbr title="Interruption skill is only triggered when certain conversational effect occurs.">Interrupt ' else cost = skill.cost end else cost = skill.cost end if (k1 % 2 == 0) then cost = styles.cost2 .. cost effect = styles.effect2 .. skill.effect else cost = styles.cost1 .. cost effect = styles.effect1 .. skill.effect end if skill.name then v2 = skill.name end skillcell = styles.skill .. v2							end if not (gameg == 'smt4' and prop.guest == '1') then result = result .. skillcell .. cost .. effect else result = result .. skillcell .. effect end elseif (k2 % 2 == 0) then -- this checks level (ture) or skill name (false) divided by the backslash. if v2 == 'innate' or v2 == 'default' or v2 == 'Default' -- now v2 represents skill level. then v2 = 'Innate' end if (k1 % 2 == 0) then -- this checks even (true) or odd (false) number row. result = result .. styles.cost2 .. v2 -- "v2" represents "Level" within "Skills" parameter on each new line after the backslash. else result = result .. styles.cost1 .. v2							end end end end end end result = result .. '\n|}' end if prop.fskills then result = result .. styles.table2 .. styleh .. 'colspan="5"' if gameg == 'p2is' or gameg == 'p2ep' then result = result .. '|' .. spanc .. 'Unique Fusion Spells ' .. styles.skill .. 'Skill' .. styles.skillc .. 'Effect' .. styles.skillc .. 'Order/Skill/Persona' for k, v in ipairs(mw.text.split(prop.fskills, '\n')) do				local fskill = data.skills[v] if not fskill then local falias = data.aliases[v] if falias then v = falias fskill = data.skills[v] end end local fskillcell, feffect, fcost if v == '' then fskillcell = '' fcost = '' feffect = noskill elseif not fskill then fskillcell = '' fcost = '' feffect = noskill(v,gamed) elseif fskill then if (k % 2 == 0) then feffect = styles.effect2 .. fskill.effect else feffect = styles.effect1 .. fskill.effect end if fskill.name then v = fskill.name end fskillcell = styles.skill .. v fcost = styles.order .. fskill.cost end result = result .. fskillcell .. feffect .. fcost end elseif gameg == 'p3' then local fcost, feffect, pre if not data.skills[prop.fskills] then fcost = '' feffect = noskill(prop.fskills,gamed) pre = '' fskills = '' else fcost = styles.cost1 .. data.skills[prop.fskills].cost feffect = styles.effect1 .. data.skills[prop.fskills].effect pre = styles.cost1 .. data.skills[prop.fskills].pre prop.fskills = styles.skill .. prop.fskills end result = result .. '|' .. spanc .. 'Fusion Spell <abbr title="Persona 3 and FES only; Portable uses items and does not require the participating personas to be in stock">* ' .. styles.skill .. 'Skill' .. styles.skillc .. 'Cost' .. styles.skillc .. 'Effect' .. styles.skillc .. '<abbr title="Persona 3 and FES only">Prerequisite ' .. prop.fskills .. fcost .. feffect .. pre elseif gameg == 'childlight' then result = result .. '|' .. spanc .. 'Combos ' .. styles.skill .. 'Combo' .. styles.skillc .. 'Element' .. styles.skillc .. 'Cost' .. styles.skillc .. 'Effect' .. styles.skillc .. 'Partner' for k1, v1 in ipairs(mw.text.split(prop.fskills, '\n')) do for k2, v2 in ipairs(mw.text.split(v1 .. '\\', '\\')) do -- Entry after backslash after skill name is treated as "partner" if k2 > 2 then break elseif (k2 % 2 == 1) then -- this checks partner (false) or skill name (true) divided by the backslash. local combo = data.skills[v2] -- now v2 represents skill name. if not combo then local calias = data.aliases[v2] if alias then v2 = calias combo = data.skills[v2] end end local ccell, celement, ccost, ceffect if v2 == '' then ccell = '' celement = '' ccost = '' ceffect = noskill elseif not combo then ccell = '' celement = '' ccost = '' ceffect = noskill(v2,gamed) elseif combo then celement = combo.element ccost = combo.cost ceffect = combo.effect if (k1 % 2 == 0) then celement = styles.cost2 .. celement ccost = styles.cost2 .. ccost ceffect = styles.effect2 .. ceffect else celement = styles.cost1 .. celement ccost = styles.cost1 .. ccost ceffect = styles.effect1 .. ceffect end if combo.name then v2 = combo.name end ccell = styles.skill .. v2						end result = result .. ccell .. celement .. ccost .. ceffect elseif (k2 % 2 == 0) then -- this checks partner (ture) or skill name (false) divided by the backslash. if v2 == '' or not v2 then -- now v2 represents partner. v2 = '' end if (k1 % 2 == 0) then -- this checks even (true) or odd (false) number row. result = result .. styles.cost2 .. v2 -- "v2" represents "partner" within "Skills" parameter on each new line after the backslash. else result = result .. styles.cost1 .. v2						end end end end end result = result .. '\n|}' end if prop.pskills then if gameg == 'smtsj' then result = result .. styles.table2 .. styleh .. 'colspan=3|D-Source Skills' else result = result .. styles.table2 .. styleh .. 'colspan=3|' .. spanc .. 'Passive Skills ' end result = result .. '\n|-style="border:0"\n|style="padding:0;width:33%"|\n|style="padding:0;width:33%"|\n|style="padding:0;width:33%"|' for k, v in ipairs(mw.text.split(prop.pskills, '\n')) do			local pskill = data.skills[v] if not pskill then local palias = data.aliases[v] if palias then v = palias pskill = data.skills[v] end end local pskillcell if v == '' or v == '-' or v == '--' then pskillcell = '' elseif not pskill then pskillcell = styles.skill3 .. '"|' .. v			else				if pskill.name then v = pskill.name end				pskillcell = styles.skill3 .. '" title="Cost: ' .. pskill.cost .. '; ' .. pskill.effect .. '"|' .. v			end if (k % 3 == 1) then result = result .. '\n|-' .. pskillcell else result = result .. pskillcell end end result = result .. '\n|}' end if (gameg == 'smtsj' or gameg == 'desu1' or gameg == 'desu2') and (prop.askills or prop.apskills) then if gameg == 'smtsj' then result = result .. styles.table2 .. styleh .. 'colspan=3|Item Drops' else result = result .. styles.table2 .. styleh .. 'colspan=3|List of Auction Skills' end result = result .. '\n|-style="border:0"\n|style="padding:0;width:33%"|\n|style="padding:0;width:33%"|\n|style="padding:0;width:33%"|' if prop.askills then for k, v in ipairs(mw.text.split(prop.askills, '\n')) do				local askill = data.skills[v] if not askill then local aalias = data.aliases[v] if alias then v = aalias askill = data.skills[v] end end local askillcell if v == '' or v == '-' or v == '--' then askillcell = '' elseif not askill then askillcell = styles.skill3 .. '"|' .. v				else					if askill.name then v = askill.name end					askillcell = styles.skill3 .. '" title="Cost: ' .. askill.cost .. '; ' .. askill.effect .. '"|' .. v				end if (k % 3 == 1) then result = result .. '\n|-' .. askillcell else result = result .. askillcell end end end if prop.apskills then for k, v in ipairs(mw.text.split(prop.apskills, '\n')) do				local apskill = data.skills[v] if not apskill then local apalias = data.aliases[v] if apalias then v = apalias apskill = data.skills[v] end end local apskillcell if v == '' or v == '-' or v == '--' then apskillcell = '' elseif not apskill then apskillcell = styles.skill3 .. '"|' .. v				else					if apskill.name then v = apskill.name end					apskillcell = styles.skill3 .. '" title="Cost: ' .. apskill.cost .. '; ' .. apskill.effect .. '"|' .. v				end if (k % 3 == 1) then result = result .. '\n|-' .. apskillcell else result = result .. apskillcell end end end result = result .. '\n|}' end if gameg == 'p2ep' and prop.unknown then result = result .. styles.table2 .. styleh .. 'colspan="2"|' .. spanc .. 'Unknown Power ' .. styles.skill if prop.unknown == 'attack type' or prop.unknown == 'attack-type' or prop.unknown == 'attack' or prop.unknown == 'Attack' or prop.unknown == 'Attack-type' or prop.unknown == 'Attack-Type' then result = result .. 'Attack Type' .. styles.cost1 .. 'Deals <abbr title="Equipper has ' .. "'Great'" .. ' affinity with the Persona">500 or <abbr title="Equipper has ' .. "'Good'" .. ' affinity with the Persona">250 non-elemental damage to all enemies.' elseif prop.unknown == 'defense type' or prop.unknown == 'defense-type' or prop.unknown == 'defense' or prop.unknown == 'Defense' or prop.unknown == 'Defense-type' or prop.unknown == 'Defense-Type' then result = result .. 'Defense Type' .. styles.cost1 .. '<abbr title="Equipper has ' .. "'Great'" .. ' affinity with the Persona">Reflects or <abbr title="Equipper has ' .. "'Good'" .. ' affinity with the Persona">nullifies the incoming attack.' elseif prop.unknown == 'assist type' or prop.unknown == 'assist-type' or prop.unknown == 'assist' or prop.unknown == 'Assist' or prop.unknown == 'Assist-type' or prop.unknown == 'Assist-Type' then result = result .. 'Assist Type' .. styles.cost1 .. 'Bestows Tarukaja + Makakaja <abbr title="Only applicable when the equipper has ' .. "'Great'" .. ' affinity with the Persona">(or Rakukaja + Samakaja in addition) ' elseif prop.unknown == 'recovery type' or prop.unknown == 'recovery-type' or prop.unknown == 'recovery' or prop.unknown == 'Recovery' or prop.unknown == 'Recovery-type' or prop.unknown == 'Recovery-Type' then result = result .. 'Recovery Type' .. styles.cost1 .. 'Fully recovers HP <abbr title="Only applicable when the equipper has ' .. "'Great'" .. ' affinity with the Persona">(or removes ailment in addition) .' elseif prop.unknown == 'revival type' or prop.unknown == 'revival-type' or prop.unknown == 'revival' or prop.unknown == 'Revival' or prop.unknown == 'Revival-type' or prop.unknown == 'Revival-Type' then result = result .. 'Revival Type' .. styles.cost1 .. 'Revives from unconscious with <abbr title="Equipper has ' .. "'Great'" .. ' affinity with the Persona">full or <abbr title="Equipper has ' .. "'Good'" .. ' affinity with the Persona">1/4 HP.' elseif prop.unknown == 'special type' or prop.unknown == 'special-type' or prop.unknown == 'special' or prop.unknown == 'Special' or prop.unknown == 'Special-type' or prop.unknown == 'Special-Type' then result = result .. 'Special Type' .. styles.cost1 .. 'Eliminates all enemies when the user is unconscious.' end result = result .. '\n|}' end if gameg == 'childlight' and prop.power ~= '' then local pelement, peffect if not data.skills[prop.power] then prop.power = noskill(prop.power,gamed) pelement = '' peffect = '' else pelement = styles.cost1 .. data.skills[prop.power].element peffect = styles.effect1 .. data.skills[prop.power].effect prop.power = styles.skill .. prop.power end result = result .. styles.table2 .. styleh .. 'colspan=3|' .. spanc .. 'Power \n|-' .. styles.skill .. 'Power' .. styles.skillc .. 'Type' .. styles.skillc .. 'Effect' .. prop.power .. pelement .. peffect .. '\n|}' end if (gameg == 'desu1' or gameg == 'desu2') and (prop.quote or prop.profile) then result = result .. styles.table2 if prop.quote then result = result .. styles.quote .. 'font-style:italic"|' .. string.gsub(prop.quote, '!!', '‼') end		if prop.profile then result = result .. '\n|-' .. styles.quote .. 'font-style:italic"|' .. string.gsub(prop.profile, '!!', '‼') end result = result .. '\n|}' end if game == 'smtsj' and prop.profile then result = result .. styles.table2 .. styleh .. '|Password' .. styles.quote .. 'font-weight:bold;font-family:Courier New,sans-serif;font-size:1.6em"|' .. prop.profile .. '\n|}'	end	result = result .. '\n|}'	return result end p.row = makeInvokeFunction('_row') function p._row(args)	local row = args[1]	local game = args[2]	local code = args[3]	if not code or code ==  then return  end	local level = args[4]	if not level then level = '' end	if level == 'innate' or level == 'default' or level == 'Default' then level = 'Innate' end	local data = require('Module:Skills/' .. game)	local skill = data.skills[code]	if not skill then		local alias = data.aliases[code]		if alias then			code = alias			skill = data.skills[code]		else 			return noskill(code,game)		end	end	if skill.name then code = skill.name end	local skillcell = styles.skill .. code	local cost = skill.cost	if game == 'SMT3' then		cost = '<abbr title="Active conversational skill without HP or MP cost. Ineffective to Corpus, Haunt, Wilder, Foul, Light-tendency demons, bosses and all enemies in Labyrinth of Amala.">Convo '	elseif skill.cost == 'Interrupt' then		cost = '<abbr title="Interruption skill is only triggered when certain conversational effect occurs.">Interrupt '	end	local cost1 = '\n||' .. cost	local cost2 = styles.cost2 .. cost	local effect1 = styles.effect1 .. skill.effect	local effect2 = styles.effect2 .. skill.effect	local order = styles.order .. skill.cost	local element1, element2	if skill.element then		element1 = '\n||' .. skill.element or 		element2 = styles.cost2 .. skill.element or 	end	local level1, level2	if skill.pre then		level1 = '\n||' .. skill.pre		level2 = styles.cost2 .. skill.pre	elseif level == '' then		level1 = '\n||'		level2 = styles.cost2	elseif level then		level1 = '\n||' .. level		level2 = styles.cost2 .. level	end	local result	if row == 'r01' then result = skillcell .. effect1 -- Odd number row for enemy whose skill cost is irrelevant. elseif row == 'r02' then result = skillcell .. effect2 -- Even number row for enemy whose skill cost is irrelevant. elseif row == 'r11' then if game == 'SMT3' and skill.phy then result = skillcell .. styles.effect1p .. skill.effect -- Odd number row for enemy whose physical skills cost no HP. else result = skillcell .. cost1 .. effect1 -- Odd number row for demon which does not learn new skill on level gain. end elseif row == 'r12' then if game == 'SMT3' and skill.phy then result = skillcell .. styles.effect2p .. skill.effect -- Even number row for enemy whose physical skills cost no HP. else result = skillcell .. cost2 .. effect2 -- Even number row for demon which does not learn new skill on level gain. end elseif row == 'r21' then result = skillcell .. cost1 .. effect1 .. level1 -- Odd number row for demon/persona which learn new skill on level gain. elseif row == 'r22' then result = skillcell .. cost2 .. effect2 .. level2 -- Even number row for demon/persona which learn new skill on level gain. elseif row == 'r31' then result = skillcell .. effect1 .. level1 -- Odd number row for guest who learn new skill on level gain. elseif row == 'r32' then result = skillcell .. effect2 .. level2 -- Even number row for guest who learn new skill on level gain. elseif row == 'p12' then result = styles.skill .. level .. styles.skillc .. code .. effect1 -- Row for Persona 1 and 2 persona elseif row == 'rf' then result = skillcell .. effect1 .. order -- Row for Persona-specific fusion spell. elseif row == 'dk1' then result = skillcell .. element1 .. cost1 .. effect1 -- Odd number row for DemiKids stats skill list. elseif row == 'dk2' then result = skillcell .. element2 .. cost2 .. effect2 -- Odd number row for DemiKids stats skill list. elseif row == 'dkc1' then result = skillcell .. level1 .. element1 .. cost1 .. effect1 -- Odd number row for DemiKids stats combo skill list. elseif row == 'dkc2' then result = skillcell .. level2 .. element2 .. cost2 .. effect2 -- Odd number row for DemiKids stats combo skill list. elseif row == 'dkp' then result = skillcell .. element2 .. effect2 -- row for DemiKids powers. else result = '<strong style="color:red;font-size:150%">Invalid parameter 1 of ' .. '"' .. row .. '". ' .. cate('Templates with unrecognizable row value for Module:Skills') end return result end

return p -- --