Module:Infobox/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
Line 5: Line 5:
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 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}}
On other modules, you can include <syntaxhighlight inline lang="lua">local infobox = require("Module:Infobox")._infobox</syntaxhighlight> at or near the top.{{clear}}
}}
}}