Module:Infobox/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 6: Line 6:


On modules, you can include <syntaxhighlight inline lang="lua">local infobox= require("Module:Infobox")._infobox</syntaxhighlight> to create a sidebar.{{clear}}
On modules, you can include <syntaxhighlight inline lang="lua">local infobox= require("Module:Infobox")._infobox</syntaxhighlight> to create a sidebar.{{clear}}
=== See also ===
* [[Module:Navbar]], used by this module to add view/talk/edit links.
}}
}}

Revision as of 09:20, 15 October 2025

Module:Infobox is a module that implements the {{Infobox}} template. Infobox templates can be made by using the template or by calling the _sidebar function from another module.

On templates, you can create an infobox by using {{Infobox}}, which calls this module's wrapper function.

On modules, you can include local infobox= require("Module:Infobox")._infobox to create a sidebar.

See also