Main Page

Difference between revisions of "Template:NGSItem"

From Arks-Visiphone
Jump to navigation Jump to search
(Created page with "<includeonly><span style="white-space: nowrap">{{{Icon}}} [{{{Name}}}{{#if: {{{FriendlyName|}}}|{{{FriendlyName}}}|}}]</span></includeonly> <noinclude> ==Documentation== This...")
 
(Gah, I'm close but the pipe doesn't seem to be picked up...)
Line 1: Line 1:
<includeonly><span style="white-space: nowrap">{{{Icon}}} [{{{Name}}}{{#if: {{{FriendlyName|}}}|{{{FriendlyName}}}|}}]</span></includeonly>
+
<includeonly><span style="white-space: nowrap">{{#if: {{{Icon|}}} | {{Icons|{{{Icon}}} }}}} [[{{{1}}} {{#if: {{{2|}}}||{{{2}}}}}]]</span></includeonly>
  
 
<noinclude>
 
<noinclude>
Line 5: Line 5:
 
This 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.
 
This 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.
  
{{User:Sonickyle27/Template:NGS_Item|Icon=stuff|Name=Swords_(NGS)|FriendlyName=Prim Sword|}}
+
{{User:Sonickyle27/Template:NGS_Item|Icon=NGS Sword|Swords_(NGS)|Prim Sword}}
 +
 
 +
<pre>{{User:Sonickyle27/Template:NGS_Item|Icon=NGS Sword|Swords_(NGS)|Prim Sword}}</pre>
 
</noinclude>
 
</noinclude>

Revision as of 22:51, 1 November 2021


Documentation

This 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.

User:Sonickyle27/Template:NGS Item

{{User:Sonickyle27/Template:NGS_Item|Icon=NGS Sword|Swords_(NGS)|Prim Sword}}