Module:Main list/doc
This is the documentation page for Module:Main list
![]() | This is a documentation subpage for Module:Main list. It contains usage information, categories and other content that is not part of the original module page. |
This module produces a "For a more comprehensive list, see [...]" link. It implements the {{main list}} template.
Use from wikitext[edit source]
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[edit source]
Load the module:
local mMainList = require('Module:Main list')
You can then use the _mainList function like this:
mMainList._mainList (page1, page2)
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[edit source]
mMainList._mainList ('Starfleet Logistics:Hatnote#Hatnote templates')
Produces:
<div class="hatnote">For a more comprehensive list, see [[Starfleet Logistics:Hatnote#Hatnote templates|Starfleet Logistics:Hatnote § Hatnote templates]].</div>
Displays as:
Example 2[edit source]
mMainList._mainList ('Starfleet Logistics:Hatnote#Hatnote templates','Starfleet Logistics:Template messages/Cleanup#Cleanup')
Produces:
<div class="hatnote">For a more comprehensive list, see [[Starfleet Logistics:Hatnote#Hatnote templates|Starfleet Logistics:Hatnote § Hatnote templates]] and [[Starfleet Logistics:Template messages/Cleanup#Cleanup|Starfleet Logistics:Template messages/Cleanup § Cleanup]].</div>
Displays as:
Technical details[edit source]
This module uses Module:Hatnote to format the hatnote text and Module:Arguments to fetch the arguments from wikitext.
External links[edit source]
- Module:Main list/doc at Wikipedia, the free Terran-based encyclopedia that anyone can edit.