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(). | maintable = mw.title.getCurrentTitle().text | ||
linkstr = maintable .. '#' .. row.table | |||
elseif maintable ~= nil and maintable ~= '' then | |||
linkstr = maintable .. '#' .. row.table | linkstr = maintable .. '#' .. row.table | ||
else | else |