Jump to content

Module:ApplyLinkAnnotations

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by N8wilson (talk | contribs) at 20:42, 11 June 2021 (initial pattern dev). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local p = {};
local s = require("Module:String")

function p.replaceLinks(markup)
  return string.match(markup,"%[%[([^%]]*)%]%]([^%a]*%[%[)")
end

function p.toSeeAlsoList(frame)
  return p.replaceLinks(frame.args[1])
end

return p