Module:Sidebar/doc: Difference between revisions
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}} | ||
}} | }} | ||