Difference between revisions of "Legacy THNapi:ItemDB Icon"

From Neocron Wiki
Jump to: navigation, search
m (Opps fixed categories)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
= This command is due to be released with tne next Item DB update =
+
{{api
 +
| tag = itemdb:icon
 +
| command = ItemDB_Icon
 +
| usage = This shows the Icon for an item. Clicking on an item will show the item details in a popup window.
 +
| thn_ony = no
 +
| param_items = yes
 +
| param_format = opt
 +
| param_order = opt
 +
| param_plural = opt
 +
| param_size = opt
 +
| param_style = opt
 +
}}
  
This means this command won't work just yet!
+
== Example 1 ==
  
== Icon ==
+
Example:  '''<nowiki><itemdb:icon items="2182"/></nowiki>'''
  
This shows the Icon for an item. Clicking on an item will show the item details in a popup window.  
+
<itemdb:icon items="2182"/> This is the Backup SWAT gun.
  
=== Example ===
+
== Example 2 ==
  
Example:  '''<nowiki><itemdb:icon items="1508"/></nowiki>'''
+
Example:  '''<nowiki><itemdb:icon items="2182" style="default"/></nowiki>'''
  
<itemdb:icon items="1508"/> This sword is one of many swords in the game.
+
<itemdb:icon items="2182"  style="default"/> This is the Backup SWAT gun.
  
 +
== Example 3 ==
  
[[Category:THN HTML API commands|Icon]]
+
Example: '''<nowiki><itemdb:icon items="2182" style="none"/></nowiki>'''
[[Category:Wiki Item DB tags|Icon]]
+
 
 +
<itemdb:icon items="2182" style="none"/> This is the Backup SWAT gun with no background.

Latest revision as of 20:03, 2 July 2008

ItemDB Icon

  • Item DB Tag: <itemdb:icon>
  • Web service function: ItemDB_Icon
  • Usage: This shows the Icon for an item. Clicking on an item will show the item details in a popup window.

Required parameters

THNapi:Parameter - Items

Optional parameters

THNapi:Parameter - FormatTHNapi:Parameter - OrderTHNapi:Parameter - PluralTHNapi:Parameter - SizeTHNapi:Parameter - Style


Example 1

Example: <itemdb:icon items="2182"/>

<itemdb:icon items="2182"/> This is the Backup SWAT gun.

Example 2

Example: <itemdb:icon items="2182" style="default"/>

<itemdb:icon items="2182" style="default"/> This is the Backup SWAT gun.

Example 3

Example: <itemdb:icon items="2182" style="none"/>

<itemdb:icon items="2182" style="none"/> This is the Backup SWAT gun with no background.