Module:Summary hero: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Mixorio (talk | contribs)
Created page with "function setDefault (t, d) local mt = {__index = function () return d end} setmetatable(t, mt) end local Summary = { --hero_(.*)_role ['English'] = { ["Abrams"] = "Charges into close combat", ["Bebop"] = "Hooks an enemy for a knockout combo", ["Calico"] = "Wreaks havoc from the sidelines", ["Dynamo"] = "Locks down the enemy team", ["Grey Talon"] = "Delivers long range skill-shots", ["Haze"] = "Sneaks in and sprays bullets", ["Holliday"] = "Bounces about dispen..."
 
add translation for zh-hant
 
Line 61: Line 61:
["Wrecker"] = "Salvages scrap to create weapons",
["Wrecker"] = "Salvages scrap to create weapons",
["Yamato"] = "Изящно выполняет мощные атаки",
["Yamato"] = "Изящно выполняет мощные атаки",
},
['zh-hant'] = {
    ["Abrams"] = "衝入近距離戰鬥",
    ["Bebop"] = "鉤住擊倒組合拳",
    ["Calico"] = "在場邊肆虐",
    ["Dynamo"] = "大範圍控制敵人",
    ["Grey Talon"] = "提供遠距離技術射擊",
    ["Haze"] = "偷襲並傾瀉子彈",
    ["Holliday"] = "蹦蹦跳跳施展絕技",
    ["Infernus"] = "點燃敵人使他們持續燃燒",
    ["Ivy"] = "與幸運盟友組成強力二人組",
    ["Kali"] = "無",
    ["Kelvin"] = "凍結敵人",
    ["Lady Geist"] = "犧牲生命,再搶奪生命",
    ["Lash"] = "俯衝下去踩死敵人",
    ["McGinnis"] = "用戰鬥炮塔控制戰鬥",
    ["Mirage"] = "把握時機射擊,捕捉逃跑的目標",
    ["Mo & Krill"] = "鑽入敵人的地下",
    ["Paradox"] = "操縱空間和時間",
    ["Pocket"] = "滲透並擾亂後防線",
    ["Seven"] = "電擊成群的敵人",
    ["Shiv"] = "為敵人放血,然後殺入敵陣",
    ["Vindicta"] = "狙擊毫無防備的人",
    ["Viscous"] = "滾來滾去阻擋子彈",
    ["Warden"] = "削弱敵人的力量並追趕他們",
    ["Wraith"] = "熔化孤立的目標",
    ["Wrecker"] = "回收廢料製造武器",
    ["Yamato"] = "巧妙地發動猛烈攻擊",
}
}
}
}

Latest revision as of 17:00, 10 October 2024

Documentation for this module may be created at Module:Summary hero/doc

function setDefault (t, d)
    local mt = {__index = function () return d end}
    setmetatable(t, mt)
end


