Template:ItemDisplay

From NeoDex
Revision as of 17:24, 17 March 2014 by Julia (talk | contribs)
Jump to navigation Jump to search


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
Rarity.png
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
Rarity.png
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
Rarity.png
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
Rarity.png
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
Rarity.png
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
Rarity.png
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
Name

First off, you'll need to add an extra field to your template, named name2. Within it, you'll need to re-type the item's name, but with '+' symbols in place of blank spaces.

For example, if you wanted to display the item Lu Codestone, you'd put the following in:

{{ItemDisplay|normal=yes|IMAGE=codestone3.gif|name=Lu Codestone|name2=Lu+Codestone|JNID=115}}

The result:



codestone3.gif
Rarity.png
Lu Codestone
JellyneoItemDB_favicon.png


  • name
    • The item's name, but with "+" in the blank spaces.

As you can tell, that does not change the appearance of or function of the template, but rather, adds the proper search term for the Shop Wizard, Trading Post and Auction House. IF you don't use one of the following search types, then it will do absolutely nothing like the above example.

Shop Wizard

If you wish for your template to include a link to the Shop Wizard, then you'll need to include the sw field. For example:

{{ItemDisplay|normal=yes|sw=yes|IMAGE=codestone3.gif|name=Lu Codestone|name2=Lu+Codestone|JNID=115}}

Comes out as:

20x20_sw.png


codestone3.gif
Rarity.png
Lu Codestone
JellyneoItemDB_favicon.png


  • sw
    • Shop Wizard function. This adds the option to search for the given item on the Shop Wizard.

It's worth noting that this function presently does not work properly on Neopets.com, as most Browsers will not fill the search field with the given title as it automatically tries to clear the field if anything is within it.

Trading Post

If you wish for your template to include a link to the Trading Post, then you'll need to include the tp field. For example:

{{ItemDisplay|normal=yes|tp=yes|IMAGE=codestone3.gif|name=Lu Codestone|name2=Lu+Codestone|JNID=115}}

Comes out as:


20x20_tp.png

codestone3.gif
Rarity.png
Lu Codestone
JellyneoItemDB_favicon.png


  • tp
    • Trading Post function. This adds the option to search for the given item on the Trading Post.
Trading Post

If you wish for your template to include a link to the Auction House, then you'll need to include the auc field. For example:

{{ItemDisplay|normal=yes|auc=yes|IMAGE=codestone3.gif|name=Lu Codestone|name2=Lu+Codestone|JNID=115}}

Comes out as:



20x20_auction.png

codestone3.gif
Rarity.png
Lu Codestone
JellyneoItemDB_favicon.png


  • auc
    • Auction House function. This adds the option to search for the given item in the Auction House.
Displaying the three

Lastly, you can interchangeably use the above to display links to the Shop Wizard, Auction House, and Trading Post all at once, or display two out of the three.

{{ItemDisplay|normal=yes|sw=yes|tp=yes|auc=yes|IMAGE=codestone3.gif|name=Lu Codestone|name2=Lu+Codestone|JNID=115}}

Produces:

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

codestone3.gif
Rarity.png
Lu Codestone
JellyneoItemDB_favicon.png


You can also use them in co-operation with the wearable and weapon types:

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

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




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

gif_gmc2013_skwarbal.gif
Rarity.png
Shenkuu Lantern Balloon
JellyneoItemDB_favicon.png Tdn_customisation_favicon.png

Impress_favicon.png
JellyneoWardrobe_favicon.png

TDN Customization

Although a link to TDN's Customization Central is included alongside the wearable function, The Customization Central also includes entries regarding a wide variety of non-wearable NC items.

If this is the case, you'll need to add the following entries to your template:

  • TDNCustom and TDNID

Example:

{{ItemDisplay|normal=yes|TDNCustom=yes|IMAGE=mall_gbmc_wheelbarrow.gif|name=Flower Barrow Gift Box Mystery Capsule|JNID=56458|TDNID=12335}}

Creates:



mall_gbmc_wheelbarrow.gif
Rarity.png
Flower Barrow Gift Box Mystery Capsule
JellyneoItemDB_favicon.png Tdn_customisation_favicon.png


>Pages that use this template<