Template:Navi: Difference between revisions

From Wiki Age of Discovery
Jump to navigation Jump to search
Midas (talk | contribs)
Created page with "<includeonly>{{ #if:{{{prefix|}}} | {{{prefix}}} }}<span class="navi-copy" style="display: inline-block;"><span>{{{1}}}</span><span>{{{2}}}</span><span>{{{3}}}</span></span>{{ #if:{{{postfix|}}} | {{{postfix}}} }}</includeonly><noinclude>__NOTOC__ == 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== <pre>{{Navi|MapName|X|Y}}</pre> * '''MapName''' is the map to be used. * '''X''' i..."
 
Midas (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>{{ #if:{{{prefix|}}} | {{{prefix}}} }}<span class="navi-copy" style="display: inline-block;"><span>{{{1}}}</span><span>{{{2}}}</span><span>{{{3}}}</span></span>{{ #if:{{{postfix|}}} | {{{postfix}}} }}</includeonly><noinclude>__NOTOC__
<span style="display: inline-block; position: relative;">
  <button style="position: absolute; left: -25px; top: 0; padding: 2px 5px; background-color: #eee; border: 1px solid #ccc; border-radius: 3px; cursor: pointer;"
          onclick="navigator.clipboard.writeText('{{CONTENIDO}}'); this.innerText = 'Copied!';">Click to copy</button>
  {{CONTENIDO}}
</span>
== 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.
Line 5: Line 9:


==Usage==
==Usage==
<pre>{{Navi|MapName|X|Y}}</pre>
{{Navi|Este es el texto que quiero copiar}}
* '''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.
|}

Revision as of 19:09, 4 January 2025

 <button style="position: absolute; left: -25px; top: 0; padding: 2px 5px; background-color: #eee; border: 1px solid #ccc; border-radius: 3px; cursor: pointer;" 
         onclick="navigator.clipboard.writeText('Template:CONTENIDO'); this.innerText = 'Copied!';">Click to copy</button>
 Template:CONTENIDO

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

 <button style="position: absolute; left: -25px; top: 0; padding: 2px 5px; background-color: #eee; border: 1px solid #ccc; border-radius: 3px; cursor: pointer;" 
         onclick="navigator.clipboard.writeText('Template:CONTENIDO'); this.innerText = 'Copied!';">Click to copy</button>
 Template:CONTENIDO

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

Template loop detected: Template:Navi