Jump to content

Template:OOO-Buildings: Difference between revisions

From Out of Ore Wiki
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="ooo-browser">
{{OOO-Browser
{{{1|}}}
|list=
</div>
{{{list|}}}
 
|panels=
{{{panels|}}}
}}
</includeonly>
</includeonly>


<noinclude>
<noinclude>
{{Documentation}}
== Documentation ==
 
Wrapper for {{OOO-Browser}} used on building pages.


== Purpose ==
Keeps the page syntax cleaner by exposing the two required sections:
Wrapper template for displaying building browser content using the OOO browser layout.
* list
* panels


== Usage ==
The browser behaviour and styling still come from {{OOO-Browser}}.
 
=== Usage ===


<pre>
<pre>
{{OOO-Buildings
{{OOO-Buildings
|
|list=
* Wood Block
<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}}
{{OOOInfoBox|type=Buildings|art=400001}}
</div>


* Wood Floor
<div id="woodfloor" class="ooo-browser__info">
{{OOOInfoBox|type=Buildings|art=400002}}
{{OOOInfoBox|type=Buildings|art=400002}}
</div>
}}
}}
</pre>
</pre>

Latest revision as of 20:09, 4 March 2026


Documentation

Wrapper for


used on building pages.

Keeps the page syntax cleaner by exposing the two required sections:

  • list
  • panels

The browser behaviour and styling still come from


.

Usage

{{OOO-Buildings
|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>
}}