Template:OOO-Buildings: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{OOO-Browser | |||
{{{ | |list= | ||
{{{list|}}} | |||
|panels= | |||
{{{panels|}}} | |||
}} | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{ | == Documentation == | ||
Wrapper for {{OOO-Browser}} used on building pages. | |||
Keeps the page syntax cleaner by exposing the two required sections: | |||
* list | |||
* panels | |||
== Usage == | The browser behaviour and styling still come from {{OOO-Browser}}. | ||
=== Usage === | |||
<pre> | <pre> | ||
{{OOO-Buildings | {{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}} | {{OOOInfoBox|type=Buildings|art=400001}} | ||
</div> | |||
<div id="woodfloor" class="ooo-browser__info"> | |||
{{OOOInfoBox|type=Buildings|art=400002}} | {{OOOInfoBox|type=Buildings|art=400002}} | ||
</div> | |||
}} | }} | ||
</pre> | </pre> | ||