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>{{#invoke:OOO_BuildingsBrowser|render}}</includeonly>
<includeonly>
{{OOO-Browser
|list=
{{{list|}}}
 
|panels=
{{{panels|}}}
}}
</includeonly>


<noinclude>
<noinclude>
{{Documentation}}
== Documentation ==


== Purpose ==
Wrapper for {{OOO-Browser}} used on building pages.
Displays a browser view of building elements by subcategory using the OOO data modules.


It automatically generates the list and infobox panels from:
Keeps the page syntax cleaner by exposing the two required sections:
* list
* panels


Module:OOO/Data/Buildings
The browser behaviour and styling still come from {{OOO-Browser}}.


== Usage ==
=== Usage ===


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


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


{| class="wikitable"
<div id="woodfloor" class="ooo-browser__info">
! Parameter
{{OOOInfoBox|type=Buildings|art=400002}}
! Description
</div>
|-
}}
| subcategory
| Building subcategory to display (Wood, Concrete, Steel, etc)
|}
 
== Example ==
 
<pre>
{{OOO-Buildings|subcategory=Wood}}
</pre>
</pre>


[[Category:OOO templates]]
[[Category:OOO templates]]
</noinclude>
</noinclude>