Module:AbilityTable: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
refactor disclaimer: show list name, separate links for editing contents and notes (with help from vergir-bot LLM)
Vergir (talk | contribs)
m small fixes for auto-disclaimer
Line 199: Line 199:
     end)
     end)


     local lists_url = mw.uri.fullUrl("Module:AbilityTable/Lists", { action = "edit" })
     local lists_url = mw.uri.fullUrl("Module:AbilityTable/Lists")
     local notes_url = mw.uri.fullUrl("Module:AbilityTable/Notes", { 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 a dynamic list '
         .. 'This is a dynamic list '
         .. '<span class="ability-table-list-name">' .. stat .. '</span>. '
         .. '<span class="ability-table-list-name">"' .. stat .. '"</span>. '
         .. '[' .. tostring(lists_url) .. ' Edit contents]'
         .. '[' .. tostring(lists_url) .. ' Edit contents]'
         .. ' · '
         .. ' · '
         .. '[' .. tostring(notes_url) .. ' Edit notes]'
         .. '[' .. tostring(notes_url) .. ' Edit notes].'
         .. '</div>'
         .. '</div>'
     )
     )