Module:Sandbox/K6ka/InfoboxLink: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 2: Line 2:


function p.wrapInLink(str)
function p.wrapInLink(str)
if str:match('^\[\[') then
if str:match("^\[\[") then
return str
return str
end
else

return '[[' .. str .. ']]'
return '[[' .. str .. ']]'
end
end
end



Revision as of 14:37, 30 April 2019

Documentation for this module may be created at Module:Sandbox/K6ka/InfoboxLink/doc

local p = {}

function p.wrapInLink(str)
  if str:match("^\[\[") then
    return str
  else
  return '[[' .. str .. ']]'
  end
end

return p