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

De Wiki PrimeRO
Ir para navegação Ir para pesquisar
Etiquetas: Reversão manual Revertido
Etiquetas: Reversão manual Revertido
Linha 1: Linha 1:
<includeonly><span class="naviText" data-map="{{{map}}}" data-x="{{{x}}}" data-y="{{{y}}}">({{{map}}} {{{x}}}, {{{y}}})</span><span class="naviCopied">Copiado!</span></includeonly><noinclude>
<includeonly><span class="naviText" data-map="{{{map}}}" data-x="{{{x|}}}" data-y="{{{y|}}}">{{{text|({{{map}}}{{#if:{{{x|}}}|<nowiki> </nowiki>{{{x}}},<nowiki> </nowiki>}}{{#if:{{{y|}}}|{{{y}}}}})}}}</span><span class="naviCopied">Copied!</span></includeonly><noinclude>
NaviLink é usado para copiar automaticamente o comando navi com o nome do mapa e as coordenadas contidas no texto.
NaviLink is used to automatically copy the navi command with the map name and its coordinates when the text is clicked.


== Código ==
== Syntax ==


<code><nowiki>{{NaviLink|map=|x=|y=}}</nowiki></code>
<code><nowiki>{{NaviLink|map=|x=|y=|text=}}</nowiki></code>


; Parameters
; Parameters
; map : O nome do mapa. É o que estará dentro dos parênteses.
; map : The name of the map, it's the name that is involved in parenthesis.
; x : A coordenada '''X'''. É a primeira coordenada que você recebe quando usa <code>/where</code>.
; x : The '''X''' coordinate, it's the first coordinate you get when using <code>/where</code>.
; y : A coordenada '''Y'''. É a segunda coordenada que você recebe quando usa <code>/where</code>.
; y : The '''Y''' coordinate, it's the second coordinate you get when using <code>/where</code>.
; text : Optional. Text to show instead of the default text <code>(<map> <x>,<y>)</code>.


Para conseguir o nome e as coordenadas do mapa, basta digitar <code>/where</code> dentro do mapa.
To get the name of the map and the coordinates you can use <code>/where</code> inside a map.


== Exemplo ==
== Example ==
Vamos usar o Lago do Abismo 1 de exemplo. Quando digitamos <code>/where</code>, recebemos: abyss_01 261 272
Let's use an example of Abyss Lake, typing <code>/where</code> there we get:


O nome do mapa é '''abyss_01''', a coordenada X é '''261''' e a coordenada Y é '''272'''.
[[File:Where-example.png]]


Com essas informações em mãos, usar <code><nowiki>{{NaviLink|map=abyss_01|x=261|y=272}}</nowiki></code> vai resultar em: {{NaviLink|map=abyss_01|x=261|y=272}}. Clique no mapa e cole em qualquer caixa de texto.
The name of the map is '''abyss_01''', the X coordinate is '''261''' and the Y coordinate is '''272'''.


[[Category:Predefinição|NaviLink]]
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}}.
 
You can also use the template without an X, Y. <code><nowiki>{{NaviLink|map=abyss_01}}</nowiki></code> will look like this: {{NaviLink|map=abyss_01}}.
 
Alternatively, using <code><nowiki>{{NaviLink|map=abyss_01|x=261|y=272|text=somewhere in Abyss Lake 1F}}</nowiki></code> will result into: {{NaviLink|map=abyss_01|x=261|y=272|text=somewhere in Abyss Lake 1F}}.
 
Clicking the text will copy the navi command into the clipboard, which can then be pasted using <code>CTRL+V</code> in game.
</noinclude>
</noinclude>

Edição das 06h57min de 17 de março 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=|text=}}

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.
text
Optional. Text to show instead of the default text (<map> <x>,<y>).

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

Example

Let's 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 coordinate is 261 and the Y coordinate 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!.

You can also use the template without an X, Y. {{NaviLink|map=abyss_01}} will look like this: (abyss_01)Copied!.

Alternatively, using {{NaviLink|map=abyss_01|x=261|y=272|text=somewhere in Abyss Lake 1F}} will result into: somewhere in Abyss Lake 1FCopied!.

Clicking the text will copy the navi command into the clipboard, which can then be pasted using CTRL+V in game.