Editing
Template:Map locations
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{| class="mw-collapsible {{#if:{{{collapse|}}} | mw-collapsed |}} wikitable maploc" style="margin: 0 auto" |- ! {{#if:{{{templatename|}}}|<span class="controls">[[Template:{{{templatename}}}|v]] · [[Template talk:{{{templatename}}}|d]] · <span class="plainlinks">[{{fullurl:Template:{{{templatename}}}|action=edit}} e]</span></span>|}}{{{title}}} |- | style="padding:0" | <div class="container">[[Image:{{{image}}}|808px|link=]] {{#if:{{{area1|}}}|<div class="marker" style="left: {{{x1}}}; top: {{{y1}}};"><div>{{{area1}}}</div></div>|}}{{#if:{{{area2|}}}|<div class="marker" style="left: {{{x2}}}; top: {{{y2}}};"><div>{{{area2}}}</div></div>|}}{{#if:{{{area3|}}}|<div class="marker" style="left: {{{x3}}}; top: {{{y3}}};"><div>{{{area3}}}</div></div>|}}{{#if:{{{area4|}}}|<div class="marker" style="left: {{{x4}}}; top: {{{y4}}};"><div>{{{area4}}}</div></div>|}}{{#if:{{{area5|}}}|<div class="marker" style="left: {{{x5}}}; top: {{{y5}}};"><div>{{{area5}}}</div></div>|}}{{#if:{{{area6|}}}|<div class="marker" style="left: {{{x6}}}; top: {{{y6}}};"><div>{{{area6}}}</div></div>|}}{{#if:{{{area7|}}}|<div class="marker" style="left: {{{x7}}}; top: {{{y7}}};"><div>{{{area7}}}</div></div>|}}{{#if:{{{area8|}}}|<div class="marker" style="left: {{{x8}}}; top: {{{y8}}};"><div>{{{area8}}}</div></div>|}}{{#if:{{{area9|}}}|<div class="marker" style="left: {{{x9}}}; top: {{{y9}}};"><div>{{{area9}}}</div></div>|}}{{#if:{{{area10|}}}|<div class="marker" style="left: {{{x10}}}; top: {{{y10}}};"><div>{{{area10}}}</div></div>|}}{{#if:{{{area11|}}}|<div class="marker" style="left: {{{x11}}}; top: {{{y11}}};"><div>{{{area11}}}</div></div>|}}{{#if:{{{area12|}}}|<div class="marker" style="left: {{{x12}}}; top: {{{y12}}};"><div>{{{area12}}}</div></div>|}}{{#if:{{{area13|}}}|<div class="marker" style="left: {{{x13}}}; top: {{{y13}}};"><div>{{{area13}}}</div></div>|}}{{#if:{{{area14|}}}|<div class="marker" style="left: {{{x14}}}; top: {{{y14}}};"><div>{{{area14}}}</div></div>|}}{{#if:{{{area15|}}}|<div class="marker" style="left: {{{x15}}}; top: {{{y15}}};"><div>{{{area15}}}</div></div>|}} </div> |}<noinclude> == 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: * <code>templatename</code> - Name of the template, without the ''Template:'' prefix. Enables the shorthand view/discussion/edit menu. * <code>collapse</code> - Collapses the box on load. Off by default. Use <code>collapse = true</code> to collapse the box. * <code>title</code> - Title of the box. * <code>image</code> - 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. * You can add up to 15 locations on the map. Every location is controlled by three attributes. ** <code>area''n''</code> - Name of a given area/location. ** <code>x''n''</code> and <code>y''n''</code> - X and Y coordinates of the [[:File:Map marker.png|map marker]]. The best way to get those coordinates is to copy an 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. * The <code>''n''</code> in the above fields' names is to be replaced with a number from the range (1-15). === Example === <pre>{{Map locations | title = Badlands - Middle point | image = cp_badlands.png | area1 = Train | x1 = 325px | y1 = 173px | area2 = Balcony | x2 = 204px | y2 = 294px | area3 = Shithouse | x3 = 680px | y3 = 286px | area4 = Valley | x4 = 416px | y4 = 277px | area5 = Hoodoo | x5 = 295px | y5 = 213px }}</pre> will yield {{Map locations | title = Badlands - Middle point | image = cp_badlands.png | area1 = Train | x1 = 325px | y1 = 173px | area2 = Balcony | x2 = 204px | y2 = 294px | area3 = Shithouse | x3 = 680px | y3 = 286px | area4 = Valley | x4 = 416px | y4 = 277px | area5 = Hoodoo | x5 = 295px | y5 = 213px }} [[Category:Template]]
Summary:
Please note that all contributions to comp.tf may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
comp.tf:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Map locations
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Refresh
Search
Navigation
Main page
Recent changes
Random page
Help the Wiki!
Info for editors
Editing guidelines
Top contributors
Administration team
comp.tf
Discord
Steam Group
Youtube Channel
Twitter
Competitive TF2
teamfortress.tv
r/truetf2
EssentialsTF
ETF2L
RGL
ozfortress
AsiaFortress
UGC League
Tools
What links here
Related changes
Special pages
Page information