Template:Infobox location: Difference between revisions

From PZwiki
(added more sections)
(added caption description to doc)
 
(35 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{Infobox
<noinclude>
| above      = <div style="background: #{{Infobox nc|{{{name_colour|}}}}}; padding: 5px; font-weight: bold; text-align: center; font-size: 120%; color:#{{Infobox nc|{{{name_text_colour|}}}|text}};"><span class="fn">{{{name|{{PAGENAME}}}}}</span></div>
{{protection|High risk template.}}
{{Documentation/sandbox|doc=
This template is used to create an infobox in an article about a building, business or point of interest.


|bodystyle    = -moz-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; -webkit-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}};
==Usage==
| imagestyle  = padding:10px;
To use this template in an article, copy the template below, then paste the template into an article.
| headerstyle = background-color: #{{Infobox nc|{{{name_colour|}}}}}; color: #{{Infobox nc|{{{name_text_colour|}}}|text}};
| labelstyle  = background-color:#eee; width:50%;
| datastyle  = width:50%;


| data1      = {{#if: {{{logo|}}}|[[File:{{{logo}}}{{#if:{{{logo_size|}}}|{{!}}{{{logo_size|294px}}}|{{!}}294px}}]]}}
All parameters are optional – those you do not populate with data will not show up in the infobox when the article is saved.
| data2      = {{#if: {{{logo_caption|}}}|<span style="font-size:90%">''{{{logo_caption|}}}''</span>}}
| data3      = {{#if: {{{image|}}}|[[File:{{{image}}}{{#if:{{{image_size|}}}|{{!}}{{{image_size|294px}}}|{{!}}294px}}]]}}
| data4      = {{#if: {{{image_caption|}}}|<span style="font-size:90%">''{{{image_caption|}}}''</span>}}


| header5    = {{#if:{{{taglines|{{{founded|{{{founder|{{{ceo|{{{employees|{{{type|{{{building_type|{{{parent|{{{subsidiary|{{{subsidiaries|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|General}}
''It is strongly advised to '''only''' include variables that are relevant to the specific item in question, i.e. parameters that do not display as '''false''' or '''0'''.''


| label6      = Type
{{Infobox location
| data6      = {{{type|{{{building_type|}}}}}}
| name = {{ID|name}}
| logo = image.png
| logo_size = {{ID|logo_size}}
| logo_caption = {{ID|logo_caption}}
| image = CRU_RS.png
| image2 = CRU LV.png
| image3 = CRU VS.png
| image4 = Churns r us in unnamed small mall next to awl work and sew play.png
| image5 = Ice cream shop in louisville park.png
| image_size = {{ID|image_size}}
| image_caption = {{ID|image_caption}}
<!-- GENERAL -->
| status = {{ID|status}}
| type = {{ID|type}}
| classification = {{ID|classification}}
| former_names = {{ID|former_names}} <!-- or | former_name = -->
| altnames = {{ID|altnames}} <!-- or | alternative_names --> <!-- or | alternative_name -->
| taglines = {{ID|taglines}}
| parent = {{ID|parent}}
| subsidiary = {{ID|subsidiary}}
| founded = {{ID|founded}}
| founder = {{ID|founder}}
| ceo = {{ID|ceo}}
| employees = {{ID|employees}}
<!-- LOCATION -->
| location = {{ID|location}}
| coordinates = 10880x10031
| coordinates2 = 10880x10031
| coordinates3 = 10880x10031
| coordinates4 = 10880x10031
| coordinates5 = 10880x10031
| coords_more = Parameters
<!-- Map -->
| map = SunstarMotel map.png
| map_caption=map_caption
<!-- Building -->
| size = {{ID|size}}
| roof = {{ID|roof}}
| top_floor = {{ID|top_floor}}
| floors = {{ID|floors}} <!-- or |floor_count = -->
| material = {{ID|material}}
| entrance_count = {{ID|entrance_count}}
| stairway_count = {{ID|stairway_count}}
<!-- OTHER -->
| number_of_stores = {{ID|number_of_stores}}
| number_of_rooms = {{ID|number_of_rooms}}
| number_of_suites = {{ID|number_of_suites}}
| number_of_restaurants = {{ID|number_of_restaurants}}
| number_of_bars = {{ID|number_of_bars}}
| facilities = {{ID|facilities}}
| parking = {{ID|parking}}
<!-- TECHNICAL -->
| loot_tag = {{ID|loot_tag}}
| vehicle = {{ID|vehicle}}
| reference = {{ID|reference}}
<!-- NOTES -->
| notes = {{ID|notes}} <!-- or |footnotes = -->
}}
<syntaxhighlight lang=text>{{Infobox location
|name=
|logo=
|logo_size=
|logo_caption=
|image=
|image2=
|image3=
|image4=
|image5=
|image_size=
|image_size2=
|image_size3=
|image_size4=
|image_size5=
|image_caption=
<!-- GENERAL -->
|status=
|type=
|classification =
|former_names=<!-- or | former_name = -->
|altnames=<!-- or | alternative_names = --> <!-- or | alternative_name = -->
|taglines=
|parent=
|subsidiary=
|founded=
|founder=
|ceo=
|employees=
<!-- LOCATION -->
|location=
|coordinates=
|coordinates2=
|coordinates3=
|coordinates4=
|coordinates5=
|coords_more=
<!-- Map -->
|map=
|map_caption=
<!-- Building -->
|size=
|roof=
|top_floor=
|floors=<!-- or |floor_count = -->
|material=
|entrance_count=
|stairway_count=
<!-- OTHER -->
|number_of_stores=
|number_of_rooms=
|number_of_suites=
|number_of_restaurants=
|number_of_bars=
|facilities=
|parking=
<!-- TECHNICAL -->
|loot_tag=
|vehicle=
|reference=
<!-- NOTES -->
|notes=<!-- or |footnotes = -->
}}</syntaxhighlight>
{{clear}}


| label7      = Alternate name(s)
==Parameters==
| data7      = {{{altnames|{{{alternate_names|}}}}}}
===Name and images===
;<code>name</code>
:Insert the name of the building


| label8      = Tagline(s)
;<code>logo</code>
| data8      = {{{taglines|}}}
:Logo of the business. Insert an image link in the form: <code>Example.jpg</code>


| label9    = Parent
;<code>logo_size</code>
| data9      = {{{parent|}}}
:Set the size of the logo. Default is <code>294px</code>


| label10    = Subsidiaries
;<code>logo_caption</code>
| data10      = {{{subsidiary|{{{subsidiaries|}}}}}}
:Insert a caption for the logo.


| label11      = Founded
;<code>image</code>
| data11      = {{{founded|}}}
:Image of the business. Insert an image link in the form: <code>Example.jpg</code>. Multiple images can be defined by appending a number: <code>image2</code>.


| label12      = Founder
;<code>image_size</code>
| data12      = {{{founder|}}}
:Set the size of the image. Default is <code>294px</code>. The number appended will change the variable for that image: <code>image_size2</code> is for <code>image2</code>.


| label13    = CEO
;<code>image_caption</code>
| data13      = {{{ceo|}}}
:Insert a caption for the logo.


| label14    = Known employees
===General===
| data14      = {{{employees|}}}
;<code>status</code>
:Insert the status of the building prior to the Knox Event, i.e. was it abandoned?


| header15    = {{#if:{{{coordinates|{{{location|{{{location_city|{{{location_town|{{{highest_region|}}}}}}}}}}}}}}}|Location}}
;<code>type</code>
:The type of business it is, such as: vehicle manufacturer, gas station, etc.


| label16    = Location(s)
;<code>former_names</code>, <code>former_name</code>
| data16      = {{{location|{{{location_city|{{{location_town|}}}}}}}}}
:Insert name(s) the building was formerly as.


| label17    = Coordinates
;<code>altnames</code>, <code>alternate_names</code>, <code>alternate_name</code>
| data17      = {{#if:{{{coordinates|}}}|[[File:Geographylogo.png{{!}}26px{{!}}link=https://map.projectzomboid.com/?#{{{coordinates}}}{{!}}Show location on an interactive map]]<span class="plainlinks">[https://map.projectzomboid.com/?#{{{coordinates}}} {{{coordinates}}}]</span>}}{{#if:{{{coordinates2|}}}|<br>[[File:Geographylogo.png{{!}}26px{{!}}link=https://map.projectzomboid.com/?#{{{coordinates2}}}{{!}}Show location on an interactive map]]<span class="plainlinks">[https://map.projectzomboid.com/?#{{{coordinates2}}} {{{coordinates2}}}]</span>}}{{#if:{{{coordinates3|}}}|<br>[[File:Geographylogo.png{{!}}26px{{!}}link=https://map.projectzomboid.com/?#{{{coordinates3}}}{{!}}Show location on an interactive map]]<span class="plainlinks">[https://map.projectzomboid.com/?#{{{coordinates3}}} {{{coordinates3}}}]</span>}}{{#if:{{{coordinates4|}}}|<br>[[File:Geographylogo.png{{!}}26px{{!}}link=https://map.projectzomboid.com/?#{{{coordinates4}}}{{!}}Show location on an interactive map]]<span class="plainlinks">[https://map.projectzomboid.com/?#{{{coordinates4}}} {{{coordinates4}}}]</span>}}{{#if:{{{coordinates5|}}}|<br>[[File:Geographylogo.png{{!}}26px{{!}}link=https://map.projectzomboid.com/?#{{{coordinates5}}}{{!}}Show location on an interactive map]]<span class="plainlinks">[https://map.projectzomboid.com/?#{{{coordinates5}}} {{{coordinates5}}}]</span>}}
:The alternate name(s) for the business/building.


| data18      = {{#if:{{{map|}}}|
;<code>taglines</code>
{{{!}} class="mw-collapsible mw-collapsed" style="width:100%" cellspacing=0px data-expandtext=▼ data-collapsetext=▲
:The business motto/taglines.
{{!}}- style="vertical-align:center;"
{{!}} style="background-color: #{{Infobox nc|{{{name_colour|}}}}}; font-weight: bold; color: rgba(0, 0, 0, 0);" {{!}} <div style="height:24px; margin: -1px -2px; background-color:#{{Infobox nc|{{{name_colour|}}}}}; font-size:14px; color: #{{Infobox nc|{{{name_text_colour|}}}|text}};">  Map</div>
{{!}}-
{{!}} [[File:{{{map}}}|{{{map_size|294px}}}|link={{filepath:{{{map}}}}}]]{{#if: {{{map_caption|}}}|<br><span style="font-size:90%">''{{{map_caption|}}}''</span>}}
{{!}}} }}


| header19  = {{#if:{{{vehicle|{{{reference|{{{floors|}}}}}}}}}|Other information}}
;<code>parent</code>
:The parent company.


| label20    = Floors
;<code>subsidiary</code>
| data20    = {{{floors|}}}
:Companies that are a subsidiary of this company/business.


| label21    = Vehicles
;<code>founded</code>
| data21    = {{{vehicle|}}}
:The year the business was founded in.


| label22    = Refers to
;<code>founder</code>
| data22    = {{{reference|}}}
:The founder of the business.


}}</includeonly><noinclude>{{Documentation}}[[Category:Infobox]]</noinclude>
;<code>ceo</code>
:The current/former CEO of the business.
 
;<code>employees</code>
:The current/former known employees of the business.
 
===Location===
;<code>location</code>
:Insert the business's location(s). If there are multiple locations, list them using a {{code|<br>}}.
 
;<code>coordinates(2-5)</code>
:Insert the coordinates as they appear on: https://map.projectzomboid.com/. Go to the location on the map in the URL, press "Map Coordinates" on the left sidebar, copy the "Coords:" being sure not to include any spaces. <br>Example:<code><nowiki>:coordinates = 10880x10031</nowiki></code>.
 
;<code>coords_more</code>
:If there are more than 5 locations, this can be defined which will link to a section on the page of the infobox. Example: <code>{{!}}coords_more{{=}}Locations</code> will link to a section called "Locations".
 
===Map===
;<code>map</code>
:An image of a map indicating the location of the business. Omit "<code>File:</code>", as this is included in the template.
 
;<code>map_caption</code>
:A caption for the map image.
 
===Building===
;<code>size</code>
:The size of the building. Usually only necessary for hospitals.
 
;<code>roof</code>
:Insert the number of levels the roof of the building reaches. The following URL can be used to help identify this: https://map.projectzomboid.com/.
 
;<code>top_floor</code>
:Insert the number of levels the top floor of the building reaches. The following URL can be used to help identify this: https://map.projectzomboid.com/.
 
;<code>floors</code>, <code>floor_count</code>
:Insert the number of floors are in the building. The following URL can be used to help identify this: https://map.projectzomboid.com/. Note: this may be different to top_floor in some buildings that skip a floor.
 
;<code>material</code>
:Insert the primary material(s) the building is composed of. If there are multiple materials, list them using a <br>.
 
;<code>entrance_count</code>
:Insert the number of entrances that are connected to the building.
 
;<code>stairway_count</code>
:Insert the number of stairways that are in or connected to the building.
 
===Other===
;<code>number_of_stores</code>
:Insert the number of stores that are part of the building, such as is the case for a mall.
 
;<code>number_of_rooms</code>
:Insert the number of rooms that are part of the building. This usually only used for motels/hotels, however this can also be used for other buildings.
 
;<code>number_of_suites</code>
:Insert the number of suites that are part of the building. This usually only used for motels/hotels.
 
;<code>number_of_restaurants</code>
:Insert the number of restaurants that are part of the building, such as is the case for a mall.
 
;<code>number_of_bars</code>
:Insert the number of bars that are part of the building.
 
;<code>facilities</code>
:-
 
;<code>parking</code>
:Information on the parking/vehicle zones.
 
===Technical===
;<code>loot_tag</code>
:Include the loot tags that are associated with this building type. Tags can be found at: <code>Project Zomboid/media/lua/server/items/Distributions.lua</code> or <code>ProjectZomboid/media/lua/server/Items/ProceduralDistributions</code>.
 
;<code>vehicle</code>
:Vehicles that have a unique variant to the business.
 
;<code>reference</code>
:The businesses real world reference, if it has one.
 
{{Translation guide|<syntaxhighlight lang="html">
{{#switch: {{{1|}}}
| general = General
| status = Status
| type = Type
| classification = Classification
| former_names = Former name(s)
| alternate_names = Alternate name(s)
| taglines = Tagline(s)
| parent = Parent
| subsidiaries = Subsidiaries
| founded = Founded
| founder = Founder
| ceo = CEO
| employees = Known employees
| location = Location
| coords_desc = Show location on an interactive map.
| more_coords = More coordinates
| map = Map
| building = Building
| size = Size
| roof_height = Roof height
| level = level
| top_floor = Top floor
| floor_count = Floor count
| floors = floors
| material = Material
| entrances = Entrances
| stairway_count = Stairways
| stairways = stairways
| other = Other
| number_of_stores = Number of stores
| number_of_rooms = Number of rooms
| number_of_suites = Number of suites
| number_of_restaurants = Number of restaurants
| number_of_bars = Number of bars
| facilities = Facilities
| parking = Parking
| technical = Technical
| loot_tags = Loot tag(s)
| vehicles = Vehicles
| reference = Refers to
| notes = Notes
<!--Other (do not translate)-->
| #default = {{Error|translation}}
}}
</syntaxhighlight>}}
 
==See also==
*{{ll|Template:Infobox region}}
 
}}
 
{{ll|Category:Infobox}}</noinclude><includeonly>{{Infobox/sandbox
| title = {{{name|{{#getdisplaytitle:{{FULLPAGENAME}}}}}}}
| color = var(--color-red)
| {{Infobox/image <!-- ## Logo ## -->
| p1 = {{#if:{{{logo|}}}|[[File:{{{logo|}}}|{{{logo_width|}}}|{{{logo_name|{{{name|}}}}}}]]}}
| caption = {{#if: {{{logo_caption|}}}|''{{{logo_caption|}}}''}}
}}{{Infobox/image <!-- ## Image ## -->
| p1 = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_size|}}}|{{{image_name|{{{name|}}}}}}]]}}
| 1 = {{#if:{{{image2|}}}|[[File:{{{icon|{{{image}}}}}}|{{{icon_name|{{{image_name|{{{name|}}}}}}}}}|link=]]}}
| p2 = {{#if:{{{image2|}}}|[[File:{{{image2}}}|{{{image_size2|}}}|{{{image_name2|{{{name|}}}}}}]]}}
| 2 = {{#if:{{{image2|}}}|[[File:{{{icon2|{{{image2}}}}}}|{{{icon_name2|{{{image_name2|{{{name|}}}}}}}}}|link=]]}}
| p3 = {{#if:{{{image3|}}}|[[File:{{{image3}}}|{{{image_size3|}}}|{{{image_name3|{{{name|}}}}}}]]}}
| 3 = {{#if:{{{image3|}}}|[[File:{{{icon3|{{{image3}}}}}}|{{{icon_name3|{{{image_name3|{{{name|}}}}}}}}}|link=]]}}
| p4 = {{#if:{{{image4|}}}|[[File:{{{image4}}}|{{{image_size4|}}}|{{{image_name4|{{{name|}}}}}}]]}}
| 4 = {{#if:{{{image4|}}}|[[File:{{{icon4|{{{image4}}}}}}|{{{icon_name4|{{{image_name4|{{{name|}}}}}}}}}|link=]]}}
| p5 = {{#if:{{{image5|}}}|[[File:{{{image5}}}|{{{image_size5|}}}|{{{image_name5|{{{name|}}}}}}]]}}
| 5 = {{#if:{{{image5|}}}|[[File:{{{icon5|{{{image5}}}}}}|{{{icon_name5|{{{image_name5|{{{name|}}}}}}}}}|link=]]}}
| caption = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}}
}}{{#if:{{{type|}}}{{{former_names|}}}{{{former_name|}}}{{{altnames|}}}{{{alternate_names|}}}{{{alternate_name|}}}{{{taglines|}}}{{{parent|}}}{{{subsidiary|}}}{{{founded|}}}{{{founder|}}}{{{ceo|}}}{{{employees|}}}
| {{Infobox/section <!-- ## General ## -->
| {{tt|name=Infobox location|default=General|arg1=general}}
| color = var(--color-red)
| id = business-general
| {{#if:{{{status|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Status|arg1=status}}|{{{status|}}}}} }}{{#if:{{{type|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Type|arg1=type}}|{{{type|}}}}} }}{{#if:{{{classification|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Classification|arg1=classification}}|{{{classification|}}}}} }}{{#if:{{{former_names|{{{former_name|}}}}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Former name(s)|arg1=former_names}}|{{{former_names|{{{former_name|}}}}}}}} }}{{#if:{{{altnames|{{{alternate_names|{{{alternate_name|}}}}}}}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Alternate name(s)|arg1=alternate_names}}|{{{altnames|{{{alternate_names|{{{alternate_name|}}}}}}}}}}} }}{{#if:{{{taglines|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Tagline(s)|arg1=taglines}}|{{{taglines|}}}}} }}{{#if:{{{parent|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Parent|arg1=parent}}|{{{parent|}}}}} }}{{#if:{{{subsidiary|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Subsidiaries|arg1=subsidiaries}}|{{{subsidiary|}}}}} }}{{#if:{{{founded|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Founded|arg1=founded}}|{{{founded|}}}}} }}{{#if:{{{founder|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Founder|arg1=founder}}|{{{founder|}}}}} }}{{#if:{{{ceo|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=CEO|arg1=ceo}}|{{{ceo|}}}}} }}{{#if:{{{employees|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Known employees|arg1=employees}}|{{{employees|}}}}} }}
}}
}}{{#if:{{{location|}}}{{{coordinates|}}}
| {{Infobox/section <!-- ## Location ## -->
| {{tt|name=Infobox location|default=Location|arg1=location}}
| color = var(--color-red)
| id = business-location
| {{#if:{{{location|}}} | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Location|arg1=location}}|{{{location|}}}}} }}
  {{#if:{{{coordinates|}}} | {{Infobox/sandbox/row|Coordinates|
{{#if:{{{coordinates|}}}|[[File:Geographylogo.png{{!}}26px{{!}}link=https://map.projectzomboid.com/?#{{{coordinates}}}{{!}}{{tt|name=Infobox location|default=Show location on an interactive map.|arg1=coords_desc}}]]<span class="plainlinks" title="{{tt|name=Infobox location|default=Show location on an interactive map.|arg1=coords_desc}}">[https://map.projectzomboid.com/?#{{{coordinates}}} {{{coordinates}}}]</span>}}{{#if:{{{coordinates2|}}}
|<br>[[File:Geographylogo.png{{!}}26px{{!}}link=https://map.projectzomboid.com/?#{{{coordinates2}}}{{!}}{{tt|name=Infobox location|default=Show location on an interactive map.|arg1=coords_desc}}]]<span class="plainlinks" title="{{tt|name=Infobox location|default=Show location on an interactive map.|arg1=coords_desc}}">[https://map.projectzomboid.com/?#{{{coordinates2}}} {{{coordinates2}}}]</span>}}{{#if:{{{coordinates3|}}}
|<br>[[File:Geographylogo.png{{!}}26px{{!}}link=https://map.projectzomboid.com/?#{{{coordinates3}}}{{!}}{{tt|name=Infobox location|default=Show location on an interactive map.|arg1=coords_desc}}]]<span class="plainlinks" title="{{tt|name=Infobox location|default=Show location on an interactive map.|arg1=coords_desc}}">[https://map.projectzomboid.com/?#{{{coordinates3}}} {{{coordinates3}}}]</span>}}{{#if:{{{coordinates4|}}}
|<br>[[File:Geographylogo.png{{!}}26px{{!}}link=https://map.projectzomboid.com/?#{{{coordinates4}}}{{!}}{{tt|name=Infobox location|default=Show location on an interactive map.|arg1=coords_desc}}]]<span class="plainlinks" title="{{tt|name=Infobox location|default=Show location on an interactive map.|arg1=coords_desc}}">[https://map.projectzomboid.com/?#{{{coordinates4}}} {{{coordinates4}}}]</span>}}{{#if:{{{coordinates5|}}}
|<br>[[File:Geographylogo.png{{!}}26px{{!}}link=https://map.projectzomboid.com/?#{{{coordinates5}}}{{!}}{{tt|name=Infobox location|default=Show location on an interactive map.|arg1=coords_desc}}]]<span class="plainlinks" title="{{tt|name=Infobox location|default=Show location on an interactive map.|arg1=coords_desc}}">[https://map.projectzomboid.com/?#{{{coordinates5}}} {{{coordinates5}}}]</span>}}
{{#if:{{{coords_more|}}}|<br><small title="{{{coords_more}}}">[[#{{{coords_more}}}|[{{tt|name=Infobox location|default=More coordinates|arg1=more_coords}}]]]</small>}}
  }}
}}
}}
}}{{#if:{{{map|}}}
      | {{Infobox/section
          | {{tt|name=Infobox location|default=Map|arg1=map}}
          | color = var(--color-red)
          | id = business-map
          | collapsed = true
          | {{Infobox/image
            | p1 = [[File:{{{map}}}|class=notpageimage]]
            | caption = {{{map_caption|}}}
          }}
        }}
      }}{{#if:{{{size|}}}{{{roof|}}}{{{top_floor|}}}{{{floors|}}}{{{floor_count|}}}{{{material|}}}{{{entrance_count|}}}{{{stairway_count|}}}
| {{Infobox/section <!-- ## Building ## -->
| {{tt|name=Infobox location|default=Building|arg1=building}}
| color = var(--color-red)
| id = business-building
| {{#if:{{{size|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Size|arg1=size}}|arg1=size}}|{{{size|}}}}} }}{{#if:{{{roof|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Roof height|arg1=roof_height}}|{{tt|name=Infobox location|default=Level|arg1=level}} {{{roof|}}}}} }}{{#if:{{{top_floor|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Top floor|arg1=top_floor}}|{{tt|name=Infobox location|default=Level|arg1=level}} {{{top_floor|}}}}} }}{{#if:{{{floors|{{{floor_count|}}}}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Floor count|arg1=floor_count}}|{{{floors|{{{floor_count|}}}}}} {{tt|name=Infobox location|default=floors|arg1=floors}}}} }}{{#if:{{{material|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Material|arg1=material}}|{{{material|}}}}} }}{{#if:{{{entrance_count|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Entrances|arg1=entrances}}|{{{entrance_count|}}}}} }}{{#if:{{{stairway_count|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Stairways|arg1=stairway_count}}|{{{stairway_count|}}} {{tt|name=Infobox location|default=stairways|arg1=stairways}} }}
}}
}}{{#if:{{{number_of_stores|}}}{{{number_of_rooms|}}}{{{number_of_suites|}}}{{{number_of_restaurants|}}}{{{number_of_bars|}}}{{{facilities|}}}{{{parking|}}}
|{{Infobox/section <!-- ## Other ## -->
| {{tt|name=Infobox location|default=Other|arg1=other}}
| color = var(--color-red)
| id = business-other
| {{#if:{{{number_of_stores|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Number of stores|arg1=number_of_stores}}|{{{number_of_stores|}}}}} }}{{#if:{{{number_of_rooms|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Number of rooms|arg1=number_of_rooms}}|{{{number_of_rooms|}}}}} }}{{#if:{{{number_of_suites|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Number of suites|arg1=number_of_suites}}|{{{number_of_suites|}}}}} }}{{#if:{{{number_of_restaurants|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Number of restaurants|arg1=number_of_restaurants}}|{{{number_of_restaurants|}}}}} }}{{#if:{{{number_of_bars|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Number of bars|arg1=number_of_bars}}|{{{number_of_bars|}}}}} }}{{#if:{{{facilities|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Facilities|arg1=facilities}}|{{{facilities|}}}}} }}{{#if:{{{parking|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Parking|arg1=parking}}|{{{parking|}}}}} }}
}}
}}{{#if:{{{loot_tag|}}}{{{vehicle|}}}{{{reference|}}}
|{{Infobox/section <!-- ## Technical ## -->
| {{tt|name=Infobox location|default=Technical|arg1=technical}}
| color = var(--color-red)
| id = business-technical
| collapsed = true
| {{#if:{{{loot_tag|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Loot tag(s)|arg1=loot_tags}}|{{{loot_tag|}}}}} }}{{#if:{{{vehicle|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Vehicles|arg1=vehicles}}|{{{vehicle|}}}}} }}{{#if:{{{reference|}}}
  | {{Infobox/sandbox/row|{{tt|name=Infobox location|default=Refers to|arg1=reference}}|{{{reference|}}}}} }}
}}
}}{{#if:{{{notes|}}}{{{footnotes|}}}
|{{Infobox/section
  | {{tt|name=Infobox location|default=Notes|arg1=notes}}
  | color = var(--color-red)
  | id = business-notes
  | collapsed = true
  | <div style{{=}}"padding:0em 0.5em 0.5em;">{{{notes|{{{footnotes|}}}}}}</div>
}}
}}
}}</includeonly>

Latest revision as of 14:16, 24 April 2024

Lock-locked.png
This page has been put into protection by a PZwiki administrator.
Reason: High risk template.
Only users in the autoconfirmed user group may edit this page.
Notebook.pngTemplate Documentation

This template is used to create an infobox in an article about a building, business or point of interest.

Usage

To use this template in an article, copy the template below, then paste the template into an article.

All parameters are optional – those you do not populate with data will not show up in the infobox when the article is saved.

It is strongly advised to only include variables that are relevant to the specific item in question, i.e. parameters that do not display as false or 0.

name
name
logo_caption
name
name
name
name
name
image_caption
General
Status
status
Type
type
Classification
classification
Former name(s)
former_names
Alternate name(s)
altnames
Tagline(s)
taglines
Parent
parent
Subsidiaries
subsidiary
Founded
founded
Founder
founder
CEO
ceo
Known employees
employees
Map
SunstarMotel map.png
map_caption
Building
Roof height
Level roof
Top floor
Level top_floor
Floor count
floors floors
Material
material
Entrances
entrance_count
Stairways
stairway_count stairways
Other
Number of stores
number_of_stores
Number of rooms
number_of_rooms
Number of suites
number_of_suites
Number of restaurants
number_of_restaurants
Number of bars
number_of_bars
Facilities
facilities
Parking
parking
Technical
Loot tag(s)
loot_tag
Vehicles
vehicle
Refers to
reference
Notes
notes
{{Infobox location
|name=
|logo=
|logo_size=
|logo_caption=
|image=
|image2=
|image3=
|image4=
|image5=
|image_size=
|image_size2=
|image_size3=
|image_size4=
|image_size5=
|image_caption=
<!-- GENERAL -->
|status=
|type=
|classification	=
|former_names=<!-- or | former_name = -->
|altnames=<!-- or | alternative_names = --> <!-- or | alternative_name = -->
|taglines=
|parent=
|subsidiary=
|founded=
|founder=
|ceo=
|employees=
<!-- LOCATION -->
|location=
|coordinates=
|coordinates2=
|coordinates3=
|coordinates4=
|coordinates5=
|coords_more=
<!-- Map -->
|map=
|map_caption=
<!-- Building -->
|size=
|roof=
|top_floor=
|floors=<!-- or |floor_count = -->
|material=
|entrance_count=
|stairway_count=
<!-- OTHER -->
|number_of_stores=
|number_of_rooms=
|number_of_suites=
|number_of_restaurants=
|number_of_bars=
|facilities=
|parking=
<!-- TECHNICAL -->
|loot_tag=
|vehicle=
|reference=
<!-- NOTES -->
|notes=<!-- or |footnotes = -->
}}

Parameters

Name and images

name
Insert the name of the building
logo
Logo of the business. Insert an image link in the form: Example.jpg
logo_size
Set the size of the logo. Default is 294px
logo_caption
Insert a caption for the logo.
image
Image of the business. Insert an image link in the form: Example.jpg. Multiple images can be defined by appending a number: image2.
image_size
Set the size of the image. Default is 294px. The number appended will change the variable for that image: image_size2 is for image2.
image_caption
Insert a caption for the logo.

General

status
Insert the status of the building prior to the Knox Event, i.e. was it abandoned?
type
The type of business it is, such as: vehicle manufacturer, gas station, etc.
former_names, former_name
Insert name(s) the building was formerly as.
altnames, alternate_names, alternate_name
The alternate name(s) for the business/building.
taglines
The business motto/taglines.
parent
The parent company.
subsidiary
Companies that are a subsidiary of this company/business.
founded
The year the business was founded in.
founder
The founder of the business.
ceo
The current/former CEO of the business.
employees
The current/former known employees of the business.

Location

location
Insert the business's location(s). If there are multiple locations, list them using a <br>.
coordinates(2-5)
Insert the coordinates as they appear on: https://map.projectzomboid.com/. Go to the location on the map in the URL, press "Map Coordinates" on the left sidebar, copy the "Coords:" being sure not to include any spaces.
Example::coordinates = 10880x10031.
coords_more
If there are more than 5 locations, this can be defined which will link to a section on the page of the infobox. Example: |coords_more=Locations will link to a section called "Locations".

Map

map
An image of a map indicating the location of the business. Omit "File:", as this is included in the template.
map_caption
A caption for the map image.

Building

size
The size of the building. Usually only necessary for hospitals.
roof
Insert the number of levels the roof of the building reaches. The following URL can be used to help identify this: https://map.projectzomboid.com/.
top_floor
Insert the number of levels the top floor of the building reaches. The following URL can be used to help identify this: https://map.projectzomboid.com/.
floors, floor_count
Insert the number of floors are in the building. The following URL can be used to help identify this: https://map.projectzomboid.com/. Note: this may be different to top_floor in some buildings that skip a floor.
material
Insert the primary material(s) the building is composed of. If there are multiple materials, list them using a
.
entrance_count
Insert the number of entrances that are connected to the building.
stairway_count
Insert the number of stairways that are in or connected to the building.

Other

number_of_stores
Insert the number of stores that are part of the building, such as is the case for a mall.
number_of_rooms
Insert the number of rooms that are part of the building. This usually only used for motels/hotels, however this can also be used for other buildings.
number_of_suites
Insert the number of suites that are part of the building. This usually only used for motels/hotels.
number_of_restaurants
Insert the number of restaurants that are part of the building, such as is the case for a mall.
number_of_bars
Insert the number of bars that are part of the building.
facilities
-
parking
Information on the parking/vehicle zones.

Technical

loot_tag
Include the loot tags that are associated with this building type. Tags can be found at: Project Zomboid/media/lua/server/items/Distributions.lua or ProjectZomboid/media/lua/server/Items/ProceduralDistributions.
vehicle
Vehicles that have a unique variant to the business.
reference
The businesses real world reference, if it has one.

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
| general = General
| status = Status
| type = Type
| classification = Classification
| former_names = Former name(s)
| alternate_names = Alternate name(s)
| taglines = Tagline(s)
| parent = Parent
| subsidiaries = Subsidiaries
| founded = Founded
| founder = Founder
| ceo = CEO
| employees = Known employees
| location = Location
| coords_desc = Show location on an interactive map.
| more_coords = More coordinates
| map = Map
| building = Building
| size = Size
| roof_height = Roof height
| level = level
| top_floor = Top floor
| floor_count = Floor count
| floors = floors
| material = Material
| entrances = Entrances
| stairway_count = Stairways
| stairways = stairways
| other = Other
| number_of_stores = Number of stores
| number_of_rooms = Number of rooms
| number_of_suites = Number of suites
| number_of_restaurants = Number of restaurants
| number_of_bars = Number of bars
| facilities = Facilities
| parking = Parking
| technical = Technical
| loot_tags = Loot tag(s)
| vehicles = Vehicles
| reference = Refers to
| notes = Notes
<!--Other (do not translate)-->
| #default = {{Error|translation}}
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.