Difference between revisions of "Template:ItemDisplay"

From NeoDex
Jump to navigation Jump to search
(I'm not having a good day.)
Line 3: Line 3:
<table><tr><td>
<table><tr><td>


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


</td><td>
</td><td>
Line 13: Line 13:
</td></tr></table></center></includeonly><noinclude>
</td></tr></table></center></includeonly><noinclude>


<center><b>This is a normal item:</b></center>
== Purpose ==


{{SandBox2|IMAGE=gar_jhudora_statue.gif|name=Jhudora Statue|normal=yes|JNID=22015}}
To display an array of items and item types with links to external sites.


<center><b>This is wearable:</b></center>
== Use ==


{{SandBox2|IMAGE=mall_ac_altador_teamhat.gif|name=Altador Team Hat|wearable=yes|JNID=43929|TDNID=6863|DTIID=56654-Altador-Team-Hat}}
Use varies by the item type:


<center><b>This is a weapon:</b></center>
=== Normal Item ===


{{SandBox2|IMAGE=eliv_thade_sword.gif|name=Sword of Skardsen|weapon=yes|JNID=674|IDBID=1586|TDNWeapID=1863}}
{{ItemDisplay|normal=yes|IMAGE=gar_jhudora_statue.gif|name=Jhudora Statue|JNID=22015}}
 
Source:
 
<code><nowiki>{{ItemDisplay</nowiki>|'''normal'''=yes|'''IMAGE'''=gar_jhudora_statue.gif|'''name'''=Jhudora Statue|'''JNID'''=22015}}</code>
 
*'''normal'''
**This lets the item display know this is a "normal" item. It should be set to yes.
 
*'''IMAGE'''
**End of Image URL. If you'd like to link to [http://images.neopets.com/items/codestone10.gif <nowiki>http://images.neopets.com/items/codestone10.gif</nowiki>], for example, you'd simply fill this section with '''codestone10.gif'''.
 
*'''name'''
**Pretty basic, the item's name goes here.
 
*'''JNID'''
**Item's ID on Jellyneo's Item Database. If you'd like to link to [http://items.jellyneo.net/index.php?go=item&showitem=509 http://items.jellyneo.net/index.php?go=item&showitem=509], for example, then you'd fill this section with '''509'''.
 
=== Wearble Item ===
 
{{ItemDisplay|wearable=yes|IMAGE=mall_ac_altador_teamhat.gif|name=Altador Team Hat|JNID=43929|TDNID=6863|DTIID=56654-Altador-Team-Hat}}
 
Source:
 
<code><nowiki>{{ItemDisplay</nowiki>|'''wearable'''=yes|IMAGE=mall_ac_altador_teamhat.gif|name=Altador Team Hat|JNID=43929|TDNID=6863|DTIID=56654-Altador-Team-Hat}}</code>
 
*'''wearable'''
**This lets the item display know this is a "wearable" item. It should be set to yes.
 
*'''IMAGE'''
**End of Image URL. If you'd like to link to [http://images.neopets.com/items/codestone10.gif <nowiki>http://images.neopets.com/items/codestone10.gif</nowiki>], for example, you'd simply fill this section with '''codestone10.gif'''.
 
*'''name'''
**Pretty basic, the item's name goes here.
 
*'''JNID'''
**Item's ID on Jellyneo's Item Database. If you'd like to link to [http://items.jellyneo.net/index.php?go=item&showitem=509 http://items.jellyneo.net/index.php?go=item&showitem=509], for example, then you'd fill this section with '''509'''. This defines both the Item DB and Wardrobe URL. As both share the same IDs, this only has to be done once.
 
*'''TDNID'''
**Item ID on The Daily Neopets' Customization section. For instance, if you wished to link to [http://customize.thedailyneopets.com/index.php/itemdb/find/12246 http://customize.thedailyneopets.com/index.php/itemdb/find/12246], then you'd fill this section with '''12246'''.
 
*'''DTIID'''
*Item ID on Dress to Impress. If, say, you wanted to link to [http://impress.openneo.net/items/69677-Shamrock-Shield http://impress.openneo.net/items/69677-Shamrock-Shield], then you'd put '''69677-Shamrock-Shield''' in this section.
 
=== Battledome Items ===
 
{{ItemDisplay|weapon=yes|IMAGE=eliv_thade_sword.gif|name=Sword of Skardsen|JNID=674|IDBID=1586|TDNWeapID=1863}}
 
Source:
 
<nowiki>{{ItemDisplay</nowiki>|'''weapon'''=yes|'''IMAGE'''=eliv_thade_sword.gif|'''name'''=Sword of Skardsen|'''JNID'''=674|'''IDBID'''=1586|'''TDNWeapID'''=1863}}
 
<code><nowiki>{{ItemDisplay</nowiki>|weapon=yes|IMAGE=eliv_thade_sword.gif|name=Sword of Skardsen|JNID=674|IDBID=1586|TDNWeapID=1863}}</code>
 
*'''weapon'''
**This lets the item display know this is a "weapon". It should be set to yes.
 
*'''image'''
**End of Image URL. If you'd like to link to [http://images.neopets.com/items/codestone10.gif <nowiki>http://images.neopets.com/items/codestone10.gif</nowiki>], for example, you'd simply fill this section with '''codestone10.gif'''.
 
*'''name'''
**Pretty basic, the item's name goes here.
 
*'''JNID'''
**Item's ID on Jellyneo's Item Database. If you'd like to link to [http://items.jellyneo.net/index.php?go=item&showitem=509 http://items.jellyneo.net/index.php?go=item&showitem=509], for example, then you'd fill this section with '''509'''.
 
*'''IDBID'''
**In-Depth Battlepedia ID. For instance, if you wanted to link to [http://battlepedia.jellyneo.net/?go=showweapon&id=3238 http://battlepedia.jellyneo.net/?go=showweapon&id=3238], then you'd fill this section with '''3238'''.
 
*'''TDNWeapID'''
**TDN Battlepedia ID. For example, if you wanted to link to [http://battlepedia.thedailyneopets.com/index.php/weapon/viewweap/3025 http://battlepedia.thedailyneopets.com/index.php/weapon/viewweap/3025], then you'd fill this section with '''3025'''.
 
=== Combing the Three ===
 
It's possibly to combine the three of these item types to create a "hybrid" item display template. However, there is no need to put in the "normal" setting, as this is already built into "wearable" and "weapon" by default. Attempting the mix them will result in something along the line of the following:


<center>---</center>
<center>---</center>
{{ItemDisplay|weapon=yes|wearable=yes|IMAGE=eliv_thade_sword.gif|name=Sword of Skardsen|JNID=674|IDBID=1586|TDNWeapID=1863|TDNID=6863|DTIID=56654-Altador-Team-Hat}}
Source:
<nowiki>{{ItemDisplay</nowiki>|weapon=yes|wearable=yes|IMAGE=eliv_thade_sword.gif|name=Sword of Skardsen|JNID=674|IDBID=1586|TDNWeapID=1863|TDNID=6863|DTIID=56654-Altador-Team-Hat}}
It's worth noting that no such item that functions as both a wearable and weapon exist (Therefore the above links are incorrect), however the ability to combine the two functions here have been made possible just in case.


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


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

Revision as of 04:13, 6 March 2014


Purpose

To display an array of items and item types with links to external sites.

Use

Use varies by the item type:

Normal Item

gar_jhudora_statue.gif
Jhudora Statue
JellyneoItemDB_favicon.png


Source:

{{ItemDisplay|normal=yes|IMAGE=gar_jhudora_statue.gif|name=Jhudora Statue|JNID=22015}}

  • normal
    • This lets the item display know this is a "normal" item. It should be set to yes.
  • name
    • Pretty basic, the item's name goes here.

Wearble Item

mall_ac_altador_teamhat.gif
Altador Team Hat
JellyneoItemDB_favicon.png Tdn_customisation_favicon.png

Impress_favicon.png
JellyneoWardrobe_favicon.png

Source:

{{ItemDisplay|wearable=yes|IMAGE=mall_ac_altador_teamhat.gif|name=Altador Team Hat|JNID=43929|TDNID=6863|DTIID=56654-Altador-Team-Hat}}

  • wearable
    • This lets the item display know this is a "wearable" item. It should be set to yes.
  • name
    • Pretty basic, the item's name goes here.
  • JNID
    • Item's ID on Jellyneo's Item Database. If you'd like to link to http://items.jellyneo.net/index.php?go=item&showitem=509, for example, then you'd fill this section with 509. This defines both the Item DB and Wardrobe URL. As both share the same IDs, this only has to be done once.

Battledome Items

eliv_thade_sword.gif
Sword of Skardsen
JellyneoItemDB_favicon.png Tdn_battlepedia_favicon.png Jellyneo_idb_favicon.png


Source:

{{ItemDisplay|weapon=yes|IMAGE=eliv_thade_sword.gif|name=Sword of Skardsen|JNID=674|IDBID=1586|TDNWeapID=1863}}

{{ItemDisplay|weapon=yes|IMAGE=eliv_thade_sword.gif|name=Sword of Skardsen|JNID=674|IDBID=1586|TDNWeapID=1863}}

  • weapon
    • This lets the item display know this is a "weapon". It should be set to yes.
  • name
    • Pretty basic, the item's name goes here.

Combing the Three

It's possibly to combine the three of these item types to create a "hybrid" item display template. However, there is no need to put in the "normal" setting, as this is already built into "wearable" and "weapon" by default. Attempting the mix them will result in something along the line of the following:

---
eliv_thade_sword.gif
Sword of Skardsen
JellyneoItemDB_favicon.png Tdn_customisation_favicon.png Tdn_battlepedia_favicon.png Jellyneo_idb_favicon.png

Impress_favicon.png
JellyneoWardrobe_favicon.png

Source:

{{ItemDisplay|weapon=yes|wearable=yes|IMAGE=eliv_thade_sword.gif|name=Sword of Skardsen|JNID=674|IDBID=1586|TDNWeapID=1863|TDNID=6863|DTIID=56654-Altador-Team-Hat}}

It's worth noting that no such item that functions as both a wearable and weapon exist (Therefore the above links are incorrect), however the ability to combine the two functions here have been made possible just in case.

>Pages that use this template<