Difference between revisions of "Template:ItemDisplay"

From NeoDex
Jump to navigation Jump to search
Line 3: Line 3:
<table><tr><td>
<table><tr><td>
{{ #if: {{{sw|}}} | <span title="Search for this {{ #if: {{{wearable|}}} | wearable | {{ #if: {{{weapon|}}} | weapon | {{ #if: {{{normal|}}} | item }} }} }} on the Shop Wizard"><span class="plainlinks">[http://www.neopets.com/market.phtml?type=wizard&string={{{name2}}} http://www.pinkpt.com/neodex/images/4/43/20x20_sw.png]</span></span> }}
{{ #if: {{{sw|}}} | <span title="Search for this {{ #if: {{{wearable|}}} | wearable | {{ #if: {{{weapon|}}} | weapon | {{ #if: {{{normal|}}} | item }} }} }} on the Shop Wizard"><span class="plainlinks">[http://www.neopets.com/market.phtml?type=wizard&string={{{name2}}} http://www.pinkpt.com/neodex/images/4/43/20x20_sw.png]</span></span> }}
<br>
{{ #if: {{{tp|}}} | <span title="Search for this {{ #if: {{{wearable|}}} | wearable | {{ #if: {{{weapon|}}} | weapon | {{ #if: {{{normal|}}} | item }} }} }} on the Trading Post"><span class="plainlinks">[http://www.neopets.com/island/tradingpost.phtml?type=browse&criteria=item_exact&search_string={{{name2}}} http://www.pinkpt.com/neodex/images/5/5c/20x20_tp.png]</span></span> }}
<br>
{{ #if: {{{auc|}}} | <span title="Search for this {{ #if: {{{wearable|}}} | wearable | {{ #if: {{{weapon|}}} | weapon | {{ #if: {{{normal|}}} | item }} }} }} in the Auction House"><span class="plainlinks">[http://www.neopets.com/genie.phtml?type=process_genie&criteria=exact&auctiongenie={{{name2}}} http://www.pinkpt.com/neodex/images/2/2c/20x20_auction.png]</span></span> }}
</td><td>
</td><td>


Line 141: Line 145:
===== Shop Wizard, Trading Post & Auction House =====
===== Shop Wizard, Trading Post & Auction House =====


{{ItemDisplay|normal=yes|sw=yes|IMAGE=gar_jhudora_statue.gif|name=Jhudora Statue|name2=Jhudora+Statue|JNID=22015}}
{{ItemDisplay|normal=yes|sw=yes|tp=yes|auc=yes|IMAGE=gar_jhudora_statue.gif|name=Jhudora Statue|name2=Jhudora+Statue|JNID=22015}}


===== TDN Customization =====
===== TDN Customization =====

Revision as of 16:10, 17 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}}

  • 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 possible 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.

Also, when hovering over the Jellyneo Item Database Icon, it will always refer to the object as "Wearable".

Add-Ons

Several "add-ons" which can be added to any of the above types exist, which can be used to add values such as Neocash values and Trading Post, Shop Wizard and Auction House links.

Neopoint and Neocash Values

In addition, it is possible to display both Neopoint and Neocash values with item, utilizing an optional setting:



eliv_thade_sword.gif
Sword of Skardsen
9,000,000 NP
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|NP=9,000,000}}

  • NP
  • The item's Neopoint Value (Not user defined, but rather estimated cost or anything else appropriate). If no such value exists, or if there is no need to put in a value, then there is no need to use this field. (No need to type "NP" - This is built in. The numerical value is needed only)
---



mall_floatingneggfaerie.gif
Floating Negg Faerie Doll
150 NC
JellyneoItemDB_favicon.png Tdn_customisation_favicon.png

Impress_favicon.png
JellyneoWardrobe_favicon.png

Source:

{{ItemDisplay|wearable=yes|IMAGE=mall_floatingneggfaerie.gif|name=Floating Negg Faerie Doll|JNID=25303|TDNID=1488|DTIID=37002-Floating-Negg-Faerie-Doll|NC=150}}

  • NC
  • The item's most recent value in Neocash (Temporary Discount excluded). If no such value exists, there is no reason to use this field. (No need to type "NC" - This is built in. The numerical value is needed only)
Shop Wizard, Trading Post & Auction House

20x20_sw.png
20x20_tp.png
20x20_auction.png

gar_jhudora_statue.gif
Jhudora Statue
JellyneoItemDB_favicon.png


TDN Customization
>Pages that use this template<