Section link is a global Lua module used for implementing the template {{section link}}. It is a copy of Wikipedia's section link module.
Installation[]
API[]
Package items[]
Section link._main(page, sections, options, title)(function)- Creates links to one or more page sections.
- Parameters:
pageThe name of the page to link to. If this isnilor a blank string,_mainwill create a link to the current page. (string; optional)sectionsA single section name or an array of section names. Defaults to'Notes'. (string|table; optional)optionsOptions for modifying the generated links. (table; optional)titleA Scribunto title object. Iftitleis set andpageis not set (or blank),_mainwill add the title to the link text. (table; optional)
- Returns: The wikitext output. (string)
Section link.main(frame)(function)- Creates links to one or more page sections. This is the entrypoint for Template:Section link.
- Parameter:
frameThe Scribunto frame object. (Frame) - Returns: The wikitext output. (string)