This is a wiki for a reason. Anyone can contribute. If you see something that is inaccurate or can be improved, don't ask that it be fixed--just improve it.
[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]

Difference between revisions of "Template:Loc"

From Project 1999 Wiki
Jump to: navigation, search
 
(12 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Introduction==
 
==Introduction==
Template for creating a "loc link".  These links only work with zones that have been [[:Category:Loc Mapped| Loc-Mapped]].
+
Template for creating a "loc link".  Note that such links can actually contain locs (plural), if desired.
 +
 
 +
When clicked, these links display a map of the linked zone, along with a red "X" at the linked location .  These links only work with zones that have been [[:Category:Loc Mapped| Loc-Mapped]].
  
 
==Usage==
 
==Usage==
Line 7: Line 9:
 
<code>
 
<code>
 
<nowiki>
 
<nowiki>
{{loc | *zoneName* | *loc ("y, x")* | (Optional) text}}
+
{{loc|*zoneName*|*loc ("y, x")*|(Optional) text}}
 
</nowiki>
 
</nowiki>
 
</code>
 
</code>
  
 +
== Examples ==
 +
 +
 +
=== Simple Example ===
 
For instance you could use:
 
For instance you could use:
  
 
<code>
 
<code>
 
<nowiki>
 
<nowiki>
{{loc | Firiona Vie |-3648, 2043}}
+
{{loc|Firiona Vie|-3648, 2043}}
 
</nowiki>
 
</nowiki>
 
</code>
 
</code>
  
to generate: "{{loc | Firiona Vie |-3648, 2043}}".
+
to generate: "{{loc|Firiona Vie|-3648, 2043}}".
 +
 
 +
=== Alternate Text Example ===
  
 
Alternatively you could use:
 
Alternatively you could use:
Line 25: Line 33:
 
<code>
 
<code>
 
<nowiki>
 
<nowiki>
{{loc | Firiona Vie | -3648, 2043 | Loom}}
+
{{loc|Firiona Vie|-3648, 2043|Loom}}
 
</nowiki>
 
</nowiki>
 
</code>
 
</code>
  
to generate: "{{loc | Firiona Vie | -3648, 2043 | Loom}}".
+
to generate: "{{loc|Firiona Vie|-3648, 2043|Loom}}".
 +
 
 +
=== Multiple Locs Example ===
 +
 
 +
<code><nowiki>{{Loc|Western Karana|-2306,-5770 / -2306,-4223 / -3280, -5470 / -3855,-4223 / -3855,-5770}}</nowiki></code>
 +
 
 +
to generate: "{{Loc|Western Karana|-2306,-5770 / -2306,-4223 / -3280, -5470 / -3855,-4223 / -3855,-5770}}".
 +
 
 +
'''NOTE:''' You do not have to use "/" to separate the locs.  You can use parentheses, semi-colons, ... anything EXCEPT commas and the "|" character (because it's part of the wiki template syntax).
  
</noinclude>
+
</noinclude><includeonly><span class="loc-link" data-zone="{{{1}}}" data-loc="{{{2}}}">[[{{{1}}}|{{{3|{{{2}}}}}}]] [[File:Map Icon.png|12px]]</span></includeonly>
<includeonly><span class="loc-link" data-zone="{{{1}}}" data-loc="{{{2}}}">[[{{{1}}}|{{{3|{{{1}}} ({{{2}}})}}}]]</span></includeonly>
+

Latest revision as of 18:28, 2 January 2020

Contents

Introduction

Template for creating a "loc link". Note that such links can actually contain locs (plural), if desired.

When clicked, these links display a map of the linked zone, along with a red "X" at the linked location . These links only work with zones that have been Loc-Mapped.

Usage

{{loc|*zoneName*|*loc ("y, x")*|(Optional) text}}

Examples

Simple Example

For instance you could use:

{{loc|Firiona Vie|-3648, 2043}}

to generate: "-3648, 2043 Map Icon.png".

Alternate Text Example

Alternatively you could use:

{{loc|Firiona Vie|-3648, 2043|Loom}}

to generate: "Loom Map Icon.png".

Multiple Locs Example

{{Loc|Western Karana|-2306,-5770 / -2306,-4223 / -3280, -5470 / -3855,-4223 / -3855,-5770}}

to generate: "-2306,-5770 / -2306,-4223 / -3280, -5470 / -3855,-4223 / -3855,-5770 Map Icon.png".

NOTE: You do not have to use "/" to separate the locs. You can use parentheses, semi-colons, ... anything EXCEPT commas and the "|" character (because it's part of the wiki template syntax).