Änderungen

Modul:WLink

537 Bytes hinzugefügt, 08:59, 15. Okt. 2017
local WLink = { suite = "WLink",
serial = "2017-0810-1714" };
--[=[
ansiPercent()
getArticleBase()
getBaseTitle()
getEscapedTitle()
getExtension()
getFile()
return r;
end -- WLink.getBaseTitle()
 
 
 
function WLink.getEscapedTitle( attempt )
-- Retrieve escaped link title
-- Precondition:
-- attempt -- string, with presumable link title
-- Postcondition:
-- Returns string, with suitable link title
return attempt:gsub( "\n", " " )
:gsub( "%[", "[" )
:gsub( "%]", "]" )
:gsub( "|", "|" );
end -- WLink.getEscapedTitle()
p.getBaseTitle = function ( frame )
return Template( frame, "getBaseTitle" );
end
p.getEscapedTitle = function ( frame )
return Template( frame, "getEscapedTitle" );
end
p.getExtension = function ( frame )
Anonymer Benutzer