Просмотр кода страницы Модуль:Delink
У вас нет прав на выполнение действия «редактирование этой страницы» по следующей причине:
Вы можете просмотреть и скопировать исходный код этой страницы.
-- This module de-links most wikitext.
require("strict")
local p = {}
local getArgs
local function delinkReversePipeTrick(s)
if s:match("^%[%[|.*[|\n]") then -- Check for newlines or multiple pipes.
return s
end
return s:match("%[%[|(.*)%]%]")
end
local function delinkPipeTrick(s)
-- We need to deal with colons, brackets, and commas, per [[Help:Pipe trick]].
-- First, remove the text before the first colon, if any.
if s:match(":") then
s = s:match("%[%[.-:(.*)|%]%]")
-- If there are no colons, grab all of the text apart from the square brackets and the pipe.
000
1:0
Шаблон, используемый на этой странице:
Возврат к странице Модуль:Delink.