User:Boba/Sandbox

From Team Fortress Wiki
< User:Boba
Revision as of 04:30, 12 July 2021 by Boba (talk | contribs)
Jump to: navigation, search

Usage

This template allows you to add markers to an image. When hovering over the marker, the name of the area will appear.

This template's parameters are:

  • title - Title of the box.
  • collapsed - Collapses the box on load. Off by default. Use collapsed = yes to collapse the box.
  • image - Filename of the image to be used as the base for the map location template. The image will be automatically resized to be 800 pixels wide.
  • placement - The placement of the image. Has 2 values: left and right. The image will be placed to the left by default.
  • You can add up to 20 locations on the map. Every location is controlled by three main attributes. The locations will then automatically be added to a bulleted list in numeric order.
    • area1 - Name of a given area/location. Adds the respective number to the marker.
      • x1 and y1 - X and Y coordinates of the map marker. The number is to be replaced with a number from the range (1-20).
  • You can add up to 5 spawn points on the map. Every spawn point is controlled by three main attributes. The spawn points will then automatically be added to a bulleted list in alphabetical order.
    • spawn1 - Name of a given spawn point. Adds the respective letter to the marker.
      • xA and yA - X and Y coordinates of the spawn point marker. The secondary letter is to be replaced with a letter from the range (A-E), and that letter must be capitalized.
      • spawn-color1 = <value> - The marker color value of the given spawn point. There are 3 marker color values: red (default), blu, mix. The marker color value mix are only to be used to indicate shared spawn rooms, as in the case with Payload maps.
  • The best way to get the coordinates is to copy a 800px wide version of the image you will be using, then copying the map marker file, adjusting them in the appropiate places, then getting the coordinates of the upper left corner of the marker.

Example

{{Map overview
 | title = Pier - overview indicators
 | image = Pier overview.png
 |-
 | spawn1 = BLU first spawn
 | spawn-color1 = blu
 | xA = 335px
 | yA = 150px
 | spawn2 = BLU second spawn
 | spawn-color2 = blu
 | xB = 193px
 | yB = 230px
 | spawn3 = RED first spawn / BLU third spawn
 | spawn-color3 = mix
 | xC = 245px
 | yC = 400px
 | spawn4 = RED final spawn
 | spawn-color4 = red
 | xD = 608px
 | yD = 512px
 |-
 | area1 = Beach
 | x1 = 210px
 | y1 = 120px
 | area2 = Caves
 | x2 = 285px
 | y2 = 230px
 | area3 = Minivan parking space
 | x3 = 280px
 | y3 = 290px
 | area4 = Cliff
 | x4 = 240px
 | y4 = 220px
 | area5 = Bridge
 | x5 = 200px
 | y5 = 320px
 | area6 = Red carpet building
 | x6 = 160px
 | y6 = 350px
 | area7 = Wine cellar
 | x7 = 90px
 | y7 = 390px
 | area8 = Docks
 | x8 = 135px
 | y8 = 520px
 | area9 = Warehouse
 | x9 = 305px
 | y9 = 480px
 | area10 = Kitchen
 | x10 = 340px
 | y10 = 410px
 | area11 = Sandy beach
 | x11 = 425px
 | y11 = 460px
 | area12 = Barn bridge
 | x12 = 430px
 | y12 = 400px
 | area13 = Small barn
 | x13 = 468px
 | y13 = 425px
 | area14 = Building adjacent to the barn
 | x14 = 505px
 | y14 = 460px
 | area15 = Target range
 | x15 = 600px
 | y15 = 460px
}}

will yield

Unusual pages

War Paint pages