Template:MC/Distdir
Template page
More actions
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
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 ja:テンプレート:Distdir pt:Predefinição:Distdir/doc
uk:Шаблон:ВідстнапThe above text is transcluded from Template:MC/Distdir/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Distdir/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Distdir/doc. (View all subpages of this page.)