Editing
Module:Static/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== 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 (a sub-table, see below), and '''NEVER''' modify data in other namespace. For example, in "Module:Example": <syntaxhighlight lang='lua'> ... local static = require( 'Module:Static' ) if not static.Example then static.Example = {} end static.Example.exampleData = 3 ... </syntaxhighlight> Data stored by a module, must be stored in a sub-table with the same name of that module (capitalize the first letter, and all spaces replaced with underscores). This sub-table should being initialized immediately after the invocation of this module. <includeonly>{{sandbox other|| <!-- Template categories/interwikis here --> [[Category:Meta modules]] [[es:Módulo:Static]] [[fr:Module:Static]] [[pt:Módulo:Static]] [[ru:Модуль:Статические данные]] [[zh:Module:Static]] }}</includeonly> <noinclude> <!-- Documentation categories/interwikis here --> [[es:Módulo:Static/doc]] [[fr:Module:Static/doc]] [[pt:Módulo:Static/doc]] [[ru:Модуль:Статические данные/док]] [[zh:Module:Static/doc]] </noinclude>
Summary:
Please note that all contributions to Modded Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Module
Discussion
English
Views
Read
Edit source
View history
More
Refresh
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information