Difference between revisions of "Template:ItemDisplay"

From NeoDex
Jump to navigation Jump to search
(the new bditem template should be compatible with the existing itemdisplay calls (will double check this and revert if it breaks something))
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><center>
#REDIRECT [[Template:Bditem]]
 
<table><tr><td>
{{ #if: {{{sw|}}} | <span title="Search for '{{{name}}}' 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 '{{{name}}}' 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 '{{{name}}}' 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>
 
<table><tr><td align="center"><div style="border: solid 1px black; width: 80px; height: 80px;">http://images.neopets.com/items/{{{IMAGE}}} <span style="margin-top: 180px; display: inline-block; margin: 0 -80px; padding: -90px; text-align: right; width: 84px; vertical-align: top;">http://www.pinkpt.com/neodex/images/a/af/Rarity.png</span></div><div style="display: block; width: 140px; word-wrap: break-word;"><b>{{{name}}}{{ #if: {{{NP|}}} | <div style="color: gold">{{{NP}}} NP</div> | {{ #if: {{{NC|}}} | <div style="color: #7D26CD;">{{{NC}}} NC</div> }} }} </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: {{{TDNCustom|}}} | <span title="View '{{{name}}}' 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>
 
{{ #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>
}}
 
</td></tr></table></center></includeonly><noinclude>
 
== Purpose ==
 
To display an array of items and item types with links to external sites.
 
== Use ==
 
Use varies by the item type:
 
=== Normal Item ===
 
{{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:
 
<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 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:
 
<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:
 
<code><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}}</code>
 
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:
 
{{ItemDisplay|weapon=yes|IMAGE=eliv_thade_sword.gif|name=Sword of Skardsen|JNID=674|IDBID=1586|TDNWeapID=1863|NP=9,000,000}}
 
Source:
 
<code><nowiki>{{ItemDisplay</nowiki>|weapon=yes|IMAGE=eliv_thade_sword.gif|name=Sword of Skardsen|JNID=674|IDBID=1586|TDNWeapID=1863|'''NP'''=9,000,000}}</code>
 
*'''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)
 
<center>---</center>
 
{{ItemDisplay|wearable=yes|IMAGE=mall_floatingneggfaerie.gif|name=Floating Negg Faerie Doll|JNID=25303|TDNID=1488|DTIID=37002-Floating-Negg-Faerie-Doll|NC=150}}
 
Source:
 
<code><nowiki>{{ItemDisplay</nowiki>|wearable=yes|IMAGE=mall_floatingneggfaerie.gif|name=Floating Negg Faerie Doll|JNID=25303|TDNID=1488|DTIID=37002-Floating-Negg-Faerie-Doll|'''NC'''=150}}</code>
 
*'''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:
 
<code><nowiki>{{ItemDisplay</nowiki>|normal=yes|IMAGE=codestone3.gif|name=Lu Codestone|'''name2'''=Lu+Codestone|JNID=115}}</code>
 
The result:
 
{{ItemDisplay|normal=yes|IMAGE=codestone3.gif|name=Lu Codestone|name2=Lu+Codestone|JNID=115}}
 
*'''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:
 
<code><nowiki>{{ItemDisplay</nowiki>|normal=yes|'''sw'''=yes|IMAGE=codestone3.gif|name=Lu Codestone|'''name2'''=Lu+Codestone|JNID=115}}</code>
 
Comes out as:
 
{{ItemDisplay|normal=yes|sw=yes|IMAGE=codestone3.gif|name=Lu Codestone|'''name2'''=Lu+Codestone|JNID=115}}
 
*'''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:
 
<code><nowiki>{{ItemDisplay</nowiki>|normal=yes|'''tp'''=yes|IMAGE=codestone3.gif|name=Lu Codestone|'''name2'''=Lu+Codestone|JNID=115}}</code>
 
Comes out as:
 
{{ItemDisplay|normal=yes|tp=yes|IMAGE=codestone3.gif|name=Lu Codestone|name2=Lu+Codestone|JNID=115}}
 
*'''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:
 
<code><nowiki>{{ItemDisplay</nowiki>|normal=yes|'''auc'''=yes|IMAGE=codestone3.gif|name=Lu Codestone|'''name2'''=Lu+Codestone|JNID=115}}</code>
 
Comes out as:
 
{{ItemDisplay|normal=yes|auc=yes|IMAGE=codestone3.gif|name=Lu Codestone|name2=Lu+Codestone|JNID=115}}
 
*'''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.
 
<code><nowiki>{{ItemDisplay</nowiki>|normal=yes|'''sw'''=yes|'''tp'''=yes|'''auc'''=yes|IMAGE=codestone3.gif|name=Lu Codestone|'''name2'''=Lu+Codestone|JNID=115}}</code>
 
Produces:
 
{{ItemDisplay|normal=yes|sw=yes|tp=yes|auc=yes|IMAGE=codestone3.gif|name=Lu Codestone|name2=Lu+Codestone|JNID=115}}
 
You can also use them in co-operation with the '''wearable''' and '''weapon''' types:
 
{{ItemDisplay|weapon=yes|sw=yes|tp=yes|auc=yes|IMAGE=eliv_thade_sword.gif|name=Sword of Skardsen|name2=Sword+of+Skardsen|JNID=674|IDBID=1586|TDNWeapID=1863}}
<br><br>
{{ItemDisplay|wearable=yes|sw=yes|tp=yes|auc=yes|IMAGE=gif_gmc2013_skwarbal.gif|name=Shenkuu Lantern Balloon|name2==Shenkuu+Lantern+Balloon|JNID=55474|TDNID=12336|DTIID=68461-Shenkuu-Lantern-Balloon}}
 
===== 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:
 
<code><nowiki>{{ItemDisplay</nowiki>|normal=yes|'''TDNCustom'''=yes|IMAGE=mall_gbmc_wheelbarrow.gif|name=Flower Barrow Gift Box Mystery Capsule|JNID=56458|'''TDNID'''=12335}}</code>
 
Creates:
 
{{ItemDisplay|normal=yes|TDNCustom=yes|IMAGE=mall_gbmc_wheelbarrow.gif|name=Flower Barrow Gift Box Mystery Capsule|JNID=56458|TDNID=12335}}
 
*'''TDNCustom'''
**Customization Central flag. It lets the template know that it needs to display a link to TDN's customization.It should be set to '''yes'''.
*'''TDNID'''
**ID on TDN's Customization Central. If item is located at [http://customize.thedailyneopets.com/index.php/itemdb/find/3782 http://customize.thedailyneopets.com/index.php/itemdb/find/'''3782'''], then you'd put '3782' in this field.
 
{{WhatLinksHere|prefix=Template:|type=template}}
 
[[Category:Templates/Media]]</noinclude>

Latest revision as of 10:56, 4 June 2017

Redirect to: