Module:Infobox/doc: Difference between revisions

Sintel (talk | contribs)
Created page with "{{Todo| documentation |inline=1}} <includeonly><hr><small>Documentation transcluded from /doc</small> Category:Lua modules</includeonly>"
 
Ganaram inukshuk (talk | contribs)
mNo edit summary
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Todo| documentation |inline=1}}
{{documentation|{{dochead|header=metatemplate}}
<p>'''Module:Infobox''' is a {{w|wp:lua|module}} that implements the {{tlx|Infobox}} template. Infobox templates can be made by using the template or by calling the <code>_sidebar</code> function from another module.</p>


<includeonly><hr><small>Documentation transcluded from [[/doc]]</small> [[Category:Lua modules]]</includeonly>
On templates, you can create an infobox by using <code><nowiki>{{Infobox}}</nowiki></code>, which calls this module's wrapper function.
 
On modules, you can include <syntaxhighlight inline lang="lua">local infobox= require("Module:Infobox")._infobox</syntaxhighlight> to create an infobox.{{clear}}
{{module introspection}}
}}