More actions
Created page with "{{Lua autodoc|file=Entrypoint|autodoc=1}} <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> }}</includeonly> <noinclude> Category:Module documentation pages </noinclude>" |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{doc sub}} | |||
{{Lua autodoc|file=Entrypoint|autodoc=1}} | {{Lua autodoc|file=Entrypoint|autodoc=1}} | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category:Modules]] | |||
}}</includeonly> | }}</includeonly> | ||
<noinclude> | <noinclude> | ||
[[Category:Module | [[Category:Module documents]] | ||
</noinclude> | </noinclude> |
Latest revision as of 21:55, 11 March 2025
This is a documentation subpage for Module:Entrypoint. It may contain usage information, categories and other content that is not part of the original module page. |
Description | Templating wrapper for Scribunto packages. |
---|---|
Author(s) | 8nml (Fandom Dev Wiki) |
Code source | Entrypoint |
Status | Beta |
Entrypoint templating wrapper for Scribunto packages. The module generates an entrypoint function that can execute Scribunto package calls in the template context. This allows a package to support both direct and template invocations.
Documentation
Package function
entrypoint(package)
(function)- Entrypoint templating wrapper for Scribunto packages.
- Parameter:
package
Scribunto package. (table) - Errors:
- Returns: Template entrypoint -
main
. (function)
Other items
main(frame)
(function)- Template entrypoint function generated by this module.
- Parameter:
frame
Scribunto frame in module context. (Frame) - Returns: Module output in template context. (string)
Notes
- Parent frames are not available in Entrypoint's
frame
. This is because recursive (grandparent) frame access is impossible in legacy Scribunto due to empty-argument expansion cache limitations. - As Entrypoint enables template access rather than a new extension hook, it does not work with named numeric parameters such as
1=
or2=
. This may result in unexpected behaviour such as Entrypoint and module errors.