Jump to content

Module:Module sandbox/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Undid revision 1158808483 by Westindiaman (talk) my bad, accidentally used the documentation page instead of the actual testing page - reverted everything
No edit summary
Tag: Reverted
Line 1: Line 1:
{{Module sandbox heading}}
{{Lua autodoc|file=Module sandbox|preface=
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
== Usage ==


<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''function_name''}}</code>
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}{{!}}''function_name''<nowiki>}}</nowiki></code>


|autodoc=1|infobox=0}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->

Revision as of 00:30, 12 March 2025


Usage

{{#invoke:Module sandbox|function_name}}

Documentation

Package items

sandbox.hello_world(name) (function)
Prints hello world
Parameter: name Person to address (string)
Returns: hello world string
TODO: make it say "Hello, [name]".
sandbox.main(frame) (function)
Main entrypoint.
Parameter: frame calling frame (table)
Returns: output wikitext