Module:Abilities/card: Difference between revisions

Sur (talk | contribs)
m notes_source_page_name passed to get_ability_card_from_key
Sur (talk | contribs)
m fixed notes that were appearing even if notes source link doesn't exist
Line 76: Line 76:
if add_link == 'true' then
if add_link == 'true' then
name_link = ability_name_localized
name_link = ability_name_localized
end
if notes_source_page ~= nil and notes ~= "" then
--Notes comes from a /Notes page, and the notes are not blank
-- Confirm the notes source page exists, otherwise, don't display any notes
local title = mw.title.new(notes_source_page)
if not (title and title.exists) then
notes = ""
end
end
end