Main Page

Difference between revisions of "Template:NGSItem"

From Arks-Visiphone
Jump to navigation Jump to search
(remove redundant end.)
(correct example)
Line 6: Line 6:
 
== Example ==
 
== Example ==
 
Writing the following:
 
Writing the following:
<pre>{{NGSItem|Icon=NGS Sword|Swords_(NGS)|Prim Sword}}</pre>
+
<pre>{{NGSItem|Icon=NGS Sword|PageName=Swords_(NGS)|RealName=Prim Sword}}</pre>
 
Results in this:
 
Results in this:
  

Revision as of 11:53, 28 November 2021

{{{RealName}}}

Template documentation

This template is intended to be used on NGS pages to list the names of items, while showing a UI icon and preventing a line break mid-name.

Example

Writing the following:

{{NGSItem|Icon=NGS Sword|PageName=Swords_(NGS)|RealName=Prim Sword}}

Results in this:

Sword (NGS) Prim Sword

but if you don't include a PageName, it won't be linked:

Sword (NGS) Prim Sword

Syntax error in JSON.