Module:Static/doc: Difference between revisions

mNo edit summary
Line 21: Line 21:


== Dev spec ==
== Dev spec ==
Because data stored through this module can be invoked by any modules used in the same page. To avoid being interfered with by other modules, a module '''MUST''' store data in their own namespace. For example in "Module:Example":
Because data stored through this module can be invoked by any modules used in the same page. To avoid being interfered with by other modules, a module '''MUST''' store data in their own namespace, and '''NEVER''' modify data in other namespace.
 
For example, in "Module:Example":
<syntaxhighlight lang='lua'>
<syntaxhighlight lang='lua'>
...
...