Module:Diff/sandbox: Difference between revisions

Content deleted Content added
sync with live template
sync and try to fix escapism
Line 22:
-- @param text A string to be split.
-- @param separator [optional] the separator pattern (defaults to any
-- white spacewhitespace - %s+).
-- @param skip_separator [optional] don't include the sepatorseparator in the results.
-- @return A list of tokens.
-----------------------------------------------------------------------------
Line 124:
-- @param old The "old" text string
-- @param new The "new" text string
-- @param separator [optional] the separator pattern (defaults otto any
-- white spacewhitespace).
-- @return A list of annotated tokens.
-----------------------------------------------------------------------------
Line 216:
'padding: 0.33em 0.5em; font-size: 1em; font-family: monospace; white-space: pre-wrap; border-width: 1px 1px 1px 4px; ' ..
'-webkit-border-end-width: 1px; -webkit-border-start-width: 4px; ' ..
'-moz-border-end-width: 1px; -moz-border-start-width: 4px;' -- these overridesoverride default border-width for browsers supportsthat support them, needed for RTL UI on commons
local insDelSharedStyle = 'padding: 0.25em 0; font-weight: bold; text-decoration: initial;'
 
Line 279:
 
local function main(frame)
return wikiDiff(mw.text.unstrip(mwdecodemw.text.decodeunstrip((frame.args[1])), mw.text.decode(mw.text.unstrip(frame.args[2])), frame.args[3] or '[%s%.:-]+')
end