Jump to content

Template:Navi: Difference between revisions

From LegacyRO Wiki
No edit summary
Tag: Reverted
No edit summary
Tags: Manual revert Reverted
Line 1: Line 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>{{ #if:{{{prefix|}}} | {{{prefix}}} }}<span class="naviBlock" title="Click here to copy to the clipboard, then paste in game" data-map="{{#replace:{{{1|}}}|^\s+|\s+$|}}"      data-x="{{#expr: {{{2|0}}} + 0}}" data-y="{{#expr: {{{3|0}}} + 0}}"><span class="naviClickable" id="naviTextarea" data-navi="/navi {{#replace:{{{1|}}}|^\s+|\s+$|}} {{#expr: {{{2|0}}} + 0}}/{{#expr: {{{3|0}}} + 0}}">({{#replace:{{{1|}}}|^\s+|\s+$|}} {{#expr: {{{2|0}}} + 0}}/{{#expr: {{{3|0}}} + 0}})</span><span class="naviCopied" style="display:none">Paste Ingame</span><span class="naviMap">https://db.irowiki.org/image/map/normal/{{#replace:{{{1|}}}|^\s+|\s+$|}}.png<span class="naviDot"></span></span></span>{{ #if:{{{postfix|}}} | {{{postfix}}} }}</includeonly><noinclude>__NOTOC__
== 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:
<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==
Line 14: Line 9:
* '''X''' is the X coordinate.
* '''X''' is the X coordinate.
* '''Y''' is the Y coordinate.
* '''Y''' is the Y coordinate.


=== Example ===
=== Example ===
Line 19: Line 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>

Revision as of 16:03, 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.


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}}} }}({{#replace:mora|^\s+|\s+$|}} {{#expr: 120 + 0}}/{{#expr: 212 + 0}})https://db.irowiki.org/image/map/normal/{{#replace:mora%7C^\s+%7C\s+$%7C}}.png{{ #if: | {{{postfix}}} }} and select the first dialogue option.