Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Navi: Difference between revisions

Template page
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{ #if:{{{prefix|}}} | {{{prefix}}} }}<span class="navi-copy" style="display: inline-block;"><span>{{{1}}}</span><span>{{{2}}}</span><span>{{{3}}}</span></span>{{ #if:{{{postfix|}}} | {{{postfix}}} }}</includeonly><noinclude>__NOTOC__
{{#if:{{{prefix|}}}|{{{prefix}}}}}
<span class="navi-copy"  
      style="display:inline-block;
            cursor:pointer;
            background-color:#f0f0f0;
            padding:2px 5px;
            border-radius:3px;
            border:1px solid #ccc;
            transition: background-color 0.2s, color 0.2s;"
      title="Click to copy coordinates"
      onclick="navigator.clipboard.writeText('{{{1}}} {{{2}}} {{{3}}}');
              this.style.backgroundColor='#d1ffd1'; this.style.color='#000'; setTimeout(()=>{this.style.backgroundColor='#f0f0f0'; this.style.color='#000';}, 500);">
({{{1}}} {{{2}}}, {{{3}}})
</span>
{{#if:{{{postfix|}}}|{{{postfix}}}}}
</includeonly>
<noinclude>
__NOTOC__
== Description ==
== Description ==
The purpose of this template is to turn a set of coordinates into a clickable and copyable link for use with the in-game syntax.
The purpose of this template is to turn a set of coordinates into a copyable link for use with the in-game syntax.
== Usage ==
 
 
==Usage==
<pre>{{Navi|MapName|X|Y}}</pre>
<pre>{{Navi|MapName|X|Y}}</pre>
* '''MapName''' is the map to be used.
* '''MapName''' is the map to be used.
* '''X''' is the X coordinate.
* '''X''' is the X coordinate.
* '''Y''' is the Y coordinate.
* '''Y''' is the Y coordinate.
=== Example ===
=== Example ===
{|class=wikitable
{|class=wikitable
Line 35: Line 21:
| Visit the mora npc {{Navi|mora|120|212}} and select the first dialogue option.
| Visit the mora npc {{Navi|mora|120|212}} and select the first dialogue option.
|}
|}
[[Category:Templates]]
[[Category:Templates]]</noinclude>
</noinclude>

Latest revision as of 02:25, 11 September 2025

Description

edit

The purpose of this template is to turn a set of coordinates into a copyable link for use with the in-game syntax.


Usage

edit
{{Navi|MapName|X|Y}}
  • MapName is the map to be used.
  • X is the X coordinate.
  • Y is the Y coordinate.


Example

edit
Code Used
Visit the mora npc {{Navi|mora|120|212}} and select the first dialogue option.
Result
Visit the mora npc mora120212 and select the first dialogue option.