Difference between revisions of "User:Samu698/Sandbox/Template Map"

From Stardew Valley Wiki
Jump to navigation Jump to search
m (Added a few locations)
m (.)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><templatestyles src="User:Samu698/Sandbox/Template_Map/styles.css" />
+
<includeonly><templatestyles src="template:Map/styles.css" /><div class="mapcontainer" style="width:{{#if:{{{3|}}}|{{{3|}}}|400}}px;height:{{#expr:({{#if:{{{3|}}}|{{{3|}}}|400}}/400*244)round0}}px;">
<div class="mapcontainer" style="width:{{#if:{{{3|}}}|{{{3|}}}|400}}px;height:{{#expr:({{#if:{{{3|}}}|{{{3|}}}|400}}/400*244)round0}}px;">
+
<p style="margin:0;">
[[Desert|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[The Desert|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:2%;left:1%;width:25%;height:23%"></span>]]
[[Pierre's General Store|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:105px;left:225px;width:20px;height:20px"></span>]]
+
[[Pierre's General Store|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:41%;left:58%;width:3%;height:7%"></span>]]
[[Farmhouse|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:95px;left:150px;width:20px;height:20px"></span>]]
+
[[Blacksmith|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:52.3%;left:68.5%;width:7%;height:5.3%"></span>]]
[[Blacksmith|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:135px;left:275px;width:30px;height:13px"></span>]]
+
[[Marnie's Ranch|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:52.7%;left:35%;width:7%;height:6%"></span>]]
[[Marnie's Ranch|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:136px;left:140px;width:30px;height:15px"></span>]]
+
[[The Stardrop Saloon|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:48.6%;left:58.5%;width:4%;height:6.5%"></span>]]
[[The Stardrop Saloon|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:51.6%;left:58.5%;width:4%;height:6.5%"></span>]]
+
[[The Mines|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12%;left:70.5%;width:4.5%;height:6%"></span>]]
[[The Mines|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:15%;left:70.5%;width:4.5%;height:6%"></span>]]
+
[[Carpenter's Shop|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:21%;left:60%;width:3.5%;height:6%"></span>]]
[[Carpenter's Shop|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Secret Woods|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:32%;left:1%;width:15.5%;height:36%"></span>]]
[[Secret Woods|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Abandoned House|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:76%;left:20%;width:6%;height:6%"></span>]]
[[Abandoned House|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Spa|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:9%;left:47%;width:6%;height:8%"></span>]]
[[Spa|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Community Center|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:28.5%;left:56.5%;width:5.5%;height:7%"></span>]]
[[Community Center|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Museum|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:57.8%;left:73%;width:4%;height:4.5%"></span>]]
[[Museum|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[JojaMart|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:38%;left:70.5%;width:9.5%;height:9.5%"></span>]]
[[JojaMart|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[1 Willow Lane|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:54.5%;left:51%;width:3%;height:7%"></span>]]
[[1 Willow Lane|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[2 Willow Lane|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:56.5%;left:54.3%;width:3%;height:5%"></span>]]
[[2 Willow Lane|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Traveling Cart|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:52%;left:22%;width:4%;height:4.5%"></span>]]
[[Traveling Cart|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Adventurer's Guild|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:17%;left:74.5%;width:2.5%;height:5.5%"></span>]]
[[Adventurer's Guild|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[The Sewers|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:62%;left:57.5%;width:2.3%;height:2.5%"></span>]]
[[The Sewers|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Wizard's Tower|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:48%;left:16.7%;width:4%;height:12%"></span>]]
[[Wizard's Tower|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Bus Stop|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:29.5%;left:43.3%;width:4.5%;height:6%"></span>]]
[[Bus Stop|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Trailer|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:49%;left:64.5%;width:3%;height:3%"></span>]]
[[Joja Warehouse|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Harvey's Clinic|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:41%;left:56%;width:2%;height:7%"></span>]]
[[Trailer|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[The Farm|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:36%;left:28%;width:15%;height:16.5%"></span>]]
[[Harvey's Clinic|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Fish Shop|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:82%;left:69.5%;width:4%;height:7%"></span>]]
[[Casino|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Leah's Cottage|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:59%;left:37.5%;width:3%;height:4.5%"></span>]]
[[The Farm|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Elliott's Cabin|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:76%;left:68.3%;width:3%;height:4.5%"></span>]]
[[Fish Shop|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Tent|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:18%;left:64%;width:3%;height:4%"></span>]]
[[Leah's Cottage|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Treehouse|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12%;left:61%;width:5%;height:5.5%"></span>]]
[[Elliott's Cabin|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Witch's Hut|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:3%;left:57%;width:5%;height:8%"></span>]]
[[Tent|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Ice Cream Stand|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:59%;left:68.5%;width:3%;height:4%"></span>]]
[[Treehouse|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Graveyard|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:57.5%;left:60%;width:3.5%;height:5%"></span>]]
[[Witch's Hut|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Dog Pen|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:49%;left:62.8%;width:1.4%;height:3.5%"></span>]]
[[Ice Cream Stand|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Farmhouse|<span style="position:absolute;background:rgba(0, 0, 255, 50%);top:36.5%;left:37.5%;width:5%;height:7%"></span>]]
[[Movie Theater|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Desert Trader|<span style="position:absolute;background:rgba(0, 0, 255, 50%);top:5%;left:14%;width:8%;height:7%"></span>]]
[[Desert Trader|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
[[Casino|<span style="position:absolute;background:rgba(0, 0, 255, 50%);top:14%;left:3%;width:8%;height:7%"></span>]]
[[Graveyard|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
</p>
[[Dog Pen|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:12px;left:5px;width:100px;height:55px"></span>]]
+
<div class="maplocation" style="left:{{#if:{{{1|}}}|{{{1|}}}|0}}px;top:{{#if:{{{2|}}}|{{{2|}}}|0}}px;">[[File:Maplocation.png|20px|link=]]</div>{{#if:{{{loc2x|}}} | <div class="maplocation" style="left:{{#if:{{{loc2x|}}}|{{{loc2x|}}}|0}}px;top:{{#if:{{{loc2y|}}}|{{{loc2y|}}}|0}}px;">[[File:Maplocation.png|20px|link=]]</div>|}}{{#if:{{{loc3x|}}} | <div class="maplocation" style="left:{{#if:{{{loc3x|}}}|{{{loc3x|}}}|0}}px;top:{{#if:{{{loc3y|}}}|{{{loc3y|}}}|0}}px;">[[File:Maplocation.png|20px|link=]]</div>|}}{{#if:{{{loc4x|}}} | <div class="maplocation" style="left:{{#if:{{{loc4x|}}}|{{{loc4x|}}}|0}}px;top:{{#if:{{{loc4y|}}}|{{{loc4y|}}}|0}}px;">[[File:Maplocation.png|20px|link=]]</div>|}}[[File:Map{{#ifeq:{{{island|}}}|true|_with_Island|}}.png|{{#if:{{{3|}}}|{{{3|}}}|400}}px|link=]]</div></includeonly>
<div class="maplocation" style="left:{{#if:{{{1|}}}|{{{1|}}}|0}}px;top:{{#if:{{{2|}}}|{{{2|}}}|0}}px;">[[File:Maplocation.png|20px|link=]]</div>
+
<noinclude>
{{#if:{{{loc2x|}}} | <div class="maplocation" style="left:{{#if:{{{loc2x|}}}|{{{loc2x|}}}|0}}px;top:{{#if:{{{loc2y|}}}|{{{loc2y|}}}|0}}px;">[[File:Maplocation.png|20px|link=]]</div>|}}
+
== Map template with clickable links ==
{{#if:{{{loc3x|}}} | <div class="maplocation" style="left:{{#if:{{{loc3x|}}}|{{{loc3x|}}}|0}}px;top:{{#if:{{{loc3y|}}}|{{{loc3y|}}}|0}}px;">[[File:Maplocation.png|20px|link=]]</div>|}}{{#if:{{{loc4x|}}} | <div class="maplocation" style="left:{{#if:{{{loc4x|}}}|{{{loc4x|}}}|0}}px;top:{{#if:{{{loc4y|}}}|{{{loc4y|}}}|0}}px;">[[File:Maplocation.png|20px|link=]]</div>|}}[[File:Map{{#ifeq:{{{island|}}}|true|_with_Island|}}.png|{{#if:{{{3|}}}|{{{3|}}}|400}}px|link=]]</div>
+
The CSS for this template can be found at [[User:Samu698/Sandbox/Template Map/styles.css]]
  
 
+
TODO: disable links when size is less than 400
</includeonly>
 
<noinclude>
 
{{Stub}}
 
Map template with clickable links
 
 
Normal map: {{User:samu698/Sandbox/Template_Map|100|100}}
 
Normal map: {{User:samu698/Sandbox/Template_Map|100|100}}
 
Smaller map(no links): {{User:samu698/Sandbox/Template_Map|100|10|200}}
 
Smaller map(no links): {{User:samu698/Sandbox/Template_Map|100|10|200}}
Map with 3 locations: {{Map|200|150|loc2x=276|loc2y=54|loc3x=96|loc3y=130}}
+
Map with 3 locations: {{User:samu698/Sandbox/Template_Map|200|150|loc2x=276|loc2y=54|loc3x=96|loc3y=130}}
Map with Island: {{Map|360|214|island=true}}
+
Map with Island: {{User:samu698/Sandbox/Template_Map|360|214|island=true}}
 
</noinclude>
 
</noinclude>

Latest revision as of 21:32, 28 June 2022


Map template with clickable links

The CSS for this template can be found at User:Samu698/Sandbox/Template Map/styles.css

TODO: disable links when size is less than 400

Normal map:

Maplocation.png
Map.png

Smaller map(no links):

Maplocation.png
Map.png

Map with 3 locations:

Maplocation.png
Maplocation.png
Maplocation.png
Map.png

Map with Island:

Maplocation.png
Map with Island.png