Difference between revisions of "Template:MapNote"
From Fallen Sword Wiki
Lusterless (Talk | contribs) |
|||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><div style="position: relative">{{{image}}}<div style="position: absolute; left: 1px; top: 1px; background: transparent;color:#000;"><b>{{{type}}}</b></div><div style="position: absolute; left: 0px; top: 0px; background: transparent;"><b>[[{{{target}}}|<span style="color:#ff0">{{{type}}}</span>]]</b></div></div></includeonly><noinclude> | + | <includeonly><div style="position: relative">{{{image}}}<div style="position: absolute; left: 1px; top: 1px; background: transparent;color:#000;"><b>{{{type}}}</b></div><div style="position: absolute; left: 0px; top: 0px; background: transparent;"><b>[[{{{target}}}|<span style="color:#ff0">{{{type}}}</span>]]</b></div>{{#if:{{{target-2|}}}|<div style="position: absolute; right: -1px; top: 1px; background: transparent;"><b>[[{{{target-2}}}|<span style="color:#000">{{{type-2}}}</span>]]</b></div><div style="position: absolute; right: 0px; top: 0px; background: transparent;"><b>[[{{{target-2}}}|<span style="color:#ff0">{{{type-2}}}</span>]]</b></div>}}</div></includeonly><noinclude> |
For use in maps to insert notations. | For use in maps to insert notations. | ||
See [[Template:Map]]. | See [[Template:Map]]. | ||
Line 8: | Line 8: | ||
* WA = World Area | * WA = World Area | ||
* A = Area | * A = Area | ||
+ | * T = Local tunnel/Connection | ||
* Q = Quest/Quest Part | * Q = Quest/Quest Part | ||
* S = Shop | * S = Shop | ||
Line 14: | Line 15: | ||
=Example= | =Example= | ||
− | <pre>{{MapNote|image=http:// | + | <pre>{{MapNote|image=http://cdn.fallensword.com/stairways/207_b.gif|target=Saneri Rocks (South)|type=A}}</pre> |
is eqivalent to: | is eqivalent to: | ||
− | <pre><div style="position: relative">http:// | + | <pre><div style="position: relative">http://cdn.fallensword.com/stairways/207_b.gif<div style="position: absolute; left: 0px; top: 0px; |
background-color: #fff;"><b>[[Saneri Rocks (South)|[A]]]</b></div></div></pre> | background-color: #fff;"><b>[[Saneri Rocks (South)|[A]]]</b></div></div></pre> | ||
and results in:<br> | and results in:<br> | ||
− | {{MapNote|image=http:// | + | {{MapNote|image=http://cdn.fallensword.com/stairways/207_b.gif|target=Saneri Rocks (South)|type=A}} |
+ | |||
+ | =Two Targets= | ||
+ | If a map cell has two different targets or types (e.g. quest location on stairs), you can modify the template. | ||
+ | <pre>|{{MapNote|image=URL TO TILE IMAGE|target=PAGE TO LINK TO|type=TYPE OF PAGE|target-2=SECOND PAGE LINK|type-2=SECOND PAGE TYPE}}</pre> | ||
+ | |||
+ | For example, this code | ||
+ | <pre>|{{MapNote|image=http://cdn.fallensword.com/stairways/207_b.gif|target=Saneri Rocks (South)|type=A|target-2=Masters Honor|type-2=Q}}</pre> | ||
+ | results in:<br/> | ||
+ | {{MapNote|image=http://cdn.fallensword.com/stairways/207_b.gif|target=Saneri Rocks (South)|type=A|target-2=Masters Honor|type-2=Q}} | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Latest revision as of 14:47, 18 April 2022
For use in maps to insert notations. See Template:Map.
Template
|{{MapNote|image=URL TO TILE IMAGE|target=PAGE TO LINK TO|type=TYPE OF PAGE}}
TYPE OF PAGE should be one of:
- WA = World Area
- A = Area
- T = Local tunnel/Connection
- Q = Quest/Quest Part
- S = Shop
- P = Portal
- R = Relic
Example
{{MapNote|image=http://cdn.fallensword.com/stairways/207_b.gif|target=Saneri Rocks (South)|type=A}}
is eqivalent to:
<div style="position: relative">http://cdn.fallensword.com/stairways/207_b.gif<div style="position: absolute; left: 0px; top: 0px; background-color: #fff;"><b>[[Saneri Rocks (South)|[A]]]</b></div></div>
and results in:
A
Two Targets
If a map cell has two different targets or types (e.g. quest location on stairs), you can modify the template.
|{{MapNote|image=URL TO TILE IMAGE|target=PAGE TO LINK TO|type=TYPE OF PAGE|target-2=SECOND PAGE LINK|type-2=SECOND PAGE TYPE}}
For example, this code
|{{MapNote|image=http://cdn.fallensword.com/stairways/207_b.gif|target=Saneri Rocks (South)|type=A|target-2=Masters Honor|type-2=Q}}
results in: