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

From Neocron Wiki
Jump to: navigation, search
m (THNapi:HTML API - Show item commands moved to THNapi:Show item commands: HTML is no longer relevant)
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
These commands show items in a box.
 
These commands show items in a box.
  
== Horizontal box item ==
+
{{THNapi:Show hoz}}
  
This shows the items in a box going across the page
+
{{THNapi:Show ver}}
  
 +
{{THNapi:Show block}}
  
=== Example ===
+
{{THNapi:Show ver right}}
  
Example: '''<nowiki><itemdb:show_hoz items="2002,1500,700"/></nowiki>'''
+
{{THNapi:Show block right}}
  
<itemdb:show_hoz items="2002,1500,700"/>
+
[[Category:THN API commands|Show item commands]]
Simple? (I just need some text underneath here.)
+
[[Category:Wiki Item DB tags|Show item commands]]
 
 
== 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: '''<nowiki><itemdb:show_ver items="1345"/></nowiki>'''
 
 
 
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 <nowiki><itemdb:show_ver></nowiki> tag.
 
 
 
=== Example ===
 
 
 
Example: '''<nowiki><itemdb:show_block items="1345"> and </itemdb:show_block></nowiki>'''
 
 
 
<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: '''<nowiki><itemdb:show_ver items="1345"/></nowiki>'''
 
 
 
This shows the items left align to allow text to flow around the item.
 
 
 
This still has the same flow issues as '''<nowiki><itemdb:show_ver/></nowiki>''' 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 <nowiki><itemdb:show_ver_right></nowiki> tag.
 
 
 
=== Example ===
 
 
 
Example: '''<nowiki><itemdb:show_block_right items="1345"> and </itemdb:show_block_right></nowiki>'''
 
 
 
<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!
 
 
 
[[Category:THN HTML API commands]]
 

Latest revision as of 10:34, 22 April 2008