Module:Sidebar/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{documentation| {{dochead|header=none}}{{lua|arguments|template input utils}} <p>'''Module:Sidebar''' is a {{w|wp:lua|module}} that implements the {{tlx|Sidebar}} template. Please see the template page for usage instructions.</p> On templates, you can create a sidebar by using <code><nowiki>{{Sidebar}}</nowiki></code>, which calls this template's wrapper function. On modules, you can include <syntaxhighlight inline lang="lua">local sidebar = require("Module:Sidebar")...." |
No edit summary |
||
| Line 1: | Line 1: | ||
{{documentation| | {{documentation| | ||
{{dochead|header=none}}{{lua|arguments|template input utils}} | {{dochead|header=none}}{{lua|arguments|template input utils}} | ||
<p>'''Module:Sidebar''' is a {{w|wp:lua|module}} that implements the {{tlx|Sidebar}} template. | <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> | ||
On templates, you can create a sidebar by using <code><nowiki>{{Sidebar}}</nowiki></code>, which calls this | On templates, you can create a sidebar by using <code><nowiki>{{Sidebar}}</nowiki></code>, which calls this module's wrapper function. | ||
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}} | ||
}} | }} | ||
Revision as of 09:14, 15 October 2025
| 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.