Module:Excerpt/sandbox: Difference between revisions

Content deleted Content added
Add getTarget helper function to get the redirect target of a page and use it to solve redirects in the excerpt hatnote. Also make it accessible for templates and other Lua modules.
Add entry points
Line 845:
function p.getTarget(page) return getTarget(page) end
function p.getContent(page, frame) return getContent(page, frame) end
function p.getsectiongetSection(text, section) return getSection(text, section) end
function p.getsection(text, section) return getSection(text, section) end -- Temporary entry point for backwards compatibility
function p.parse(text, options, filesOnly) return parse(text, options, filesOnly) end
function p.argimageparseImage(text, start) return argImageparseImage(text, start) end -- Temporary entry point for backwards compatibility
function p.checkimage(image) return checkImage(image) end
function p.parseimage(text, start) return parseImage(text, start) end
function p.parseArgs(frame) return parseArgs(frame) end
function p.argImage(text) return argImage(text) end
function p.argimage(text) return argImage(text) end -- Temporary entry point for backwards compatibility
function p.checkImage(image) return checkImage(image) end -- Temporary entry point for backwards compatibility
function p.checkimage(image) return checkImage(image) end
function p.cleanupText(text, options) return cleanupText(text, options) end
function p.main(pageNames, options) return main(pageNames, options) end
function p.err(msg, a, b) return err(msg, a, b) end
function p.numberflags(str) return numberFlags(str) end