Predefinição:Navi: mudanças entre as edições

De RavenRO

Sem resumo de edição
Etiqueta: Reversão manual
m (uma edição)
 
(6 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
<includeonly>{{ #if:{{{prefix|}}} | {{{prefix}}} }}<div class="navi-copy"><span>{{{1}}}</span><span>{{{2}}}</span><span>{{{3}}}</span></div>{{ #if:{{{postfix|}}} | {{{postfix}}} }}</includeonly><noinclude>__NOTOC__
<includeonly><span class="naviText" data-map="{{{1}}}" data-x="{{{2}}}" data-y="{{{3}}}">({{{1}}} {{{2}}}, {{{3}}})</span><span class="naviCopied">Copiado!</span></includeonly><noinclude>
== 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 copyable link for use with the in-game syntax.


Acredito que o problema seja pq no css não existe a class:"navi-copy" que implementa o seguinte contexto:
Testando com o Dudé a nova versão do encode.
<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;">Copiada realizada..!</div></div>
{{navi|mora|120|212}}
{{navi|moc_para01|133|170}}


==Usage==
==Usage==
<pre>{{Navi|MapName|X|Y}}</pre>
<pre>{{Navi|1|2|3}}</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 ===
Linha 21: Linha 15:
! Code Used
! Code Used
|-
|-
|<code>Visit the mora npc <nowiki>{{navi|mora|120|212}} and select the first dialogue option.</nowiki></code>
|<code>Visit the mora npc <nowiki>{{Navi|mora|120|212}} and select the first dialogue option.</nowiki></code>
|-
|-
! Result
! Result
|-
|-
| 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.
|}
|}
[[Categoria:Predefinições]]</noinclude>
[[Category:Templates]]</noinclude>

Edição atual tal como às 16h40min de 27 de fevereiro de 2024

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|1|2|3}}
  • 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 (mora 120, 212)Copiado! and select the first dialogue option.