Contributing:Maintaining certain pages

From Space Station 14 Wiki
Revision as of 11:55, 8 February 2025 by Aliser (talk | contribs) (mapserver link formation)


Maps

Page: Maps

Thumb images

Map images are shown as thumbnail images (small images) to prevent slow load and performance issues.

Thumb images should be in webp format, 300px wide (the maximum allowed thumbnail size in user preferences). Height doesn't matter.

Changing the format and resizing can be done with an online tool or locally. Author recommends using libwebp — the official webp CLI utility, although that requires some console commands knowledge.

If using libwebp, to convert from another image format to webp and resize, use:

cwebp map_image.png -o map_image.webp -resize 300 0 -q 100

where map_image.png is the input filename, and map_image.webp is the output filename.

Full size images

There are 3 links at the start of each section:

  1. map.spacestation14.com - an interactive map.
  2. this wiki - for storing full scale map images here on the wiki.
  3. mapserver.spacestation14.com - the source for the full scale images. Should be up to date with new updates [1] once an issue [2] is resolved.

Updating map image on wiki

For the wiki image, use a direct link to the image file instead of the file page. File pages contain previous versions and can degrade performance significantly. To get a direct link, click the image file or the "original file" link.

To get a file page link from a direct image link, take the filename from the end of a link, for instance:
Marathonstation.png from https://wiki.spacestation14.com/w/images/6/6f/Marathonstation.png
and put it at the end of this link:
https://wiki.spacestation14.com/wiki/File:

Working with Mapserver

Mapserver links look like this:

https://mapserver.spacestation14.com/api/Image/grid/box/master/1588

They are assembled with this format:

<mapserver url>/api/Image/grid/:mapId/:gitRef/:gridId
  • <mapserver url> is https://mapserver.spacestation14.com/
  • :mapId is a map ID, eg fland.
  • :gitRef is the name of a branch on ss14 repo, usually master
  • :gridId is a grid ID within the map. To see the grids for a particular map, go to https://mapserver.spacestation14.com/api/Map/:mapId/:gitRef

For Box (map), the link would look like: https://mapserver.spacestation14.com/api/Map/box/master

Use your browser search to find gridIdfields. Use links in url fields to see how a grid looks like. If a grid looks like a whole station, then it's a right grid.