Template:Mc coords

From SNG
Jump to: navigation, search

This is a template for formatting Minecraft coordinates. It currently displays coordinates in a slightly different color to stand out, and also links against the server map.

Usage:

  • {{mc coords|200|64|1000}} (short form, 3 axes X, Y, Z), produces 200, 64, 1000
  • {{mc coords|x=200|y=64|z=1000}} (long form, 3 axes X, Y, Z), produces 200, 64, 1000
  • {{mc coords|x=200|z=1000}} (long form, 2 axes X, Z, no elevation) 200, 1000

You cannot use short for when omitting Y.

Note that since MediaWiki apparently can't handle parameters that begin with a dash/minus, some trickery is involved. If a position is negative, replace "x" or "z" with "xn" or "zn", and leave out the minus sign. So, for example, {{mc coords|xn=2000|y=64|z=4000}} produces -2000, 64, 4000, and {{mc coords|xn=350|zn=600}} produces -350, -600.