Main Page

Difference between revisions of "Template:NGSItem"

From Arks-Visiphone
Jump to navigation Jump to search
(Add additional documentation)
(remove redundant end.)
Line 1: Line 1:
<onlyinclude><span style="white-space: nowrap">{{ #if: {{{Icon|}}} | {{Icons|{{{Icon}}}}} }} {{ #if: {{{PageName|}}} |then [[{{{PageName}}}{{ #if: {{{RealName|}}}|{{!}}{{{RealName}}}}}]] | {{{RealName}}} |}}</span></onlyinclude>
+
<onlyinclude><span style="white-space: nowrap">{{ #if: {{{Icon|}}} | {{Icons|{{{Icon}}}}} }} {{ #if: {{{PageName|}}} | [[{{{PageName}}}{{ #if: {{{RealName|}}}|{{!}}{{{RealName}}}}}]] | {{{RealName}}} |}}</span></onlyinclude>
 
<noinclude>
 
<noinclude>
 
{{Documentation|content=
 
{{Documentation|content=

Revision as of 11:52, 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|Swords_(NGS)|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.