Jump to content

Template:Infobox: Difference between revisions

From Digital Millennium Wiki
Unified general-purpose infobox
 
Example: credit the Gorilla icon
Line 68: Line 68:
| image    = Gorilla-Computer-Desktop.svg
| image    = Gorilla-Computer-Desktop.svg
| image_size = 96px
| image_size = 96px
| caption  = Any image works here
| caption  = Icon by Jakub Steiner, [https://creativecommons.org/licenses/by-sa/2.0/ CC BY-SA 2.0]
| header1  = Overview
| header1  = Overview
| label1  = Developer
| label1  = Developer

Revision as of 18:59, 15 October 2026

One infobox for everything: projects, people, hardware, models, concepts. Every field is optional and empty rows are hidden.

Usage

{{Infobox
| title      =            <!-- defaults to the page name -->
| image      =            <!-- file name, without "File:" -->
| image_size =            <!-- defaults to 220px -->
| caption    =
| alt        =
| header1    =            <!-- optional section heading above row 1 -->
| label1     =
| data1      =
| label2     =
| data2      =
<!-- ... up to label30 / data30, header1 - header30 -->
| below      =            <!-- optional footer line -->
}}
  • A row shows only when its dataN is filled in.
  • dataN without labelN spans the full width.
  • headerN puts a section heading before row N. Numbers don't need to be consecutive, so you can leave gaps for rows you'll add later.
  • Images from the Gorilla icon theme are CC BY-SA 2.0 and need a credit, e.g. in caption.