Module:Shortcut/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
m
19 revisions imported: Originally imported from Wikipedia.
(+uses templatestyles)
m (19 revisions imported: Originally imported from Wikipedia.)
 
(11 intermediate revisions by 10 users not shown)
Line 14:
To use this module from Lua, first load it.
 
<sourcesyntaxhighlight lang="lua">
local mShortcut = require('Module:Shortcut')
</syntaxhighlight>
</source>
 
Then you can create shortcut boxes with the following syntax:
 
<sourcesyntaxhighlight lang="lua">
mShortcut._main(shortcuts, options, frame, cfg)
</syntaxhighlight>
</source>
 
* <var>shortcuts</var> is an array of shortcut page names. (required)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu