Wynncraft Wiki
 
(2 intermediate revisions by the same user not shown)
Line 20: Line 20:
 
| no_crosshair =
 
| no_crosshair =
 
| image_only =
 
| image_only =
  +
| inline-block =
  +
| style =
 
}}
 
}}
 
</pre>
 
</pre>
Line 30: Line 32:
 
* <code>no_crosshair</code> - Optional. If true, doesn't render a red crosshair in the center of the image.
 
* <code>no_crosshair</code> - Optional. If true, doesn't render a red crosshair in the center of the image.
 
* <code>image_only</code> - Optional. If true, doesn't display the location label, coordinates, or Wynncraft Map link, only the image.
 
* <code>image_only</code> - Optional. If true, doesn't display the location label, coordinates, or Wynncraft Map link, only the image.
  +
* <code>inline-block</code> - 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.
  +
* <code>style</code> - Optional. Use for any other css properties you want to define for the table.
   
 
== Examples ==
 
== Examples ==
Line 64: Line 68:
 
| height = 400
 
| height = 400
 
| no_crosshair = yes
 
| no_crosshair = yes
  +
| image_only = yes
 
}}
 
}}
 
</pre>
 
</pre>
Line 73: Line 78:
 
| height = 400
 
| height = 400
 
| no_crosshair = yes
 
| no_crosshair = yes
  +
| image_only = yes
 
}}
 
}}
 
{{Doc/end}}
 
{{Doc/end}}

Latest revision as of 22:29, 4 August 2021

Template-info.png 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
}}

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.