Module:Infobox/doc: Difference between revisions
Created page with "{{Todo| documentation |inline=1}} <includeonly><hr><small>Documentation transcluded from /doc</small> Category:Lua modules</includeonly>" |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{documentation| | ||
{{dochead|header='''Note:''' While this module should not be invoked directly, the use of its corresponding template ([[Template:Infobox]]) is not absolutely necessary.}}{{lua|arguments|yesno}} | |||
<p>'''Module:Infobox''' is a {{w|wp:lua|module}} that implements the {{tlx|Infobox}} template. Please see the template page for usage instructions.</p> | |||
< | On other templates that use or generate infoboxes, you can call <code>_infobox</code> (note the underscore in front). The <code>infobox</code> function (without the underscore) is used by [[Template:Infobox]] as a wrapper. | ||
On other modules, you can include <syntaxhighlight inline lang="lua">local infobox = require("Module:Infobox")._infobox</syntaxhighlight> at or near the top.{{clear}} | |||
}} |