Difference between revisions of "Template:Navi"

From LeikaRO wiki
Jump to: navigation, search
Line 1: Line 1:
 
 
 
<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__
 
<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__
  
Line 25: Line 23:
 
|}
 
|}
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>
 
 
 
== WIP ==
 
 
Just figuring out how this work
 
 
Test:
 
 
<div class="navi-copy"><div class="navi-copy-text" onclick="CopyNaviLink(this, 'mora','120','212');">(mora 120, 212)</div><div class="navi-copied" style="display:none;">Fettuccine..!</div></div>
 
 
 
 
{{Navi|mora|120|212}}
 
{{Navi|map=prontera|x=35|y=80}}
 
 
 
 
I hate css, but I do love pasta.
 

Revision as of 21:03, 12 April 2022


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

{{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

Usage

<copylink> MapName X,Y </copylink>

  • MapName is the map to be used.
  • X is the X coordinate.
  • Y is the Y coordinate.

<copylink [text="string"]> MapName X,Y </copylink>

  • MapName is the map to be used.
  • X is the X coordinate.
  • Y is the Y coordinate.


Test:

Alchemist

MapName X,Y and select the first dialogue option.