Jump to content

Module:Infobox/doc: Difference between revisions

From The Petit Planet Wiki
ReisuDesign (talk | contribs)
Created page with "{{Documentation/Header}} This module is used to create infoboxes with support for sections, fields, images, tabs, and collapsible sections. ==Syntax== * {{F|title}} — Infobox title. * {{F|subtitle}} — Optional subtitle displayed below the title. * {{F|image}} — Main infobox image. * {{F|images}} — Multiple images, separated by commas. * {{F|caption}} — Image caption. * {{F|sections}} — Comma-separated list of sections. * {{F|section}} — Comma-separated lis..."
 
ReisuDesign (talk | contribs)
 
Line 9: Line 9:
* {{F|caption}} — Image caption.
* {{F|caption}} — Image caption.
* {{F|sections}} — Comma-separated list of sections.
* {{F|sections}} — Comma-separated list of sections.
* {{F|section}} — Comma-separated list of fields belonging to the section.
* {{F|((section))}} — Comma-separated list of fields belonging to the section.
* {{F|field}} — Value of a field.
* {{F|((field))}} — Value of a field.
* {{F|field_label}} — Custom label for a field.
* {{F|((field))_label}} — Custom label for a field.
* {{F|field_display}} — Alternative custom label for a field.
* {{F|((field))_display}} — Alternative custom label for a field.
* {{F|field_wide}} — Makes the field span the full width.
* {{F|((field))_wide}} — Makes the field span the full width.
* {{F|field_nolabel}} — Hides the field's label and makes it span the full width.
* {{F|((field))_nolabel}} — Hides the field's label and makes it span the full width.
* {{F|section_label}} — Custom section heading.
* {{F|((section))_label}} — Custom section heading.
* {{F|section_collapsible}} — Makes the section collapsible.
* {{F|((section))_collapsible}} — Makes the section collapsible.
* {{F|section_collapsed}} — Makes the section start collapsed.
* {{F|((section))_collapsed}} — Makes the section start collapsed.
* {{F|section_nolabel}} — Hides the section heading.
* {{F|((section))_nolabel}} — Hides the section heading.
* {{F|section_columns}} — Displays the section as a multi-column grid.
* {{F|((section))_columns}} — Displays the section as a multi-column grid.
* {{F|tabs}} — Comma-separated list of tabs.
* {{F|tabs}} — Comma-separated list of tabs.
* {{F|tab_field}} — Value of a field for a specific tab.
* {{F|((tab))_field}} — Value of a field for a specific tab.
* {{F|tab_label}} — Custom label for a tab.
* {{F|((tab))_label}} — Custom label for a tab.
* {{F|tab_focused}} — Makes the tab selected by default.
* {{F|((tab))_focused}} — Makes the tab selected by default.
* {{F|tab_image}} — Image for a specific tab.
* {{F|((tab))_image}} — Image for a specific tab.
* {{F|tab_caption}} — Caption for a specific tab.
* {{F|((tab))_caption}} — Caption for a specific tab.
* {{F|section_tabs}} — Gives a section its own set of tabs.
* {{F|((section))_tabs}} — Gives a section its own set of tabs.
* {{F|sep}} — Changes the separator used for lists. Defaults to a comma.
* {{F|sep}} — Changes the separator used for lists. Defaults to a comma.
* {{F|useDivs}} — Changes the infobox between codediv/code and table markup.
* {{F|useDivs}} — Changes the infobox between codediv/code and table markup.

Latest revision as of 15:39, 20 September 2026

This is the documentation page for Infobox.
It contains usage information, categories, and other content not part of the original module page.

This module is used to create infoboxes with support for sections, fields, images, tabs, and collapsible sections.

Syntax

[edit source]
  • title — Infobox title.
  • subtitle — Optional subtitle displayed below the title.
  • image — Main infobox image.
  • images — Multiple images, separated by commas.
  • caption — Image caption.
  • sections — Comma-separated list of sections.
  • section — Comma-separated list of fields belonging to the section.
  • field — Value of a field.
  • field_label — Custom label for a field.
  • field_display — Alternative custom label for a field.
  • field_wide — Makes the field span the full width.
  • field_nolabel — Hides the field's label and makes it span the full width.
  • section_label — Custom section heading.
  • section_collapsible — Makes the section collapsible.
  • section_collapsed — Makes the section start collapsed.
  • section_nolabel — Hides the section heading.
  • section_columns — Displays the section as a multi-column grid.
  • tabs — Comma-separated list of tabs.
  • tab_field — Value of a field for a specific tab.
  • tab_label — Custom label for a tab.
  • tab_focused — Makes the tab selected by default.
  • tab_image — Image for a specific tab.
  • tab_caption — Caption for a specific tab.
  • section_tabs — Gives a section its own set of tabs.
  • sep — Changes the separator used for lists. Defaults to a comma.
  • useDivs — Changes the infobox between codediv/code and table markup.