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.
<
local mShortcut = require('Module:Shortcut')
</syntaxhighlight>
Then you can create shortcut boxes with the following syntax:
<
mShortcut._main(shortcuts, options, frame, cfg)
</syntaxhighlight>
* <var>shortcuts</var> is an array of shortcut page names. (required)
|