Template:Map: Difference between revisions

From Ragnagoats Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 8: Line 8:


==Usage==
==Usage==
<pre>{{map|MapName|X|Y|Name}}</pre>
 
<pre>{{map|MapName|X|Y|Name|UniqueName|Size}}</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.
* '''Name''' NPC name.
* '''Name''' NPC name.
* '''UniqueName''' If multiple navis are used, this has to be unique per page.
* '''Size''' Textbox size.


{|<div class="nav"
{|<div class="nav"
{{map|mora|120|212|bro|testy|15}}15
{{map|mora|120|212|bro|testy|15}} Size of 15
{{map|mora|120|212|bro|testy2|50}}50
{{map|mora|120|212|bro|testy2|50}} Size of 50
</div>
</div>
|}
|}


=== Example ===
 
{|class=wikitable
'''Always use a div around the textfields. Examples below.
! Code Used
 
|-
'''Correct usage:
|<code>Visit <nowiki>{{map|izlude|120|212|Testy|UniqueName1|10}} and select the first dialogue option.</nowiki></code>
<pre>
|-
<nowiki>
! Result
{|<div class="nav"
|-
This is a test text to demonstrate {{map|izlude|120|212|bro|testy|15}} how to properly use this template.
| Visit {{map|izlude|120|212|Testy|UniqueName1|10}}and select the first dialogue option.
|}
</nowiki>
</pre>
 
'''Results in:
{|<div class="nav"
This is a test text to demonstrate {{map|izlude|120|212|bro|testy|15}} how to properly use this template.
|}
|}
[[Category:Templates]]<templatedata>
 
{
'''Wrong usage will cause improper display and line breaks.
"params": {
<pre>
"1": {},
<nowiki>
"2": {},
This is a test text to demonstrate {{map|izlude|120|212|bro|testy|15}} how to use this template incorrectly.
"3": {}
</nowiki>
},
</pre>
"format": "inline"
 
}
This is a test text to demonstrate {{map|izlude|120|212|bro|testy|15}} how to use this template incorrectly.
</templatedata></noinclude>
 
</noinclude>

Latest revision as of 21:19, 5 February 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

{{map|MapName|X|Y|Name|UniqueName|Size}}
  • MapName is the map to be used.
  • X is the X coordinate.
  • Y is the Y coordinate.
  • Name NPC name.
  • UniqueName If multiple navis are used, this has to be unique per page.
  • Size Textbox size.
Size of 15 Size of 50


Always use a div around the textfields. Examples below.

Correct usage:


{|<div class="nav"
This is a test text to demonstrate {{map|izlude|120|212|bro|testy|15}} how to properly use this template.
|}

Results in:

This is a test text to demonstrate how to properly use this template.

Wrong usage will cause improper display and line breaks.


This is a test text to demonstrate {{map|izlude|120|212|bro|testy|15}} how to use this template incorrectly.

This is a test text to demonstrate


how to use this template incorrectly.