Template:Navi: Difference between revisions

From Wiki Age of Discovery
Jump to navigation Jump to search
Midas (talk | contribs)
No edit summary
Midas (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>
<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__
    {{ #if:{{{prefix|}}}|{{{prefix}}}}}
== Description ==
    <span class="navi-copy" style="display: inline-flex; align-items: center;">
The purpose of this template is to turn a set of coordinates into a copyable link for use with the in-game syntax.
        <span>{{{1}}} {{{2}}} {{{3}}}</span>
 
        <button
 
            style="margin-left: 8px; padding: 4px 8px; font-size: 14px; cursor: pointer; border: 1px solid #ccc; border-radius: 4px; background-color: #f4f4f4;"
==Usage==
            class="copy-button"
<pre>{{Navi|MapName|X|Y}}</pre>
            data-text="{{{1}}} {{{2}}} {{{3}}}"
* '''MapName''' is the map to be used.
        >
* '''X''' is the X coordinate.
            Copiar
* '''Y''' is the Y coordinate.
        </button>
 
    </span>
 
    {{ #if:{{{postfix|}}}|{{{postfix}}}}}
=== Example ===
</includeonly>
{|class=wikitable
<noinclude>
! Code Used
__NOTOC__
|-
|<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.
|}
[[Category:Templates]]</noinclude>

Revision as of 19:20, 4 January 2025

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