FANDOM


-- <pre>
local p = {}
 
-- {{#invoke:striplinks|internal|This is [[some]] text with [[Help:Wikitext|links]]}} -> This is some text with links
function p.internal( frame )
	local link = mw.text.trim( frame.args[1] )
 
	link = link:gsub("(%[%[.-%]%])", function( match )
		local text = match:sub(3,-3) -- Strip the link brackets
		local pipe = text:find('%|')
		return pipe and text:sub( pipe + 1 ) or text
	end)
 
	return link
end
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.