Template:Lua autodoc/doc
| This is a documentation subpage for Template:Lua autodoc. It may contain usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Usage
[edit source]{{Lua autodoc|file=Module name}}
Examples
[edit source]{{Lua autodoc|file=Docbunto|code=yes}} yields:
Extended content
|
|---|
|
Lua error in Module:I18n at line 384: attempt to index field 'data' (a nil value). |
{{Lua autodoc|file=Example|code=yes}} yields:
Extended content
|
|---|
|
Lua error in Module:I18n at line 384: attempt to index field 'data' (a nil value). |
{{Lua autodoc|file=Sandbox|code=yes}} yields:
Extended content
|
|---|
|
Lua error in Module:I18n at line 384: attempt to index field 'data' (a nil value). |
Template data
[edit source]No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Module Name | 1 file | Module page name (without namespace). | String | suggested |
| Infobox Image | image | Infobox image. | File | optional |
| Caption | caption | Infobox image caption. | Content | optional |
| All | all | Include private items in documentation.
| Boolean | optional |
| Boilerplate | boilerplate | Removal of boilerplate (license block comments).
| Boolean | optional |
| Code | code | Only document Docbunto code items - exclude article infobox and lede from rendered documentation.
| Boolean | optional |
| Colon | colon | Parses tags with a `:` suffix and without the `@` prefix. This bypasses the "doctag soup" some authors complain of.
| Boolean | optional |
| No Lua Reference | noluaref | Don't link to the Lua reference manual for types.
| Boolean | optional |
| Plain | plain | Disable Markdown formatting in documentation.
| Boolean | optional |
| Simple | simple | Limit documentation to descriptions only. Removes documentation of subitem tags such as `@param` and `@field`.
| Boolean | optional |
| Sort | sort | Sort documentation items in alphabetical order instead of source code order.
| Boolean | optional |
| Strip | strip | Remove table index in documentation.
| Boolean | optional |
| UList | ulist | Indent subitems as `<ul>` lists (LDoc/JSDoc behaviour) instead of `<dl>` list.
| Boolean | optional |
| Preface | preface | Preface text to insert between lede & item documentation, used to provide usage and code examples. | Content | suggested |