Difference between revisions of "User:Boba/Sandbox"

From Team Fortress Wiki
Jump to: navigation, search
Line 1: Line 1:
<noinclude>{{Ambox|style=width:100%; margin:0px 0px 0px;|image=Warning blue.png|type=notice-2
+
<includeonly>{| class="mw-collapsible {{#if:{{{collapsed|}}}|mw-collapsed}} navbox map-overview"
| contents='''To use this template please see the [[Template talk:Main Page layout|talk page]].'''
+
{{!}}-
}}[[Category:Main Page| ]]</noinclude><!--
+
! style="background:#F3A957;font-size:1.2em;"{{!}}{{{title}}}
 
 
// BEGIN MAIN PAGE LAYOUT TEMPLATE
 
 
 
// WELCOME BANNER TABLE
 
 
 
--> __NOTOC__
 
{| class="mp-content-table plainlinks" style="margin-top:7px; margin-bottom:7px;"
 
| style="width:61%; color:#000;" |<!--
 
 
 
// WELCOME BANNER MINI-TABLE
 
 
 
-->
 
{| style="width:350px; border:none; background:none;"
 
| style="width:350px; text-align:center; white-space:nowrap; color:#000;" |
 
<h2 style="margin:0; margin-top:2px; border:none; font-size:95%;">{{{welcome-text-1}}}</h2>
 
<h1 style="margin:0; font-size:162%; border:none; padding:2px; color:#000;"><strong>{{{welcome-text-title}}}</strong></h1>
 
<h2 style="margin:0; margin-top:2px; border:none; font-size:95%;">{{{welcome-text-2}}}</h2>
 
<h3 id="articlecount" style="margin:0px; width:100%; text-align:center; font-size:85%; font-weight: normal;">{{{welcome-text-3}}}</h3>
 
|}<!--
 
 
 
// WELCOME BANNER LINK LIST
 
 
 
-->
 
| style="width:13%; font-size:95%;" | <!-- 20% = 39 / 2. 39 = 100 - 61 (above). Adjust to 13% if 3 columns -->
 
* [http://www.teamfortress.com/ {{{welcome-link-website}}}]
 
* [https://steamcommunity.com/app/440/discussions {{{welcome-link-forum}}}]
 
* [[Patches{{if lang}}|{{{welcome-link-updates}}}]]
 
| style="width:13%; font-size:95%;" |
 
* [https://www.youtube.com/user/OfficialTF2Wiki {{{welcome-link-youtube}}}]
 
* [{{{welcome-link-steam-url|https://steamcommunity.com/groups/OTFWiki}}} {{{welcome-link-steam}}}]
 
* [[Team Fortress Wiki:Discussion|{{{welcome-link-discussion}}}]]
 
| style="width:13%; font-size:95%;" |
 
* '''[[Special:UserLogin|{{{welcome-link-register}}}]]'''
 
* [[:Team Fortress Wiki:Tasks|{{{welcome-link-helpout}}}]]
 
* [[Help:Language translation|{{{welcome-link-translate}}}]]
 
|}<!--
 
 
 
// LANGUAGE BANNER
 
 
 
-->
 
{| class="mp-content-table" style="margin-bottom:-5px; text-align:center; font-size:90%; direction: ltr !important;"
 
| <span style="font-size:100%;">'''[[Main Page|English]]'''<!--
 
 
 
  --> '''·''' [[Main Page/ru|<span title="{{lang name|name|ru}}">{{#language:ru}}</span>]]<!--
 
  --> '''·''' [[Main Page/fr|<span title="{{lang name|name|fr}}">{{#language:fr}}</span>]]<!--
 
  --> '''·''' [[Main Page/de|<span title="{{lang name|name|de}}">{{#language:de}}</span>]]<!--
 
  --> '''·''' [[Main Page/pl|<span title="{{lang name|name|pl}}">{{#language:pl}}</span>]]<!--
 
  --> '''·''' [[Main Page/pt-br|<span title="{{lang name|name|pt-br}}">{{#language:pt-br}}</span>]]<!--
 
  --> '''·''' [[Main Page/fi|<span title="{{lang name|name|fi}}">{{#language:fi}}</span>]]<!--
 
  --> '''·''' [[Main Page/es|<span title="{{lang name|name|es}}">{{#language:es}}</span>]]<!--
 
  --> '''·''' [[Main Page/nl|<span title="{{lang name|name|nl}}">{{#language:nl}}</span>]]<!--
 
  --> '''·''' [[Main Page/zh-hans|<span title="{{lang name|name|zh-hans}}">{{#language:zh-hans}}</span>]]<!--
 
  --> '''·''' [[Main Page/zh-hant|<span title="{{lang name|name|zh-hant}}">{{#language:zh-hant}}</span>]]<!--
 
 
  --></span><br /><!--
 
 
 
          -->[[Main Page/cs|<span title="{{lang name|name|cs}}">{{#language:cs}}</span>]]<!--
 
  --> '''·''' [[Main Page/da|<span title="{{lang name|name|da}}">{{#language:da}}</span>]]<!--
 
  --> '''·''' [[Main Page/hu|<span title="{{lang name|name|hu}}">{{#language:hu}}</span>]]<!--
 
  --> '''·''' [[Main Page/it|<span title="{{lang name|name|it}}">{{#language:it}}</span>]]<!--
 
  --> '''·''' [[Main Page/ja|<span title="{{lang name|name|ja}}">{{#language:ja}}</span>]]<!--
 
  --> '''·''' [[Main Page/ko|<span title="{{lang name|name|ko}}">{{#language:ko}}</span>]]<!--
 
  --> '''·''' [[Main Page/no|<span title="{{lang name|name|no}}">{{#language:no}}</span>]]<!--
 
  --> '''·''' [[Main Page/pt|<span title="{{lang name|name|pt}}">{{#language:pt}}</span>]]<!--
 
  --> '''·''' [[Main Page/ro|<span title="{{lang name|name|ro}}">{{#language:ro}}</span>]]<!--
 
  --> '''·''' [[Main Page/sv|<span title="{{lang name|name|sv}}">{{#language:sv}}</span>]]<!--
 
  --> '''·''' [[Main Page/tr|<span title="{{lang name|name|tr}}">{{#language:tr}}</span>]]
 
 
 
|-
 
|}
 
{{Main Page event}}
 
<!--
 
 
 
// CLASSES NAV TABLE
 
 
 
-->{{Navbox
 
 
 
| bodystyle = width:100%; margin-bottom:7px; text-align:center; font-size:90%; border:1px solid #79542B; <!-- // Manual workaround as CSS classes isn't working with Navbox -->
 
| list1 = {{Navbox with columns | child
 
 
 
| bodyclass      = mp-content-table
 
| bodystyle      = text-align: center;
 
 
 
| colheaderstyle = background: #fd9; padding: 5px 0px 0px;
 
| colstyle      = text-align: center; font-size: 120%; font-weight: bold;
 
 
 
| col1header = [[File:{{Main Page class portrait|Scout}}|link=Scout{{if lang}}|74px]]
 
| col2header = [[File:{{Main Page class portrait|Soldier}}|link=Soldier{{if lang}}|74px]]
 
| col3header = [[File:{{Main Page class portrait|Pyro}}|link=Pyro{{if lang}}|74px]]
 
| col4header = [[File:{{Main Page class portrait|Demoman}}|link=Demoman{{if lang}}|74px]]
 
| col5header = [[File:{{Main Page class portrait|Heavy}}|link=Heavy{{if lang}}|74px]]
 
| col6header = [[File:{{Main Page class portrait|Engineer}}|link=Engineer{{if lang}}|74px]]
 
| col7header = [[File:{{Main Page class portrait|Medic}}|link=Medic{{if lang}}|74px]]
 
| col8header = [[File:{{Main Page class portrait|Sniper}}|link=Sniper{{if lang}}|74px]]
 
| col9header = [[File:{{Main Page class portrait|Spy}}|link=Spy{{if lang}}|74px]]
 
| col10header = [[File:User_Boba_Main_Pharah.png|link=Pharah{{if lang}}|74px]]
 
 
 
| col1 = [[Scout{{if lang}}|{{{class-scout-title|{{class name|Scout}}}}}]]
 
| col2 = [[Soldier{{if lang}}|{{{class-soldier-title|{{class name|Soldier}}}}}]]
 
| col3 = [[Pyro{{if lang}}|{{{class-pyro-title|{{class name|Pyro}}}}}]]
 
| col4 = [[Demoman{{if lang}}|{{{class-demoman-title|{{class name|Demoman}}}}}]]
 
| col5 = [[Heavy{{if lang}}|{{{class-heavy-title|{{class name|Heavy}}}}}]]
 
| col6 = [[Engineer{{if lang}}|{{{class-engineer-title|{{class name|Engineer}}}}}]]
 
| col7 = [[Medic{{if lang}}|{{{class-medic-title|{{class name|Medic}}}}}]]
 
| col8 = [[Sniper{{if lang}}|{{{class-sniper-title|{{class name|Sniper}}}}}]]
 
| col9 = [[Spy{{if lang}}|{{{class-spy-title|{{class name|Spy}}}}}]]
 
| col10 = [[Pharah{{if lang}}|Pharah]]
 
 
 
}}
 
 
 
}}<!--
 
 
 
// BEGIN INDEX
 
 
 
-->
 
{| style="width:100%; margin-bottom:7px; background:none; border:none; padding:none;" cellspacing="0" cellpadding="0"
 
|-
 
| style="width:50%; background:#FEFBF6; border:1px solid #79542B;" valign="top" |
 
{| style="width:100%;"
 
| <div class="mp-content-header-alt">{{{box1-index-title}}}</div>
 
 
|-
 
|-
|<!--  
+
|
 
+
<div class="{{#switch:{{{placement}}}|left=floatleft|right=floatright|floatleft}}">
// INDEX TOP ROW
+
<div class="container"><!--
 
+
-->[[Image:{{{image}}}|800px|link=]]
-->{{Navbox with columns | border = none | fullwidth = true
+
{{#if:{{{area1|}}}|<div class="marker" style="left: {{{x1}}}; top: {{{y1}}};"><div>1</div><div class="label">{{{area1}}}</div></div>|}}{{#if:{{{area2|}}}|<div class="marker" style="left: {{{x2}}}; top: {{{y2}}};"><div>2</div><div class="label">{{{area2}}}</div></div>|}}{{#if:{{{area3|}}}|<div class="marker" style="left: {{{x3}}}; top: {{{y3}}};"><div>3</div><div class="label">{{{area3}}}</div></div>|}}{{#if:{{{area4|}}}|<div class="marker" style="left: {{{x4}}}; top: {{{y4}}};"><div>4</div><div class="label">{{{area4}}}</div></div>|}}{{#if:{{{area5|}}}|<div class="marker" style="left: {{{x5}}}; top: {{{y5}}};"><div>5</div><div class="label">{{{area5}}}</div></div>|}}{{#if:{{{area6|}}}|<div class="marker" style="left: {{{x6}}}; top: {{{y6}}};"><div>6</div><div class="label">{{{area6}}}</div></div>|}}{{#if:{{{area7|}}}|<div class="marker" style="left: {{{x7}}}; top: {{{y7}}};"><div>7</div><div class="label">{{{area7}}}</div></div>|}}{{#if:{{{area8|}}}|<div class="marker" style="left: {{{x8}}}; top: {{{y8}}};"><div>8</div><div class="label">{{{area8}}}</div></div>|}}{{#if:{{{area9|}}}|<div class="marker" style="left: {{{x9}}}; top: {{{y9}}};"><div>9</div><div class="label">{{{area9}}}</div></div>|}}{{#if:{{{area10|}}}|<div class="marker" style="left: {{{x10}}}; top: {{{y10}}};"><div>10</div><div class="label">{{{area10}}}</div></div>|}}{{#if:{{{area11|}}}|<div class="marker" style="left: {{{x11}}}; top: {{{y11}}};"><div>11</div><div class="label">{{{area11}}}</div></div>|}}{{#if:{{{area12|}}}|<div class="marker" style="left: {{{x12}}}; top: {{{y12}}};"><div>12</div><div class="label">{{{area12}}}</div></div>|}}{{#if:{{{area13|}}}|<div class="marker" style="left: {{{x13}}}; top: {{{y13}}};"><div>13</div><div class="label">{{{area13}}}</div></div>|}}{{#if:{{{area14|}}}|<div class="marker" style="left: {{{x14}}}; top: {{{y14}}};"><div>14</div><div class="label">{{{area14}}}</div></div>|}}{{#if:{{{area15|}}}|<div class="marker" style="left: {{{x15}}}; top: {{{y15}}};"><div>15</div><div class="label">{{{area15}}}</div></div>|}}{{#if:{{{area16|}}}|<div class="marker" style="left: {{{x16}}}; top: {{{y16}}};"><div>16</div><div class="label">{{{area16}}}</div></div>|}}{{#if:{{{area17|}}}|<div class="marker" style="left: {{{x17}}}; top: {{{y17}}};"><div>17</div><div class="label">{{{area17}}}</div></div>|}}{{#if:{{{area18|}}}|<div class="marker" style="left: {{{x18}}}; top: {{{y18}}};"><div>18</div><div class="label">{{{area18}}}</div></div>|}}{{#if:{{{area19|}}}|<div class="marker" style="left: {{{x19}}}; top: {{{y19}}};"><div>19</div><div class="label">{{{area19}}}</div></div>|}}{{#if:{{{area20|}}}|<div class="marker" style="left: {{{x20}}}; top: {{{y20}}};"><div>20</div><div class="label">{{{area20}}}</div></div>|}}
| bodystyle      = background: none; border: none; padding-bottom: 1px; margin-top:7px;
 
| colheaderstyle = text-align: center; background: none;
 
| colstyle      = text-align: center; font-size: 110%; font-weight:bold;
 
| colwidth      = 33%<!--
 
 
 
-->
 
| col1header = {{{box1-index-image1}}}
 
| col2header = {{{box1-index-image2}}}
 
| col3header = {{{box1-index-image3}}}
 
 
 
| col1 = [[{{{box1-index-article1}}}{{if lang}}|{{{box1-index-article1title|{{{box1-index-article1}}}}}}]]
 
| col2 = [[{{{box1-index-article2}}}{{if lang}}|{{{box1-index-article2title|{{{box1-index-article2}}}}}}]]
 
| col3 = [[{{{box1-index-article3}}}{{if lang}}|{{{box1-index-article3title|{{{box1-index-article3}}}}}}]]
 
 
 
}}<!--
 
 
 
// INDEX BOTTOM ROW
 
 
 
-->{{Navbox with columns | border = none | fullwidth = true
 
| bodystyle      = background:none; border:none; padding-top:1px; padding-bottom:1px;
 
| colheaderstyle = text-align: center; background: none;
 
| colstyle      = text-align: center; font-size: 110%; font-weight:bold;
 
 
 
| colwidth      = 33%<!--
 
 
 
        // These images are placeholders only, because the old button ones need updating.
 
 
 
-->
 
| col1header = {{{box1-index-image4}}}
 
| col2header = {{{box1-index-image5}}}
 
| col3header = {{{box1-index-image6}}}
 
  
| col1 = [[{{{box1-index-article4}}}{{if lang}}|{{{box1-index-article4title|{{{box1-index-article4}}}}}}]]
+
{{#if:{{{spawn1|}}}|<div class="marker {{#switch:{{{spawn-color1}}}|red=spawn-color red|blu=spawn-color blu|mix=spawn-color mix|spawn-color red}}" style="left: {{{xA}}}; top: {{{yA}}};"><div>A</div><div class="label">{{{spawn1}}}</div></div>|}}
| col2 = [[{{{box1-index-article5}}}{{if lang}}|{{{box1-index-article5title|{{{box1-index-article5}}}}}}]]
+
{{#if:{{{spawn2|}}}|<div class="marker {{#switch:{{{spawn-color2}}}|red=spawn-color red|blu=spawn-color blu|mix=spawn-color mix|spawn-color red}}" style="left: {{{xB}}}; top: {{{yB}}};"><div>B</div><div class="label">{{{spawn2}}}
| col3 = [[{{{box1-index-article6}}}{{if lang}}|{{{box1-index-article6title|{{{box1-index-article6}}}}}}]]
+
</div></div>|}}
 +
{{#if:{{{spawn3|}}}|<div class="marker {{#switch:{{{spawn-color3}}}|red=spawn-color red|blu=spawn-color blu|mix=spawn-color mix|spawn-color red}}" style="left: {{{xC}}}; top: {{{yC}}};"><div>C</div><div class="label">{{{spawn3}}}</div></div>|}}
 +
{{#if:{{{spawn4|}}}|<div class="marker {{#switch:{{{spawn-color4}}}|red=spawn-color red|blu=spawn-color blu|mix=spawn-color mix|spawn-color red}}" style="left: {{{xD}}}; top: {{{yD}}};"><div>D</div><div class="label">{{{spawn4}}}</div></div>|}}
 +
{{#if:{{{spawn5|}}}|<div class="marker {{#switch:{{{spawn-color5}}}|red=spawn-color red|blu=spawn-color blu|mix=spawn-color mix|spawn-color red}}" style="left: {{{xE}}}; top: {{{yE}}};"><div>E</div><div class="label">{{{spawn5}}}</div></div>|}}
 +
</div>
 +
</div>
  
}}<!--  
+
<div class="wrapper">
 
+
{{#if:{{{area1|}}}|
// INDEX POPULAR TOPICS
+
<div><!--
 
+
--><div style="margin-bottom:.5em;">[[File:Map marker circle.png|25px|link=]]<span style="padding:0 10px;font-weight:600;"><!--
--><center><hr style="background:#B47128; margin-left:11px; margin-right:11px; color:none; border:none; text-align:center;" /></center><!--
+
-->{{lang
 
+
| en = Locations
-->{{Navbox with columns | border = none | fullwidth = true
+
  | da = Steder
  | bodystyle      = background:none; border:none;
+
}}
| colheaderstyle = text-align: center;
+
</span></div>
| colstyle      = text-align: center; font-size: 110%;
+
<div class="scroll-list">
 
+
*{{#if:{{{area1|}}}|{{{area1}}}|}}
| col1 = {{{box1-index-col1}}}
+
*{{#if:{{{area2|}}}|{{{area2}}}|}}
 
+
*{{#if:{{{area3|}}}|{{{area3}}}|}}
| col2style      = font-weight: bold; background:#FEF5E0;
+
*{{#if:{{{area4|}}}|{{{area4}}}|}}
| col2 = {{{col2-heading|Trending topics:}}}<br />{{{box1-index-col2|
+
*{{#if:{{{area5|}}}|{{{area5}}}|}}
[[Pharah{{if lang}}|Pharah]]<br />
+
*{{#if:{{{area6|}}}|{{{area6}}}|}}
[[Dustbowl Default{{if lang}}|Dustbowl Default]]<br />
+
*{{#if:{{{area7|}}}|{{{area7}}}|}}
[[Unusual{{if lang}}|{{item name|unusual}}]]<br />
+
*{{#if:{{{area8|}}}|{{{area8}}}|}}
[[Competitive Mode{{if lang}}|{{common string|competitive mode}}]]
+
*{{#if:{{{area9|}}}|{{{area9}}}|}}
}}}
+
*{{#if:{{{area10|}}}|{{{area10}}}|}}
 
+
*{{#if:{{{area11|}}}|{{{area11}}}|}}
| col3 = {{{box1-index-col3}}}
+
*{{#if:{{{area12|}}}|{{{area12}}}|}}
 +
*{{#if:{{{area13|}}}|{{{area13}}}|}}
 +
*{{#if:{{{area14|}}}|{{{area14}}}|}}
 +
*{{#if:{{{area15|}}}|{{{area15}}}|}}
 +
*{{#if:{{{area16|}}}|{{{area16}}}|}}
 +
*{{#if:{{{area17|}}}|{{{area17}}}|}}
 +
*{{#if:{{{area18|}}}|{{{area18}}}|}}
 +
*{{#if:{{{area19|}}}|{{{area19}}}|}}
 +
*{{#if:{{{area20|}}}|{{{area20}}}|}}
 +
</div>
 +
</div>
 +
|}}
  
 +
{{#if:{{{spawn1|}}}|
 +
<div style="margin-top:20px;"><!--
 +
--><div style="margin-bottom:.5em;">[[File:Map marker mixed.png|25px|link=]]<span style="padding:0 10px;font-weight:600;"><!--
 +
-->{{lang
 +
| en = Spawns
 +
| da = Baser
 
}}
 
}}
|-
+
</span></div>
|}<!--
+
<div class="list">
 
+
*{{#if:{{{spawn1|}}}|{{{spawn1}}}|}}
// FEATURED ARTICLE
+
*{{#if:{{{spawn2|}}}|{{{spawn2}}}|}}
 
+
*{{#if:{{{spawn3|}}}|{{{spawn3}}}|}}
-->
+
*{{#if:{{{spawn4|}}}|{{{spawn4}}}|}}
{| style="width:100%;"
+
*{{#if:{{{spawn5|}}}|{{{spawn5}}}|}}
| colspan="2" | <div class="mp-content-header-alt" style="border-top: 1px solid #79542B;">{{{box2-fa-title}}}&nbsp;— [[{{FeaturedArticle{{if lang}}|type=name}}|{{FeaturedArticle{{if lang}}|type=display}}]]</div>
+
</div>
|-
+
</div>
| style="padding:10px;" | {{FeaturedArticle{{if lang}}|type=text}}
+
|}}
| style="width:auto;" | {{FeaturedArticle{{if lang}}|type=image}}
+
</div>
<!-- Clear image being float:right -->
+
</div>
<div style="clear: both;"></div>
 
|}<!--
 
 
 
--><center><hr style="background:#B47128; margin-left:3px; margin-right:3px; margin-bottom:-3px; color:none; border:none; text-align:center;" /></center><!--
 
 
 
-->
 
{| style="width:100%;"
 
! style="font-size:95%; padding:10px;" colspan="2" | {{{box2-fa-links|<!--
 
  -->[[{{FeaturedArticle|type=name}}|'''''Continue reading''''']]{{n}}<!--
 
  -->[[Team Fortress Wiki:Featured articles|Featured article project]]{{n}}<!--
 
  -->[[Template:FeaturedArticle|Previously featured]]
 
}}}
 
|-
 
|}<!--
 
 
 
// BEGIN RIGHT COLUMN
 
 
 
-->
 
| &nbsp;&nbsp;
 
| style="width:50%; background:#FEFBF6; border:1px solid #79542B;" valign="top" | <!--
 
 
 
// LATEST UPDATES
 
 
 
-->
 
{| class="plainlinks" style="width:100%;"
 
| colspan="2" | <div class="mp-content-header-alt">{{{box3-updates-title}}}<div style="float:right;">[[File:Full Moon {{If full moon}} sml.png|30x30px|link=Full Moon{{if lang}}|{{{full-moon-icon-alt|Moon status}}}]]</div></div>
 
|-
 
| colspan="2" |
 
{| style="width:100%; padding:15px; background:none; border:none; text-align:center;" cellspacing="0" class="plainlinks"<!--
 
 
 
// The following will come from Template:Latest updates.
 
 
 
-->
 
|- style="font-size:100%;"
 
! width="50%" | {{{box3-updates-text-latestpatch|Latest patch}}}
 
! width="50%" | {{{box3-updates-text-latestblog|Latest blog}}}
 
|- style="font-size:110%;"
 
! [[April 1, 2021 Patch|April 1, 2021]]
 
! {{Updates|type=blog}}
 
|- style="font-size:95%; {{#ifeq:{{Updates|type=patch-daysago}}{{Updates|type=blog-daysago}}{{Updates|type=patch-beta-daysago}} | {{ns:0}} | display:none; }}"
 
| (Today)
 
| ({{Updates|type=blog-daysago}})
 
 
|}
 
|}
{| style="width:100%; background:none; border:none; padding-bottom:1px; text-align:center;" cellspacing="0" class="plainlinks"
+
</div>
| <center><hr style="background:#B47128; margin-left:11px; margin-right:11px; color:none; border:none; text-align:center;" /></center>
 
|-
 
| style="font-size:90%; padding:4px; width:100%;" | <!--
 
-->{{{box3-updates-text-latestwiki-cap|Latest [[Wiki Cap{{if lang}}|Wiki Cap]] [[List of Wiki Cap owners{{if lang}}|recipients]]:}}}<br />'''{{Updates|type=wiki-cap-recipient}}'''
 
|-
 
| <center><hr style="background:#B47128; margin-left:11px; margin-right:11px; color:none; border:none; text-align:center;" /></center>
 
|}
 
|-
 
| style=padding:10px; colspan=2 | {{{box3-updates-contents|{{Current Events{{if lang}}}}}}}
 
|} <!--
 
  
// DID YOU KNOW
+
</includeonly><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:
{| style="width:100%;"
+
* <code>title</code> - Title of the box.
| colspan="2" | <div class="mp-content-header-alt" style="border-top: 1px solid #79542B;">{{{box4-dyk-title}}}</div>
+
* <code>collapsed</code> - Collapses the box on load. Off by default. Use <code>collapsed = yes</code> to collapse 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.
| style=padding:10px; | {{{box4-dyk-contents|{{Did you know main{{if lang}}}}}}}
+
* <code>placement</code> - The placement of the image. Has 2 values: <code>left</code> and <code>right</code>. 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.
 +
** <code>area''1''</code> - Name of a given area/location. Adds the respective number to the marker.
 +
*** <code>x''1''</code> and <code>y''1''</code> - X and Y coordinates of the [[:File:Map marker circle.png|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.
 +
** <code>spawn''1''</code> - Name of a given spawn point. Adds the respective letter to the marker.
 +
*** <code>x''A''</code> and <code>y''A''</code> - X and Y coordinates of the [[:File:Map marker red.png|spawn point marker]]. The secondary letter is to be replaced with a letter from the range (A-E), and that letter ''must'' be capitalized.
 +
***<code>spawn-color''1'' = <value></code> - The marker color value of the given spawn point. There are 3 marker color values: <code>red</code> (default), <code>blu</code>, <code>mix</code>. The marker color value <code>mix</code> are only to be used to indicate shared spawn rooms, as in the case with [[Payload]] maps.
  
--><center><hr style="background:#B47128; margin-left:3px; margin-right:3px; margin-bottom:-3px; color:none; border:none; text-align:center;" /></center><!--
+
* 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 ===
{| style="width:100%;"
+
<pre>
! style="font-size:95%; padding:10px;" colspan="2" | {{{box4-dyk-links|<!--  
+
{{Map overview
  -->[[Help:Did you know|Add a fact]]{{n}}<!--
+
| title = Pier - overview indicators
  -->[[Template:Did you know|More "Did you know"]]{{n}}<!--
+
| image = Pier overview.png
  -->[[Previously featured facts|Previously featured]]
+
|-
}}}
+
| 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
 +
}}
 +
</pre>
 +
will yield
  
// END COLUMNS TABLE
+
{{User:Wookipan/Map overview
 
+
| title = Pier - location indicators
// TEAM FORTRESS WIKI
+
| image = Pier overview.png
 
+
|-
-->
+
| spawn1 = BLU first spawn
{| class="mp-content-table" style="margin-bottom:7px;"
+
| spawn-color1 = blu
! class="mp-content-header" | {{{box5-wiki-title|Team Fortress Wiki}}}
+
| xA = 335px
|-
+
| yA = 150px
| {{Navbox with columns | bodystyle = border: none;margin-top: 0 !important;
+
| spawn2 = BLU second spawn
  | colheaderstyle = font-size:105%;
+
| spawn-color2 = blu
  | col1header = {{{box5-wiki-title3|Team Fortress Wiki}}}
+
| xB = 193px
  | col1 = {{TFWiki navbar|child=true|bodystyle=width:100%; border:none;}}
+
| yB = 230px
  | col2header = {{{box5-wiki-title2|How you can help}}}
+
| spawn3 = RED first spawn / BLU third spawn
  | col2 {{Navbox with columns
+
| spawn-color3 = mix
      | border = child | fullwidth = true | colstyle = text-align: center; font-size: 105%;
+
| xC = 245px
      | col1 = {{{box5-wiki-col1|<!--  
+
| yC = 400px
            -->[[Help:Language translation|'''Translating''']]<br /><!--
+
  | spawn4 = RED final spawn
            -->[[Help:Contents|Editing]]<br /><!--
+
| spawn-color4 = red
            -->[[:Category:Articles marked for cleanup|Cleanup articles]]<br /><!--
+
| xD = 608px
            -->[[:Category:Out of date pages|Update out-of-date pages]]<br /><!--
+
| yD = 512px
            -->[[:Category:Stubs|Expand stubs]]<br /><!--
+
|-
            -->[[:Category:Images that need improving|Improve bad images]]
+
| area1 = Beach
              }}}
+
| x1 = 210px
 
+
| y1 = 120px
      | col2 = {{{box5-wiki-col2|<!--
+
| area2 = Caves
            -->[[Help:Style guide|'''Style guide''']]<br /><!--
+
| x2 = 285px
            -->[[Team Fortress Wiki:Policies|Editing guidelines]]<br /><!--
+
| y2 = 230px
            -->[[Team Fortress Wiki:Images|Uploading images]]<br /><!--
+
| area3 = Minivan parking space
            -->[[Team Fortress Wiki:Licensing images|Licensing restrictions]]<br /><!--
+
| x3 = 280px
            -->[[Help:Group rights|Administrators]]
+
| y3 = 290px
              }}}
+
| area4 = Cliff
           
+
| x4 = 240px
      }}
+
| y4 = 220px
  | list1 = {{CentralDiscussion|child=true}}
+
| area5 = Bridge
  }}
+
| x5 = 200px
<!--
+
| y5 = 320px
 
+
| area6 = Red carpet building
--><center><hr style="background:#B47128; margin-bottom:-3px; width:100%; color:none; border:none; text-align:center;" /></center><!--
+
| x6 = 160px
 
+
| y6 = 350px
-->
+
| area7 = Wine cellar
|-
+
| x7 = 90px
| style="font-size:95%; padding:10px; margin-top:1px; text-align:center;" | {{{box5-wiki-statistics|'''[[Special:Statistics|Team Fortress Wiki Statistics]]''':&nbsp;<!--
+
| y7 = 390px
  -->{{NUMBEROFARTICLES}} [[Special:AllPages|articles]]{{n}}<!--
+
| area8 = Docks
  -->{{NUMBEROFFILES}} [[:Category:Images|uploaded images & media]]{{n}}<!--
+
| x8 = 135px
  -->{{NUMBEROFUSERS}} [[Special:ListUsers|registered users]]{{n}}<!--
+
| y8 = 520px
  -->{{NUMBEROFEDITS}} [[Special:RecentChanges|edits]] since June 8, 2010
+
| area9 = Warehouse
}}}
+
| x9 = 305px
|-
+
| y9 = 480px
|}<!--
+
| area10 = Kitchen
 
+
| x10 = 340px
// VALVE WIKI NETWORK
+
| y10 = 410px
// The following will come from {{VWN}}.
+
| area11 = Sandy beach
 
+
| x11 = 425px
-->
+
| y11 = 460px
{| class="mp-content-table plainlinks" style="margin-bottom:7px;"
+
| area12 = Barn bridge
! class="mp-content-header" colspan="5" | {{{box6-vwn-title}}}
+
| x12 = 430px
|-
+
| y12 = 400px
| style="padding:0;" | {{VWN|child=true}}
+
| area13 = Small barn
|}<!--
+
| x13 = 468px
 
+
| y13 = 425px
// COPYRIGHT
+
| area14 = Building adjacent to the barn
 
+
| x14 = 505px
-->
+
| y14 = 460px
{| class="mp-content-table plainlinks" style="border:1px solid #aaa; margin:0; text-align:center; font-size:90%;"
+
| area15 = Target range
| © 2010–{{CURRENTYEAR}} [https://www.valvesoftware.com/ Valve Corporation]. All rights reserved. All trademarks are property of their respective owners in the US and other countries. See [[Team Fortress Wiki:Terms of Use|Terms of Use]] for details.
+
| x15 = 600px
|}<!--
+
| y15 = 460px
 
+
}}
// MAIN PAGE CATEGORIES
 
// DISPLAYTITLE
 
 
 
--><includeonly>{{#if:{{{displaytitle|{{{DISPLAYTITLE|}}}}}}|{{DISPLAYTITLE:{{{displaytitle|{{{DISPLAYTITLE|}}}}}}}}|}}<!--
 
-->{{lang cat|Main|sort=&#32;}}{{lang cat|Main Page|sort=&#32;}}
 
</includeonly>
 

Revision as of 04:06, 12 July 2021

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