Template:RenderLocation

From Wynncraft Wiki
Jump to navigation Jump to search
Template-info.svg Documentation

A location and coordinate display template similar to Template:Location, but has a different appearance. Most importantly, it also renders a portion of File:TopographicMap.jpg with a red crosshair on the coordinates, giving the reader a visual idea of where the coordinates are in the world.

Usage

All of the parameters are the same between this template and Template:Location, so swapping between the two templates is easy.

{{RenderLocation
<!-- REQUIRED PARAMETERS -->
| locationLabel = 
| location =
| coordinates = comma-separated list
OR
| x = 
| y = 
| z = 

<!-- OPTIONAL PARAMETERS -->
| width =
| height = 
| no_crosshair = 
| image_only = 
| inline-block = 
| style =
}}
  • locationLabel - defaults to "Location". Controls the bolded header text at the top of the display.
  • location - Controls the location name next to the coordinates.
  • coordinates or xyz - the coordinate input. You can either input a comma-separated list of coordinates, or input each coordinate individually.

The following parameters are optional and should not be used in most cases. They can be used to really customize the display.

  • width and height - Optional. Controls the width and height of the area to display.
  • no_crosshair - Optional. If true, doesn't render a red crosshair in the center of the image.
  • image_only - Optional. If true, doesn't display the location label, coordinates, or Wynncraft Map link, only the image.
  • inline-block - Optional. If true, gives the table the "display: inline-block" styling. Essentially, this makes consecutive RenderLocations appear beside each other instead of on new lines.
  • style - Optional. Use for any other css properties you want to define for the table.

Examples

{{RenderLocation
| location = Tolem
| coordinates = -1663, 53, -5271	
}}
Location
Tolem
-1663, 53, -5271
PinpointConcept2.png
Wynncraft Map
{{RenderLocation
| locationLabel = Spawn Node
| location = Gateway to Nothing
| coordinates = 1199, 75, -967
}}
Spawn Node
Gateway to Nothing
1199, 75, -967
PinpointConcept2.png
Wynncraft Map
{{RenderLocation
| locationLabel = Town
| location = Nemract
| coordinates = 128, 48, -2197
| width = 500
| height = 400
| no_crosshair = yes
| image_only = yes
}}