Jump to content

Template:Navi: Difference between revisions

From EthernalRO Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<span class="naviCopy"
<includeonly>{{ #if:{{{prefix|}}} | {{{prefix}}} }}<div class="navi-copy"><span>{{{1}}}</span><span>{{{2}}}</span><span>{{{3}}}</span></div>{{ #if:{{{postfix|}}} | {{{postfix}}} }}</includeonly><noinclude>__NOTOC__
      data-mapa="{{{1}}}"
== Description ==
      data-x="{{{2}}}"
The purpose of this template is to turn a set of coordinates into a copyable link for use with the in-game syntax.
      data-y="{{{3}}}"
 
      style="cursor:pointer;color:#0073cc;"
Acredito que o problema seja pq no css não existe a class:"navi-copy" que implementa o seguinte contexto:
      title="Clique para copiar /navi {{{1}}},{{{2}}},{{{3}}}">
 
  ({{{1}}} {{{2}}}/{{{3}}})
<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>
</span>
{{navi|mora|120|212}}
{{navi|moc_para01|133|170}}
 
==Usage==
<pre>{{Navi|MapName|X|Y}}</pre>
* '''MapName''' is the map to be used.
* '''X''' is the X coordinate.
* '''Y''' is the Y coordinate.
 
=== Example ===
{|class=wikitable
! Code Used
|-
|<code>Visit the mora npc <nowiki>{{navi|mora|120|212}} and select the first dialogue option.</nowiki></code>
|-
! Result
|-
| Visit the mora npc {{navi|mora|120|212}} and select the first dialogue option.
|}
[[Categoria:Predefinições]]</noinclude>

Revision as of 15:47, 26 January 2026

Description

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:

{{ #if: | {{{prefix}}} }}

{{ #if: | {{{postfix}}} }} {{ #if: | {{{prefix}}} }}

{{ #if: | {{{postfix}}} }}

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
{{{prefix}}} }}{{ #if: | {{{postfix}}} }} and select the first dialogue option.

Categoria:Predefinições