Template:Navi: Difference between revisions
Template page
More actions
Created page with "<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__ == Description == The purpose of this template is to turn a set of coordinates into a copyable link for use with the in-game syntax. ==Usage== <pre>{{Navi|MapName|X|Y}}</pre> * '''MapName''' is the map to be used. * '''X''' i..." |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
<includeonly>{{ #if:{{{prefix|}}} | {{{prefix}}} }}<span class="navi-copy" style="display: inline-block;"> | <includeonly> | ||
{{#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 copyable link for use with the in-game syntax. | 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. | ||
== 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 21: | Line 35: | ||
| 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]]</noinclude> | [[Category:Templates]] | ||
</noinclude> | |||
Revision as of 22:17, 10 September 2025
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.
Usage
{{Navi|MapName|X|Y}}
- MapName is the map to be used.
- X is the X coordinate.
- Y is the Y coordinate.
Example
| Code Used |
|---|
Visit the mora npc {{Navi|mora|120|212}} and select the first dialogue option.
|
| Result |
| Visit the mora npc and select the first dialogue option. |