StealThis .dev

Wiki — Infobox / Fact Sidebar Card

A Wikipedia-style infobox: a right-floated fact card that summarises an article at a glance. A header, a CSS-drawn emblem, and label/value rows grouped into Overview, Technical details, and Links sections with subtle dividers and footnote superscripts. Vanilla JS adds collapse/expand toggles per section, a show-more-fields expander, a copy-permalink button on the article title, plus a responsive sidebar drawer. Clean ink-on-white with link-blue values and accessible, keyboard-friendly controls.

Buka di Lab
html css vanilla-js
Targets: JS HTML

Code

Infobox / Fact Sidebar Card

A Wikipedia-style infobox that floats to the right of an encyclopedic article and condenses its key facts into a single scannable card. The card opens with a centered title header and a CSS-drawn circular emblem, then lists label/value rows split into three labelled sections — Overview, Technical details, and Links — each separated by hairline dividers. Values use the standard link-blue treatment, with small superscript footnote markers ([1], [2]) that jump to the references list at the foot of the article.

Every section header is a button: click it to collapse or expand that group of rows, with a smooth height transition and a rotating caret. The Technical details section hides four extra fields behind a Show more fields expander that toggles to Show fewer. The article title carries a paragraph-mark permalink button that copies a deep link to the clipboard and flashes a toast on success. On narrow screens the persistent left sidebar collapses into a drawer, the infobox drops to full width below the heading, and pressing / focuses the search box.

Illustrative UI only — fictional articles, products, and data.