Module:Abilities-test/card: Difference between revisionsGive feedback
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 548: | Line 548: | ||
return mw.getCurrentFrame():expandTemplate{ | return mw.getCurrentFrame():expandTemplate{ | ||
title = " | title = "User:Saag/Sandbox/Ability card v2/Card", | ||
args = { | args = { | ||
hero_key = hero_key, | hero_key = hero_key, | ||
| Line 570: | Line 570: | ||
notes = notes, | notes = notes, | ||
notes_source_page = notes_source_page, | notes_source_page = notes_source_page, | ||
hide_info1 = ability.Info1 and | hide_info1 = infobox_is_hidden(ability.Info1) and "true" or "false", | ||
hide_info2 = ability.Info2 and | hide_info2 = infobox_is_hidden(ability.Info2) and "true" or "false", | ||
hide_info3 = ability.Info3 and | 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 | ||