local Summary = { --hero_(.*)_role
 ['English'] = {
["Abrams"] = "Charges into close combat",
["Bebop"] = "Hooks an enemy for a knockout combo",
["Calico"] = "Wreaks havoc from the sidelines",
["Dynamo"] = "Locks down the enemy team",
["Grey Talon"] = "Delivers long range skill-shots",
["Haze"] = "Sneaks in and sprays bullets",
["Holliday"] = "Bounces about dispensing trick shots",
["Infernus"] = "Lights up enemies and watches them burn",
["Ivy"] = "Sets up a power duo with a lucky ally",
["Kali"] = "None",
["Kelvin"] = "Freezes enemies in their tracks",
["Lady Geist"] = "Sacrifices health then drains it back",
["Lash"] = "Dives down to stomp his foes",
["McGinnis"] = "Controls the battle with combat turrets",
["Mirage"] = "Times his shots and catches fleeing targets",
["Mo & Krill"] = "Burrows underneath his enemies",
["Paradox"] = "Manipulates Space and Time",
["Pocket"] = "Infiltrates and disrupts the backline",
["Seven"] = "Electrocutes crowds of enemies",
["Shiv"] = "Bleeds out enemies, then goes in for a kill",
["Vindicta"] = "Snipes the unsuspecting",
["Viscous"] = "Rolls around deflecting bullets",
["Warden"] = "Weakens his enemies and chases them down",
["Wraith"] = "Melts isolated targets",
["Wrecker"] = "Salvages scrap to create weapons",
["Yamato"] = "Delivers charged attacks with finesse",
	},
	['Russian'] = {
["Abrams"] = "Рвётся в ближний бой",
["Bebop"] = "Цепляет врагов крюком, а затем добивает",
["Calico"] = "Wreaks havoc from the sidelines",
["Dynamo"] = "Сдерживает вражескую команду",
["Grey Talon"] = "Точно стреляет издалека",
["Haze"] = "Подкрадывается и решетит пулями",
["Holliday"] = "Bounces about dispensing trick shots",
["Infernus"] = "Поджигает врагов и наблюдает за их мучениями",
["Ivy"] = "Отличная напарница для везучих союзников",
["Kali"] = "None",
["Kelvin"] = "Замораживает врагов намертво",
["Lady Geist"] = "Жертвует здоровьем, но потом забирает его у врагов",
["Lash"] = "Атакует с воздуха и топчет врагов",
["McGinnis"] = "Контролирует бой с помощью боевых турелей",
["Mirage"] = "Совершает точные выстрелы и ловит убегающих врагов",
["Mo & Krill"] = "Копают под своих врагов",
["Paradox"] = "Манипулирует пространством и временем",
["Pocket"] = "Проникает в тыл врага и наводит хаос",
["Seven"] = "Поражает током толпы врагов",
["Shiv"] = "Изматывает, а затем добивает врагов",
["Vindicta"] = "Отстреливает жертв издалека",
["Viscous"] = "Катается по полю боя и отражает пули",
["Warden"] = "Ослабляет и преследует врагов",
["Wraith"] = "Изолирует и уничтожает цели",
["Wrecker"] = "Salvages scrap to create weapons",
["Yamato"] = "Изящно выполняет мощные атаки",
	},
['zh-hant'] = {
    ["Abrams"] = "衝入近距離戰鬥",
    ["Bebop"] = "鉤住擊倒組合拳",
    ["Calico"] = "在場邊肆虐",
    ["Dynamo"] = "大範圍控制敵人",
    ["Grey Talon"] = "提供遠距離技術射擊",
    ["Haze"] = "偷襲並傾瀉子彈",
    ["Holliday"] = "蹦蹦跳跳施展絕技",
    ["Infernus"] = "點燃敵人使他們持續燃燒",
    ["Ivy"] = "與幸運盟友組成強力二人組",
    ["Kali"] = "無",
    ["Kelvin"] = "凍結敵人",
    ["Lady Geist"] = "犧牲生命,再搶奪生命",
    ["Lash"] = "俯衝下去踩死敵人",
    ["McGinnis"] = "用戰鬥炮塔控制戰鬥",
    ["Mirage"] = "把握時機射擊,捕捉逃跑的目標",
    ["Mo & Krill"] = "鑽入敵人的地下",
    ["Paradox"] = "操縱空間和時間",
    ["Pocket"] = "滲透並擾亂後防線",
    ["Seven"] = "電擊成群的敵人",
    ["Shiv"] = "為敵人放血,然後殺入敵陣",
    ["Vindicta"] = "狙擊毫無防備的人",
    ["Viscous"] = "滾來滾去阻擋子彈",
    ["Warden"] = "削弱敵人的力量並追趕他們",
    ["Wraith"] = "熔化孤立的目標",
    ["Wrecker"] = "回收廢料製造武器",
    ["Yamato"] = "巧妙地發動猛烈攻擊",
	}
}
local p = {}

function p.getdesc(frame)
	setDefault(Summary, "Unknown hero "..frame.args[1].." provided for Template:Summary_hero")
	return Summary[frame.args[2]][frame.args[1]]
end

return p