Difference between revisions of "Module:Unstrip"

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
blackwiki>Petr Matas
(Add unstripNoWiki)
Line 1: Line 1:
-- This module provides a frontend to the mw.text.unstrip function
+
-- This module provides a frontend to the mw.text.unstrip and unstripNoWiki functions
 
local p = {}
 
local p = {}
 +
 
function p.unstrip(frame)
 
function p.unstrip(frame)
  local t = frame.args[1] or ''
+
return mw.text.unstrip(frame.args[1] or '')
  return mw.text.unstrip(t)
 
 
end
 
end
 +
 +
function p.unstripNoWiki(frame)
 +
return mw.text.unstripNoWiki(frame.args[1] or '')
 +
end
 +
 
return p
 
return p

Revision as of 21:29, 20 July 2016

-- This module provides a frontend to the mw.text.unstrip and unstripNoWiki functions
local p = {}

function p.unstrip(frame)
	return mw.text.unstrip(frame.args[1] or '')
end

function p.unstripNoWiki(frame)
	return mw.text.unstripNoWiki(frame.args[1] or '')
end

return p