Module:Documentation/doc

From ArdaCraft Wiki
< Module:Documentation
Revision as of 16:10, 15 April 2023 by Skeeveo (talk | contribs) (Created page with "{{Documentation subpage}} {{Lua|Module:Arguments|Module:Message box|Module:Protection banner|Module:Documentation/config}} This module displays a section containing documentation for templates, modules, or other pages. It implements the {{tl|documentation}} template. ==Usage from wikitext== In most cases, you should use the {{tl|documentation}} template. Refer to the template's documentation for usage instruction...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Documentation

This module displays a section containing documentation for templates, modules, or other pages. It implements the {{documentation}} template.

Usage from wikitext

In most cases, you should use the {{documentation}} template. Refer to the template's documentation for usage instructions and parameters.

Usage from other modules

To use this module from another module, first require it:

<syntaxhighlight lang="lua"> local documentation = require('Module:Documentation').main </syntaxhighlight>

Then call the function with a table of arguments: <syntaxhighlight lang="lua"> documentation{content = 'Some documentation', ['link box'] = 'My custom link box'} </syntaxhighlight>

Refer to the {{documentation}} template's documentation for usage instructions and parameters.