Template:OOO-Browser

Revision as of 19:36, 4 March 2026 by Tattecko (talk | contribs) (Created page with "<includeonly><div class="ooo-browser"> <div class="ooo-browser__list"> {{{list|}}} </div> <div class="ooo-browser__panel"> {{{panels|}}} </div> </div></includeonly><noinclude> == Documentation == Reusable two-column browser layout. * Left column: clickable items (you provide the markup in <code>|list=</code>) * Right column: panels (you provide the markup in <code>|panels=</code>) This template only renders layout. It does not generate items or panels by itself. === R...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation

Reusable two-column browser layout.

  • Left column: clickable items (you provide the markup in |list=)
  • Right column: panels (you provide the markup in |panels=)

This template only renders layout. It does not generate items or panels by itself.

Required classes

  • Items (left): ooo-browser__item
  • Panels (right): ooo-browser__info
  • Default visible: add is-active to one item + one panel

Items must also have data-target="panelId" and panels must have id="panelId".

Example

{{OOO-Browser
|list=
<div class="ooo-browser__item is-active" data-target="woodblock">Wood Block</div>
<div class="ooo-browser__item" data-target="woodfloor">Wood Floor</div>

|panels=
<div id="woodblock" class="ooo-browser__info is-active">
{{OOOInfoBox|type=Buildings|art=400001}}
</div>
<div id="woodfloor" class="ooo-browser__info">
{{OOOInfoBox|type=Buildings|art=400002}}
</div>
}}

TemplateData

Two-column browser layout: left list + right details panel. Content is provided via parameters.

Template parameters

ParameterDescriptionTypeStatus
Left listlist

Markup for the clickable list. Use class ooo-browser__item and data-target pointing to a panel id.

Contentrequired
Right panelspanels

Markup for panels. Each panel must have class ooo-browser__info and an id matching a list item’s data-target. One should have is-active by default.

Contentrequired