Module:Static/doc: Revision history

Jump to navigation Jump to search
Diff selection: mark the radio boxes of the versions to compare or click on a revision date to view it. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit

4 November 2024

  • curprev 02:3502:35, 4 November 2024imported>BigDiesel2m 597 bytes +597 Created page with "{{Documentation}} {{Helper module |name = Static |fname1 = n/a |ftype1 = |fuse1 = This module returns a table that can store data that persists in between multiple <code><nowiki>{{#Invoke:}}</nowiki></code> calls. }} Example: <syntaxhighlight lang='lua'> local p = {} function p.main() local static = require('Module:Static') static.x = (static.x or 0) + 1 return static.x end return p </syntaxhighlight> If the above code sample was stored in <code>Module:..."