Difference between revisions of "Module:Unstrip"
MyWikiBiz, Author Your Legacy — Wednesday October 29, 2025
Jump to navigationJump to search (Pywikibot 6.4.0) |
(No difference)
|
Latest revision as of 07:47, 16 July 2021
Implements {{unstrip}}, {{UnstripNoWiki}}, and {{KillMarkers}}
- mw:Extension:Scribunto/Lua reference manual#mw.text.unstrip
- mw:Extension:Scribunto/Lua reference manual#mw.text.unstripNoWiki
- mw:Extension:Scribunto/Lua reference manual#mw.text.killMarkers
-- 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
function p.killMarkers(frame)
local text = frame.args[1]
text = mw.text.killMarkers(text)
:gsub("^%s+", "") --strip leading
:gsub("%s+$", "") --and trailing spaces
return text
end
return p