Module:Break Isolation/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(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...") |
No edit summary |
||
Line 8: | Line 8: | ||
}} |
}} |
||
This can be used similarly to <syntaxhighlight language="wikitext" inline> |
This can be used similarly to [[mw:Special:MyLanguage/Extension:Variables|the <syntaxhighlight language="wikitext" inline>{{#var}}</syntaxhighlight> extension]] 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. |
Since this is essentially a global object, all caveats and warnings about global variables apply. |
Latest revision as of 17:03, 16 December 2024
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.
Function | Type | Use |
---|---|---|
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 the {{#var}}
extension 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.