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.
m ({{Lua sidebar}})
m (19 revisions imported: Originally imported from Wikipedia.)
 
(12 intermediate revisions by 11 users not shown)
Line 1:
{{Module rating|protected}}
{{Uses TemplateStyles|Template:Shortcut/styles.css}}
{{Lua sidebar}}
This module makes a box showing the shortcut links to a page.
Line 13 ⟶ 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