Module:Documentation/doc: Difference between revisions
Jump to navigation
Jump to search
Neokowloon (talk | contribs) No edit summary |
(category) |
||
Line 24: | Line 24: | ||
{{Documentation categories| | {{Documentation categories| | ||
<!-- Categories and interwikis go here. --> | <!-- Categories and interwikis go here. --> | ||
[[Category: | [[Category:Documentation modules]] | ||
}} | }} |
Revision as of 16:52, 9 June 2022
This subpage provides documentation 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:
local documentation = require('Module:Documentation').main
Then call the function with a table of arguments:
documentation{content = 'Some documentation', ['link box'] = 'My custom link box'}
Refer to the {{documentation}} template's documentation for usage instructions and parameters.