Jump to content

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

From Stardew Valley Wiki
imported>Samu698
m Added all the postions
imported>Samu698
m .
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="User:Samu698/Sandbox/Template_Map/styles.css" /><div class="mapcontainer" style="width:{{#if:{{{3|}}}|{{{3|}}}|400}}px;height:{{#expr:({{#if:{{{3|}}}|{{{3|}}}|400}}/400*244)round0}}px;">
<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;">
<p style="margin:0;">
<p style="margin:0;">
[[The Desert|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:2%;left:1%;width:25%;height:23%"></span>]]
[[The Desert|<span style="position:absolute;background:rgba(255, 0, 0, 50%);top:2%;left:1%;width:25%;height:23%"></span>]]
Line 39: Line 39:
<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>{{#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>
<noinclude>
<noinclude>
Map template with clickable links
== 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: {{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:

Smaller map(no links):

Map with 3 locations:

Map with Island: