Module:AbilityTable: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
add heavymelee to extra_columns with Base Damage and Heavy Melee Scaling columns (with help from vergir-bot LLM)
Vergir (talk | contribs)
refactor disclaimer: show list name, separate links for editing contents and notes (with help from vergir-bot LLM)
Line 199: Line 199:
     end)
     end)


     local edit_url = mw.uri.fullUrl("Module:AbilityTable", { action = "edit" })
     local lists_url = mw.uri.fullUrl("Module:AbilityTable/Lists", { action = "edit" })
    local notes_url = mw.uri.fullUrl("Module:AbilityTable/Notes", { action = "edit" })
     local disclaimer = frame:preprocess(
     local disclaimer = frame:preprocess(
         '<div class="ability-table-disclaimer">'
         '<div class="ability-table-disclaimer">'
         .. "This is an automatic list. "
         .. 'This is a dynamic list '
         .. "[" .. tostring(edit_url) .. " Click here]"
        .. '<span class="ability-table-list-name">' .. stat .. '</span>. '
         .. " to add notes or correct the contents."
         .. '[' .. tostring(lists_url) .. ' Edit contents]'
         .. "</div>"
        .. ' · '
         .. '[' .. tostring(notes_url) .. ' Edit notes]'
         .. '</div>'
     )
     )