Difference between revisions of "AODB"

From Anarchy Online Wiki [AOWiki]
Line 2: Line 2:
  
 
===Update Notes===
 
===Update Notes===
 +
*Version 2.0 Nov 28, 2017
 +
**Added inline option
 +
**Added icon detection, if image file doesn't exist, default to a "no image" image. Insert a category to track pages with these errors: [[:Category: AODB Image Missing]]
 +
**If there is a general error with the item (not found,etc), insert category: [[:Category:AODB Error]]
  
 
===Icon DB Updates===
 
===Icon DB Updates===
Line 9: Line 13:
 
Available options, etc.
 
Available options, etc.
 
<br>
 
<br>
'''Basic Use:''' &lt;aodb&gt;267257&lt;/aodb&gt;<br>
+
====Basic Use====
 +
*Code: &lt;aodb&gt;267257&lt;/aodb&gt;<br>
 
*This provides only the icon, linked to [http://www.aoitems.com aoitems.com], and the item's name on mouse-over. Default icon size is 48px square.
 
*This provides only the icon, linked to [http://www.aoitems.com aoitems.com], and the item's name on mouse-over. Default icon size is 48px square.
 
*Example output: <aodb>267257</aodb>
 
*Example output: <aodb>267257</aodb>
 
<br>
 
<br>
'''Adjusting Size/Image Options:''' &lt;aodb opts="24px"&gt;267257&lt;/aodb&gt;<br>
+
====Adjusting Size/Image Options====
 +
*Code: &lt;aodb opts="24px"&gt;267257&lt;/aodb&gt;<br>
 
*To pass along wiki specific markup for images to the file, use the ''opts=""'' attribute.
 
*To pass along wiki specific markup for images to the file, use the ''opts=""'' attribute.
 
*Example output (opts="24px"): <aodb opts="24px">267257</aodb>
 
*Example output (opts="24px"): <aodb opts="24px">267257</aodb>
 
*Example output (opts="24px|frame|none"): <aodb opts="24px|frame|none">267257</aodb>
 
*Example output (opts="24px|frame|none"): <aodb opts="24px|frame|none">267257</aodb>
 
<br>
 
<br>
'''Include Item's Name:''' &lt;aodb sidetitle="aoi"&gt;267257&lt;/aodb&gt;<br>
+
====Include Item's Name====
 +
*Code: &lt;aodb sidetitle="aoi"&gt;267257&lt;/aodb&gt;<br>
 
*Include the item's name on the right side, and link it--either to itemsite or wiki page.
 
*Include the item's name on the right side, and link it--either to itemsite or wiki page.
 
*Example output, link to aoitems.com (sidetitle="aoi"): <aodb sidetitle="aoi">267257</aodb>
 
*Example output, link to aoitems.com (sidetitle="aoi"): <aodb sidetitle="aoi">267257</aodb>
 
*Example output, link to wiki page of item's name (sidetitle="wiki"): <aodb sidetitle="wiki">267257</aodb>
 
*Example output, link to wiki page of item's name (sidetitle="wiki"): <aodb sidetitle="wiki">267257</aodb>
 
<br>
 
<br>
'''Text-Only/No Icon:''' &lt;aodb icon="false"&gt;267257&lt;/aodb&gt;<br>
+
====Text-Only/No Icon====
 +
*Code: &lt;aodb icon="false"&gt;267257&lt;/aodb&gt;<br>
 
*If you're wanting only a link of the item to aoitems.com, and no image.
 
*If you're wanting only a link of the item to aoitems.com, and no image.
 
*Example output: <aodb icon="false">267257</aodb>
 
*Example output: <aodb icon="false">267257</aodb>
'''Remove Link:''' &lt;aodb link="false"&gt;267257&lt;/aodb&gt;<br>  
+
 
 +
====Remove Link====
 +
*Code: &lt;aodb link="false"&gt;267257&lt;/aodb&gt;<br>  
 
*If you're wanting the icon to just be an image, and not go anywhere. Still includes item name on mouse-over.
 
*If you're wanting the icon to just be an image, and not go anywhere. Still includes item name on mouse-over.
 
*Example output: <aodb link="false">267257</aodb>
 
*Example output: <aodb link="false">267257</aodb>
  
 +
====Inline====
 +
*Code: &lt;aodb inline="true"&gt;267257&lt;/aodb&gt;
 +
*Allows you to put a link with tiny icon in a sentence.
 +
*Example output: <aodb inline="true">267257</aodb>
  
 
[[Category: AOWiki]]
 
[[Category: AOWiki]]
 
[[Category: Help]]
 
[[Category: Help]]

Revision as of 02:50, 29 November 2017

AODB is a custom extension exclusively for the AO Wiki. This extension provides the tag <aodb> for inserting the name and icons for in-game items.

Update Notes

  • Version 2.0 Nov 28, 2017
    • Added inline option
    • Added icon detection, if image file doesn't exist, default to a "no image" image. Insert a category to track pages with these errors: Category: AODB Image Missing
    • If there is a general error with the item (not found,etc), insert category: Category:AODB Error

Icon DB Updates

  • Images/Names updated (AO Patch 18.8.23) as of Nov 17, 2017

Usage

Available options, etc.

Basic Use

  • Code: <aodb>267257</aodb>
  • This provides only the icon, linked to aoitems.com, and the item's name on mouse-over. Default icon size is 48px square.
  • Example output: Dreadloch Tigress


Adjusting Size/Image Options

  • Code: <aodb opts="24px">267257</aodb>
  • To pass along wiki specific markup for images to the file, use the opts="" attribute.
  • Example output (opts="24px"): Dreadloch Tigress
  • Example output (opts="24px|frame|none"):
    Dreadloch Tigress


Include Item's Name

  • Code: <aodb sidetitle="aoi">267257</aodb>
  • Include the item's name on the right side, and link it--either to itemsite or wiki page.
  • Example output, link to aoitems.com (sidetitle="aoi"): Dreadloch Tigress Dreadloch Tigress
  • Example output, link to wiki page of item's name (sidetitle="wiki"): Dreadloch Tigress Dreadloch Tigress


Text-Only/No Icon

  • Code: <aodb icon="false">267257</aodb>
  • If you're wanting only a link of the item to aoitems.com, and no image.
  • Example output: Dreadloch Tigress

Remove Link

  • Code: <aodb link="false">267257</aodb>
  • If you're wanting the icon to just be an image, and not go anywhere. Still includes item name on mouse-over.
  • Example output: Dreadloch Tigress

Inline

  • Code: <aodb inline="true">267257</aodb>
  • Allows you to put a link with tiny icon in a sentence.
  • Example output: Dreadloch Tigress