Module:Documentation/doc: Difference between revisions
Jump to navigation
Jump to search
(category) |
No edit summary |
||
Line 21: | Line 21: | ||
Refer to the {{tl|documentation}} template's documentation for usage instructions and parameters. | Refer to the {{tl|documentation}} template's documentation for usage instructions and parameters. | ||
{{Adapted from Wikipedia|Module:Documentation}} | |||
{{Documentation categories| | {{Documentation categories| |
Revision as of 00:22, 7 June 2023
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.
This module was adapted from Module:Documentation on Wikipedia.
Adaptation is noted for reference and attribution only. This module may differ from the original in function or in usage.
Adaptation is noted for reference and attribution only. This module may differ from the original in function or in usage.