Module:Sidebar/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Ganaram inukshuk (talk | contribs)
update dochead
Ganaram inukshuk (talk | contribs)
No edit summary
 
Line 1: Line 1:
{{documentation|
{{documentation|{{dochead|header=metatemplate}}
{{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>


Line 6: Line 5:


On modules, you can include <syntaxhighlight inline lang="lua">local sidebar = require("Module:Sidebar")._sidebar</syntaxhighlight> to create a sidebar.{{clear}}
On modules, you can include <syntaxhighlight inline lang="lua">local sidebar = require("Module:Sidebar")._sidebar</syntaxhighlight> to create a sidebar.{{clear}}
{{module introspection}}
}}
}}

Latest revision as of 22:46, 30 October 2025

This module implements a metatemplate, and may be invoked by templates using its corresponding template Template:Sidebar, or used directly from other modules.

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.

To see introspection summary, see this module's main page.