Template:OOO-Buildings: Difference between revisions
Created page with "<includeonly>{{#invoke:OOO_BuildingsBrowser|render}}</includeonly> <noinclude> {{Documentation}} == Purpose == Displays a browser view of building elements by subcategory using the OOO data modules. It automatically generates the list and infobox panels from: Module:OOO/Data/Buildings == Usage == <pre> {{OOO-Buildings |subcategory=Wood }} </pre> == Parameters == {| class="wikitable" ! Parameter ! Description |- | subcategory | Building subcategory to display (Wo..." |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly> | ||
{{OOO-Browser | |||
|list= | |||
{{{list|}}} | |||
|panels= | |||
{{{panels|}}} | |||
}} | |||
</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 | |||
The browser behaviour and styling still come from {{OOO-Browser}}. | |||
== Usage == | === 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}} | |||
</div> | |||
<div id="woodfloor" class="ooo-browser__info"> | |||
{{OOOInfoBox|type=Buildings|art=400002}} | |||
</div> | |||
| | }} | ||
|} | |||
< | |||
</pre> | </pre> | ||
[[Category:OOO templates]] | [[Category:OOO templates]] | ||
</noinclude> | </noinclude> | ||