Difference between revisions of "Template:ItemDisplay"

From NeoDex
Jump to navigation Jump to search
(+Height)
Line 1: Line 1:
<includeonly><center><div style="border: solid 1px black; width: 80px; height: 80px;">http://images.neopets.com/items/{{{IMAGE}}}</div><div style="display: block; width: 140px; word-wrap: break-word;">[{{JNIDBLink|itemID={{{JNID}}}}} <b>{{{NAME}}}]</b></div></center></includeonly><noinclude>Purpose:
<includeonly><center>


To easily display items of all sorts.
<table><tr><td>


<center>---</center>
<table><tr><td align="center"><div style="border: solid 1px black; width: 80px; height: 80px;">http://images.neopets.com/items/{{{IMAGE}}}</div><div style="display: block; width: 140px; word-wrap: break-word;"><b>{{{name}}}</b></div><span title="View this {{ #if: {{{wearable|}}} | wearable | {{ #if: {{{weapon|}}} | weapon | {{ #if: {{{normal|}}} | item }} }} }} on Jellyneo's Item Database"><span class="plainlinks">[http://items.jellyneo.net/index.php?go=item&showitem={{{JNID}}} http://www.pinkpt.com/neodex/images/d/de/JellyneoItemDB_favicon.png]</span></span>  {{ #if: {{{wearable|}}} | <span title="View this wearable on TDN's Customization Central"><span class="plainlinks">[http://customize.thedailyneopets.com/index.php/itemdb/find/{{{TDNID}}} http://www.pinkpt.com/neodex/images/a/a5/Tdn_customisation_favicon.png]</span></span> }}{{ #if: {{{weapon|}}} | <span title="View this weapon on TDN's Battlepedia"><span class="plainlinks">[http://battlepedia.thedailyneopets.com/index.php/weapon/viewweap/{{{TDNWeapID}}} http://www.pinkpt.com/neodex/images/0/06/Tdn_battlepedia_favicon.png]</span></span> <span title="View this weapon on Jellyneo's In-Depth Battlepedia"><span class="plainlinks">[http://battlepedia.jellyneo.net/?go=showweapon&id={{{IDBID}}} http://www.pinkpt.com/neodex/images/d/d8/Jellyneo_idb_favicon.png]</span></span> }}</td></tr></table>


Use:
</td><td>


<code><nowiki>{{ItemDisplay|</nowiki>IMAGE='''image'''|JNID='''Item Database ID'''|NAME='''name'''}}</code>
{{ #if: {{{wearable|}}} |
<span title="Preview this wearable on Dress to Impress"><span class="plainlinks">[http://impress.openneo.net/items/{{{DTIID}}} http://www.pinkpt.com/neodex/images/4/43/Impress_favicon.png]</span></span><br><span title="Preview this wearable on Jellyneo's Wardrobe App"><span class="plainlinks">[http://wardrobe.jellyneo.net/preview/?id={{{JNID}}} http://www.pinkpt.com/neodex/images/a/ac/JellyneoWardrobe_favicon.png]</span></span>
}}


*'''IMAGE'''
</td></tr></table></center></includeonly><noinclude>
**The rest of the image url after '/images/. So for example, if you wanted to display [http://images.neopets.com/items/bg_neggs_allabout.gif <nowiki>http://images.neopets.com/items/bg_neggs_allabout.gif </nowiki>] , you simply put in '''bg_neggs_allabout.gif'''.
 
*'''JNID'''
**ID on Jellyneo's Item Database. If you wanted to link to http://items.jellyneo.net/index.php?go=item&showitem=37320 , you'd put '''37320''' in this space.
 
*'''NAME'''
**Item's name. Simply put, you fill this section with the item's name.
 
<center>---</center>


Example:
<center><b>This is a normal item:</b></center>


If we put in:
{{SandBox2|IMAGE=gar_jhudora_statue.gif|name=Jhudora Statue|normal=yes|JNID=22015}}


<code><nowiki>{{ItemDisplay|IMAGE=bg_neggs_allabout.gif|JNID=37320|NAME=All About Neggs Background}}</nowiki></code>
<center><b>This is wearable:</b></center>


...We'd get:
{{SandBox2|IMAGE=mall_ac_altador_teamhat.gif|name=Altador Team Hat|wearable=yes|JNID=43929|TDNID=6863|DTIID=56654-Altador-Team-Hat}}


{{ItemDisplay|IMAGE=bg_neggs_allabout.gif|JNID=37320|NAME=All About Neggs Background}}
<center><b>This is a weapon:</b></center>


Understand that this template does not include a function to display [[Neopoint]] or [[Neocash]] values. If you wish to do so, then use [[Template:NPItemDisplay]] and [[Template:NCItemDisplay]] respectively.
{{SandBox2|IMAGE=eliv_thade_sword.gif|name=Sword of Skardsen|weapon=yes|JNID=674|IDBID=1586|TDNWeapID=1863}}


<center>---</center>
<center>---</center>


{{WhatLinksHere|prefix=Template:|type=template}}
{{WhatLinksHere|prefix=Template:|type=template}


[[Category:Templates/Media]]</noinclude>
[[Category:Templates/Media]]</noinclude>

Revision as of 03:29, 6 March 2014


This is a normal item:

Template:SandBox2

This is wearable:

Template:SandBox2

This is a weapon:

Template:SandBox2

---

{{WhatLinksHere|prefix=Template:|type=template}