Module:Break Isolation/doc

Revision as of 16:11, 16 December 2024 by Artoire (talk | contribs) (Created page with "{{Documentation}} {{Helper module |name = Break Isolation |fname1 = get_module_store(name) |ftype1 = (string) |fuse1 = Given a name of a module, return an object. The object that is returned will be the same object when the same name is given, even across different <syntaxhighlight language="wikitext" inline>{{#invoke}}</syntaxhighlight>s }} This can be used similarly to <syntaxhighlight language="wikitext" inline>frame:callParserFunction{ name = 'vardefine/var' }</syn...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Break Isolation

This is a documentation subpage for Module:Break Isolation.
It contains usage information, categories, and other content that is not part of the original module page.
Module:Break Isolation is required by Module:Location Table.

This module is a helper module to be used by other modules; it may not designed to be invoked directly. See Brighter Shores:Lua/Helper modules for a full list and more information.

FunctionTypeUse
get_module_store(name)(string)Given a name of a module, return an object. The object that is returned will be the same object when the same name is given, even across different {{#invoke}}s

This can be used similarly to frame:callParserFunction{ name = 'vardefine/var' } but allows any Lua object or function (not just strings) to persist for the whole page.

Since this is essentially a global object, all caveats and warnings about global variables apply.