Jump to content

Module:Sandbox/Jeblad/LuaDoc/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jeblad (talk | contribs) at 20:10, 22 January 2016 (Usage). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


Usage

Usual call for documentation of a single module, like a replacement for the usual documentation page, would be like this

{{#invoke:{{BASEPAGENAME}}|build|{{FULLPAGENAME}}}}

In the actual code there will be specially formatted comments. All comments acted upon by this uses the single line comment. (Is there any reason why we should use other kinds of comments? They are usefull for commenting out blocks? How to describe local functions?)

An initial summary-line is prefixed by three (3) dashes, and double as a marker for the place where the code is to be divided into chunks. The stuff in each chunk is precessed separately. The summary will be marked as such, and it will be possible to use it as a fragment identifier.

A series of different tags are recognized