Module:Sidebar/doc: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{documentation| | {{documentation|{{dochead|header=metatemplate}} | ||
{{dochead|header= | |||
<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}} | |||
}} | }} | ||