Template:MC/Distdir/doc
Template page
More actions
Template:Documentation header
Displays range and bearing (distance in blocks and compass direction) to a destination location x2,y2, from a starting coordinate location x1,y1 (if omitted, 0,0 is used as the starting coordinate).
16 different compass directions are shown:
- Cardinal directions north, east, west, south (abbreviated as N, E, W, S)
- Intercardinal directions northwest, northeast, southwest, southeast (abbreviated as NW, NE, SW, SE)
- Remaining compass rose directions north northwest, west northwest, north northeast, east northeast, south southwest, west southwest, south southeast, east southeast (abbreviated as NNW, WNW, NNE, ENE, SSW, WSW, SSE, ESE)
Usage
{{distdir|x2|y2|x1|y1}}
or
{{distdir|x2|y2}}
Examples
| Example | Result | Notes |
|---|---|---|
| {{distdir|1201|-866|-12|98}} | Template:Distdir | Distance and direction from -12,98 to 1201,-866
|
| {{distdir|-201|513}} | Template:Distdir | Distance and direction from 0,0 to -201,513
|
fr:Modèle:Distdir/doc
ja:テンプレート:Distdir/doc
pt:Predefinição:Distdir/doc
uk:Шаблон:Відстнап/док