Module:Main list/doc

This module produces a "For a more comprehensive list, see [...]" link. It implements the main list template.

Use from wikitext
This module cannot be used directly from #invoke. Instead, it can only be used through the main list template. Please see the template page for documentation.

Use from other Lua modules
Load the module:

You can then use the _mainList function like this:

The page1 variable is the page to be linked to, and is required. The page name can include a section link if desired. If the page includes a section link, it is automatically formatted as page § section, rather than the MediaWiki default of page#section.

The page2 variable is optional; it is a second page link.

Example 1
Produces:

Displays as: For a more comprehensive list, see WikiDevi:Hatnote § Hatnote templates.

Example 2
Produces:

Displays as: For a more comprehensive list, see WikiDevi:Hatnote § Hatnote templates and WikiDevi:Template messages/Cleanup § Cleanup.

Technical details
This module uses Module:Hatnote to format the hatnote text and Module:Arguments to fetch the arguments from wikitext.