Latest Neocron News and Information

  • New test server patch #550 has been released to Vedeena

Difference between revisions of "Legacy THNapi:Show item commands"

From Neocron Wiki
Jump to: navigation, search
(New page: = Show item commands = These commands show items in a box. == Horizontal box item == This shows the items in a box going across the page === Example === Example: '''<nowiki><itemdb:...)
 
Line 69: Line 69:
  
 
...Magic!
 
...Magic!
 +
 +
[[Category:THN HTML API commands]]

Revision as of 21:03, 25 February 2008

Show item commands

These commands show items in a box.

Horizontal box item

This shows the items in a box going across the page


Example

Example: <itemdb:show_hoz items="2002,1500,700"/>

<itemdb:show_hoz items="2002,1500,700"/> Simple? (I just need some text underneath here.)

Vertical box item

This shows the items in a box going down the left side of the page.

Example

<itemdb:show_ver items="1345"/> This shows the items left align to allow text to flow around the item.

Example: <itemdb:show_ver items="1345"/>

However this command is limited by the HTML/CSS flow. If I have multiple items, and a short text, the next item would be aligned next to the item...like this.

<itemdb:show_ver items="1567"/>This item is good! <itemdb:show_ver items="1568"/>This item is bad...ahh you see what I mean with the format. Let me type lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots...still with me...text to move back onto a clean line. This item is bad...ahh you see what I mean with the format. Let me type lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots...still with me...text to move back onto a clean line. This item is bad...ahh you see what I mean with the format. Let me type lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots...still with me...text to move back onto a clean line.

This command is provided so you can wrap your own WikiTemplate around the item.

Vertical box item block

This command is provided to overcome the problems of the <itemdb:show_ver> tag.

Example

Example: <itemdb:show_block items="1345"> and </itemdb:show_block>

<itemdb:show_block items="1345">This shows the items left align to allow text to flow around the item, but if it's short, the next line after the closing tag will start below the item.</itemdb:show_block>

...Just like that!


Vertical box item (Right aligned)

This shows the items in a box going down the right side of the page.

Example

<itemdb:show_ver_right items="1345"/> Example: <itemdb:show_ver items="1345"/>

This shows the items left align to allow text to flow around the item.

This still has the same flow issues as <itemdb:show_ver/> So heres lots of text... his item is bad...ahh you see what I mean with the format. Let me type lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots...still with me...text to move back onto a clean line. This item is bad...ahh you see what I mean with the format. Let me type lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots...still with me...text to move back onto a clean line. This item is bad...ahh you see what I mean with the format. Let me type lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots and lots...still with me...text to move back onto a clean line.


Vertical box item block (Right aligned)

This command is provided to overcome the problems of the <itemdb:show_ver_right> tag.

Example

Example: <itemdb:show_block_right items="1345"> and </itemdb:show_block_right>

<itemdb:show_block_right items="1345">This shows the items right aligned to allow text to flow around the item, but if it's short, the next line after the closing tag will start below the item.</itemdb:show_block_right>

...Magic!