Module:T: Difference between revisions

Jump to navigation Jump to search
osrsw>Talulah
m lemme use this from a module easier
osrsw>Sylphoid
fix map bug
Line 30: Line 30:
     -- check for valid namespace else prepend Template:
     -- check for valid namespace else prepend Template:
     if not (ns == '' or mw.site.namespaces[ns]) then
     if not (ns == '' or mw.site.namespaces[ns]) then
        link = 'Template:' .. link
    end
   
    -- fix bug with Map linking to Main instead of Template
    if (link == "Map") then
         link = 'Template:' .. link
         link = 'Template:' .. link
     end
     end
Line 48: Line 53:
         end
         end
     end
     end
       
      
      
     targs = table.concat(targs, '|')
     targs = table.concat(targs, '|')