Module:Details/doc

This module produces a "for more details on this topic" link. It implements the details template.

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

Use from other Lua modules
Load the module:

You can then use the _details function like this:

The page 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 topic variable is a description of the topic, and is optional. The default topic value is "this topic".

The options table can be used to configure the function's output. At current, the only option available is "selfref", which is used when the output is a self-reference to WikiDevi. to set this option, use {selfref = true}. (See the selfref template for more details on self-references.)

Produces:
 * Example 1

Displays as:

Produces:
 * Example 2

Displays as:

Produces:
 * Example 3

Displays as:

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