Template:Infobox location: Difference between revisions
mNo edit summary |
(added map_caption & notpageimage class to map) |
||
Line 46: | Line 46: | ||
<!-- Map --> | <!-- Map --> | ||
| map = SunstarMotel map.png | | map = SunstarMotel map.png | ||
| map_caption=map_caption | |||
<!-- Building --> | <!-- Building --> | ||
| size = {{ID|size}} | | size = {{ID|size}} | ||
Line 108: | Line 109: | ||
<!-- Map --> | <!-- Map --> | ||
|map= | |map= | ||
|map_caption= | |||
<!-- Building --> | <!-- Building --> | ||
|size= | |size= | ||
Line 371: | Line 373: | ||
| collapsed = true | | collapsed = true | ||
| {{Infobox/image | | {{Infobox/image | ||
| p1 = [[File:{{{map}}}]] | | p1 = [[File:{{{map}}}|class=notpageimage]] | ||
| caption = {{{map_caption|}}} | |||
}} | }} | ||
}} | }} |
Revision as of 14:14, 24 April 2024
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.
{{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 forimage2
.
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.
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
orProjectZomboid/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.