Mudanças entre as edições de "Predefinição:NaviLink"
Etiqueta: Revertido |
Etiqueta: Reversão manual |
||
Linha 1: | Linha 1: | ||
<includeonly><span class="naviText" data-map="{{{map}}}" data-x="{{{x|}}}" data-y="{{{y|}}}">{{{text|({{{map}}}{{{x|}}}|<nowiki> </nowiki>{{{x}}},<nowiki> </nowiki>}}{{#if:{{{y|}}}|{{{y}}}}})}}}</span><span class="naviCopied"> | <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 is used to automatically copy the navi command with the map name and its coordinates when the text is clicked. | NaviLink is used to automatically copy the navi command with the map name and its coordinates when the text is clicked. | ||
Edição das 06h51min de 25 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:
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: .
You can also use the template without an X, Y. {{NaviLink|map=abyss_01}}
will look like this: .
Alternatively, using {{NaviLink|map=abyss_01|x=261|y=272|text=somewhere in Abyss Lake 1F}}
will result into: .
Clicking the text will copy the navi command into the clipboard, which can then be pasted using CTRL+V
in game.