Module:EncounterTable: Difference between revisions

Jump to navigation Jump to search
(try to fix bug w plantsummoning table)
mNo edit summary
Line 47: Line 47:
             maintable = row.table:match'^(.+)%s+%w*$'
             maintable = row.table:match'^(.+)%s+%w*$'
             if bSamePageLink then
             if bSamePageLink then
                 maintable = mw.title.getCurrentTitle().prefixedText
                 maintable = mw.title.getCurrentTitle().text
            end
                linkstr = maintable .. '#' .. row.table
             if maintable ~= nil and maintable ~= '' then
             elseif maintable ~= nil and maintable ~= '' then
                 linkstr = maintable .. '#' .. row.table
                 linkstr = maintable .. '#' .. row.table
             else
             else