Mudanças entre as edições de "Predefinição:NaviLink"

De Ragna4th
Ir para navegação Ir para pesquisar
Linha 1: Linha 1:
<span class="naviText" data-map="{{{map}}}" data-x="{{{x}}}" data-y="{{{y}}}">({{{map}}} {{{x}}}, {{{y}}})</span>
+
<includeonly><span class="naviText" data-map="{{{map}}}" data-x="{{{x}}}" data-y="{{{y}}}">({{{map}}} {{{x}}}, {{{y}}})</span><span class="naviCopied">Copied!</span></includeonly><noinclude>
 +
NaviLink is used to automatically copy the navi command with the map name and its coordinates when the text is clicked.
  
{{NaviLink|map=abyss_01|x=261|y=272}}
+
== Syntax ==
 +
 
 +
<code><nowiki>{{NaviLink|map=|x=|y=}}</nowiki></code>
 +
 
 +
; Parameters
 +
; map : The name of the map, it's the name that is involved in parenthesis.
 +
; x : The '''X''' coordinate, it's the first coordinate you get when using <code>/where</code>.
 +
; y : The '''Y''' coordinate, it's the second coordinate you get when using <code>/where</code>.
 +
 
 +
To get the name of the map and the coordinates you can use <code>/where</code> inside a map.
 +
 
 +
== Example ==
 +
Lets use an example of Abyss Lake, typing <code>/where</code> there we get:
 +
 
 +
[[File:Where-example.png]]
 +
 
 +
The name of the map is '''abyss_01''', the X coord is '''261''' and the Y coord is '''272'''.
 +
 
 +
With all the data in our hands, using <code><nowiki>{{NaviLink|map=abyss_01|x=261|y=272}}</nowiki></code> will result into: {{NaviLink|map=abyss_01|x=261|y=272}}. Click it and <code>CTRL+V</code> in any text box.
 +
</noinclude>

Edição das 01h47min de 15 de janeiro de 2022

NaviLink is used to automatically copy the navi command with the map name and its coordinates when the text is clicked.

Syntax

{{NaviLink|map=|x=|y=}}

Parameters
map
The name of the map, it's the name that is involved in parenthesis.
x
The X coordinate, it's the first coordinate you get when using /where.
y
The Y coordinate, it's the second coordinate you get when using /where.

To get the name of the map and the coordinates you can use /where inside a map.

Example

Lets use an example of Abyss Lake, typing /where there we get:

Arquivo:Where-example.png

The name of the map is abyss_01, the X coord is 261 and the Y coord is 272.

With all the data in our hands, using {{NaviLink|map=abyss_01|x=261|y=272}} will result into: (abyss_01 261, 272)Copied!. Click it and CTRL+V in any text box.