Template:Lua autodoc/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

{{Lua autodoc|file=Module name}}

Examples

[edit source]

{{Lua autodoc|file=Docbunto|code=yes}} yields:

{{Lua autodoc|file=Example|code=yes}} yields:

{{Lua autodoc|file=Sandbox|code=yes}} yields:

Template data

[edit source]

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Module Name1 file

Module page name (without namespace).

Stringsuggested
Infobox Imageimage

Infobox image.

Fileoptional
Captioncaption

Infobox image caption.

Contentoptional
Allall

Include private items in documentation.

Default
false
Booleanoptional
Boilerplateboilerplate

Removal of boilerplate (license block comments).

Default
false
Booleanoptional
Codecode

Only document Docbunto code items - exclude article infobox and lede from rendered documentation.

Default
false
Booleanoptional
Coloncolon

Parses tags with a `:` suffix and without the `@` prefix. This bypasses the "doctag soup" some authors complain of.

Default
false
Booleanoptional
No Lua Referencenoluaref

Don't link to the Lua reference manual for types.

Default
false
Booleanoptional
Plainplain

Disable Markdown formatting in documentation.

Default
false
Booleanoptional
Simplesimple

Limit documentation to descriptions only. Removes documentation of subitem tags such as `@param` and `@field`.

Default
false
Booleanoptional
Sortsort

Sort documentation items in alphabetical order instead of source code order.

Default
false
Booleanoptional
Stripstrip

Remove table index in documentation.

Default
false
Booleanoptional
UListulist

Indent subitems as `<ul>` lists (LDoc/JSDoc behaviour) instead of `<dl>` list.

Default
false
Booleanoptional
Prefacepreface

Preface text to insert between lede & item documentation, used to provide usage and code examples.

Contentsuggested