Editing Module:Shortcut/doc
From Guild of Archivists
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{Module rating|protected}} | |||
This module makes a box showing the shortcut links to a page. | This module makes a box showing the shortcut links to a page. | ||
Line 11: | Line 12: | ||
To use this module from Lua, first load it. | To use this module from Lua, first load it. | ||
< | <source lang="lua"> | ||
local mShortcut = require('Module:Shortcut') | local mShortcut = require('Module:Shortcut') | ||
</ | </source> | ||
Then you can create shortcut boxes with the following syntax: | Then you can create shortcut boxes with the following syntax: | ||
< | <source lang="lua"> | ||
mShortcut._main(shortcuts, options, frame, cfg) | mShortcut._main(shortcuts, options, frame, cfg) | ||
</ | </source> | ||
* <var>shortcuts</var> is an array of shortcut page names. (required) | * <var>shortcuts</var> is an array of shortcut page names. (required) |