Main Page
Difference between revisions of "Template:NGSItem"
Jump to navigation
Jump to search
MoonRunestar (talk | contribs) (Add additional documentation) |
MoonRunestar (talk | contribs) (remove redundant end.) |
||
Line 1: | Line 1: | ||
− | <onlyinclude><span style="white-space: nowrap">{{ #if: {{{Icon|}}} | {{Icons|{{{Icon}}}}} }} {{ #if: {{{PageName|}}} | | + | <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}}}
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:
but if you don't include a PageName, it won't be linked:
Prim Sword
Editors can experiment in this template's sandbox (create) and testcases (create) pages. Subpages of this template. |
Syntax error in JSON.