Warning: You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more.
Log in or
create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision |
Your text |
| Line 163: |
Line 163: |
| | | |
| local ret = '<gallery>\n' .. table.concat(parts) .. '</gallery>' | | local ret = '<gallery>\n' .. table.concat(parts) .. '</gallery>' |
|
| |
| if debug_mode then
| |
| return ret
| |
| else
| |
| return frame:preprocess(ret)
| |
| end
| |
| end
| |
|
| |
| -- Generate 3D model gallery
| |
| function p.get_hero_models(frame)
| |
| local in_herolabs = frame.args['in_herolabs'] or 'false'
| |
| local debug_mode = frame.args['debug_mode'] == 'true'
| |
|
| |
| local heroes = get_heroes(in_herolabs)
| |
| local parts = {}
| |
|
| |
| for _, hero in ipairs(heroes) do
| |
| table.insert(parts, string.format('{{3D Model|%s}}', hero.name))
| |
| end
| |
|
| |
| local ret = table.concat(parts)
| |
|
| |
|
| if debug_mode then | | if debug_mode then |