Jump to content

Module:Example/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Reverted edit by 2402:800:6341:6A84:E00C:AFE3:F99B:9CAA (talk) to last version by Discospinster
add autodoc to example module
 
Line 1: Line 1:
{{Lua autodoc|preface=
{{not a sandbox}}
{{not a sandbox}}
{{namespace example page}}
{{namespace example page}}
This is example documentation for the module, used for demonstrations and the like.
This is example documentation for the module, used for demonstrations and the like.

|file=Example|autodoc=1}}
== See also ==
== See also ==
* [[Module:Sandbox]]: For practice/experimental/testing modules.
* [[Module:Sandbox]]: For practice/experimental/testing modules.

Latest revision as of 22:16, 9 March 2025

Example
DescriptionModule.
Code sourceExample
StatusUnknown

Example module.

This is example documentation for the module, used for demonstrations and the like.

Documentation

Package items

example.hello(frame) (function)
Hello world function
Parameter: frame current frame (table)
Returns: Hello world
example.hello_to(frame) (function)
Hello world function
Parameters:
frame current frame (table)
frame.args[1] name (string)
Returns: Hello world
example.count_fruit(frame) (function)
Counts fruit
Parameters:
frame current frame (table)
frame.args.bananas number of bananas (string)
frame.args.apples number of apples (string)
Returns: Number of apples and bananas
example.Name2(frame) (function)
Name2
Parameter: frame current frame (table)
Returns: Some output

See also