Module:AbilityData/hero: Difference between revisions

Sur (talk | contribs)
m note transclusion message moved to inside the notes
Sur (talk | contribs)
m now just an h3 and no collapsible
Line 124: Line 124:
--Determine tab content
--Determine tab content
local notes_transcluded_from = "<i>" .. dictionary_module.translate_embed(
local notes_content = '{{'..notes_source_page..'}}'
'TranscludedNotesFrom',
'https://en.wikipedia.org/wiki/Help:Transclusion',
'[['..notes_source_page..']]',
'https://deadlocked.wiki/index.php?title='..util_module.url_encode(notes_source_page)..'&action=edit'
) .. "</i>" .. notes_untranslated_msg
local notes_section =  '{{' .. notes_source_page .. '}}\n' .. notes_transcluded_from
local tab_content = ability_module.get_ability_card_from_key(
local tab_content = ability_module.get_ability_card_from_key(
hero_key,  
hero_key,  
ability_num,  
ability_num,  
'true',
'true',
notes_section
frame:preprocess(notes_content)
)
)
   
ret = ret .. tab_name .. tab_content .. '\n'
ret = ret .. tab_name .. tab_content .. '\n'
end
end