Module:Description hero: Difference between revisionsGive feedback
Created page with "function setDefault (t, d) local mt = {__index = function () return d end} setmetatable(t, mt) end local Descs = { --hero_(.*)_playstile ['English'] = { ["Abrams"] = "Abrams has the bulk and sustain to lead from the front, often running into the middle of his foes and watching them scatter. If his enemies waste their fire on him, his back-line teammates can lay out damage with impunity.", ["Bebop"] = "Bebop can string together his abilities in many different w..." |
mNo edit summary |
||
| Line 67: | Line 67: | ||
function p.getdesc(frame) | function p.getdesc(frame) | ||
setDefault(Descs, "Unknown hero "..frame.args[1].." provided for Template:Description_hero") | setDefault(Descs, "Unknown hero "..frame.args[1].." provided for Template:Description_hero") | ||
return Descs[frame.args[ | return Descs[frame.args[2]][frame.args[1]] | ||
end | end | ||
return p | return p | ||