Module:Sidebar/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
update dochead |
||
| Line 1: | Line 1: | ||
{{documentation| | {{documentation| | ||
{{dochead|header= | {{dochead|header=dualuse}}{{lua|arguments|template input utils}} | ||
<p>'''Module:Sidebar''' is a {{w|wp:lua|module}} that implements the {{tlx|Sidebar}} template. Sidebar templates can be made by using the template or by calling the <code>_sidebar</code> function from another module.</p> | <p>'''Module:Sidebar''' is a {{w|wp:lua|module}} that implements the {{tlx|Sidebar}} template. Sidebar templates can be made by using the template or by calling the <code>_sidebar</code> function from another module.</p> | ||
Revision as of 10:01, 23 October 2025
- This module may be invoked by templates using its corresponding template Template:Sidebar, or used directly from other modules.
| This template has been deprecated. Its replacements are Template:Dochead and Template:Module introspection. |
Module:Sidebar is a module that implements the {{Sidebar}} template. Sidebar templates can be made by using the template or by calling the _sidebar function from another module.
On templates, you can create a sidebar by using {{Sidebar}}, which calls this module's wrapper function.
On modules, you can include local sidebar = require("Module:Sidebar")._sidebar to create a sidebar.