Template:Infobox: Difference between revisions
Appearance
Example: credit the Gorilla icon |
Infobox: preceded_by / succeeded_by / series chronology panel |
||
| Line 63: | Line 63: | ||
-->{{#if:{{{data30|}}}|{{#if:{{{label30|}}}|<div class="dm-infobox-row"><div class="dm-infobox-label">{{{label30}}}</div><div class="dm-infobox-data">{{{data30}}}</div></div>|<div class="dm-infobox-row dm-infobox-full"><div class="dm-infobox-data">{{{data30}}}</div></div>}}}}<!-- | -->{{#if:{{{data30|}}}|{{#if:{{{label30|}}}|<div class="dm-infobox-row"><div class="dm-infobox-label">{{{label30}}}</div><div class="dm-infobox-data">{{{data30}}}</div></div>|<div class="dm-infobox-row dm-infobox-full"><div class="dm-infobox-data">{{{data30}}}</div></div>}}}}<!-- | ||
--></div><!-- | --></div><!-- | ||
-->{{#if:{{{preceded_by|}}}{{{succeeded_by|}}}|<div class="dm-infobox-chrono">{{#if:{{{series|}}}|<div class="dm-chrono-series">{{{series}}}</div>}}<div class="dm-chrono-row">{{#if:{{{preceded_by|}}}|<div class="dm-chrono-prev"><div class="dm-chrono-label">← Preceded by</div>{{{preceded_by}}}</div>}}{{#if:{{{succeeded_by|}}}|<div class="dm-chrono-next"><div class="dm-chrono-label">Succeeded by →</div>{{{succeeded_by}}}</div>}}</div></div>}}<!-- | |||
-->{{#if:{{{below|}}}|<div class="dm-infobox-below">{{{below}}}</div>}}</div></includeonly><noinclude> | -->{{#if:{{{below|}}}|<div class="dm-infobox-below">{{{below}}}</div>}}</div></includeonly><noinclude> | ||
{{Infobox | {{Infobox | ||
| Line 81: | Line 82: | ||
| label5 = Repository | | label5 = Repository | ||
| data5 = [https://git.kunix.org git.kunix.org] | | data5 = [https://git.kunix.org git.kunix.org] | ||
| series = Example series | |||
| preceded_by = Example 0.9 | |||
| succeeded_by = Example 2.0 | |||
| below = Part of the Digital Millennium | | below = Part of the Digital Millennium | ||
}} | }} | ||
| Line 99: | Line 103: | ||
| data2 = | | data2 = | ||
<!-- ... up to label30 / data30, header1 - header30 --> | <!-- ... up to label30 / data30, header1 - header30 --> | ||
| series = <!-- optional: name of the sequence, e.g. Boris models --> | |||
| preceded_by = <!-- previous item, e.g. [[Boris-1]] --> | |||
| succeeded_by = <!-- next item --> | |||
| below = <!-- optional footer line --> | | below = <!-- optional footer line --> | ||
}} | }} | ||
| Line 105: | Line 112: | ||
* <code>dataN</code> without <code>labelN</code> spans the full width. | * <code>dataN</code> without <code>labelN</code> spans the full width. | ||
* <code>headerN</code> 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. | * <code>headerN</code> 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. | ||
* <code>preceded_by</code> / <code>succeeded_by</code> add a chronology panel at the bottom; either one alone is fine. <code>series</code> labels it. | |||
* Images from the Gorilla icon theme are CC BY-SA 2.0 and need a credit, e.g. in <code>caption</code>. | * Images from the Gorilla icon theme are CC BY-SA 2.0 and need a credit, e.g. in <code>caption</code>. | ||
</noinclude> | </noinclude> | ||
Latest revision as of 19:05, 15 October 2026
Example Project
Icon by Jakub Steiner, CC BY-SA 2.0
Overview
Developer
Klondike Software Project
Status
Active
Written in
C
Links
Website
Repository
Example series
← Preceded by
Example 0.9Succeeded by →
Example 2.0Part of the Digital Millennium
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 -->
| series = <!-- optional: name of the sequence, e.g. Boris models -->
| preceded_by = <!-- previous item, e.g. [[Boris-1]] -->
| succeeded_by = <!-- next item -->
| below = <!-- optional footer line -->
}}
- A row shows only when its
dataNis filled in. dataNwithoutlabelNspans the full width.headerNputs a section heading before row N. Numbers don't need to be consecutive, so you can leave gaps for rows you'll add later.preceded_by/succeeded_byadd a chronology panel at the bottom; either one alone is fine.serieslabels it.- Images from the Gorilla icon theme are CC BY-SA 2.0 and need a credit, e.g. in
caption.