Editing Module:Abilities-test/cardGive feedback
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 169: | Line 169: | ||
-- Info section #1 defined in "Info1" attribute | -- Info section #1 defined in "Info1" attribute | ||
info1_desc = info1_desc, | info1_desc = info1_desc, | ||
info1_mainbox1 = info1_main_boxes[1], | info1_mainbox1 = info1_main_boxes[1], | ||
| Line 184: | Line 183: | ||
-- Info section #2 defined in "Info2" attribute | -- Info section #2 defined in "Info2" attribute | ||
info2_desc = info2_desc, | info2_desc = info2_desc, | ||
info2_mainbox1 = info2_main_boxes[1], | info2_mainbox1 = info2_main_boxes[1], | ||
| Line 199: | Line 197: | ||
-- Info section #3 defined in "Info3" attribute | -- Info section #3 defined in "Info3" attribute | ||
info3_desc = info3_desc, | info3_desc = info3_desc, | ||
info3_mainbox1 = info3_main_boxes[1], | info3_mainbox1 = info3_main_boxes[1], | ||
| Line 223: | Line 220: | ||
} | } | ||
} | } | ||
end | end | ||
| Line 614: | Line 603: | ||
return mw.getCurrentFrame():expandTemplate{ | return mw.getCurrentFrame():expandTemplate{ | ||
title = "User:Saag/Sandbox/Ability card | title = "User:Saag/Sandbox/Ability card ddd", | ||
args = { | args = { | ||
hero_key = hero_key, | hero_key = hero_key, | ||
| Line 636: | Line 625: | ||
notes = notes, | notes = notes, | ||
notes_source_page = notes_source_page, | notes_source_page = notes_source_page, | ||
hide_info1 = "false", | |||
hide_info2 = "false", | |||
hide_info3 = infobox_is_hidden(ability.Info3) and "true" or "false" | |||
} | } | ||
} | } | ||
end | |||
function infobox_is_hidden(infobox) | |||
if infobox == nil then | |||
return false | |||
end | |||
return infobox.RequiresUpgradeIndex ~= nil | |||
end | end | ||
return p | return p | ||