Difference between revisions of "AODB"
From Anarchy Online Wiki [AOWiki]
JungleGeorge (talk | contribs) (Created page with "AODB is the latest extension used to display icons and text with item database site links. For the author's instructions on using it se...") |
m (→Usage) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | 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.1.2 Dec 2, 2017 | ||
+ | **Fix option for using icon ID instead of item ID | ||
+ | *Version 2.1 Nov 28, 2017 | ||
+ | **Added option to change tooltip text. | ||
+ | *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. | ||
+ | <br> | ||
+ | ====Basic Use==== | ||
+ | *Code: <aodb>267257</aodb><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. | ||
+ | *Example output: <aodb>267257</aodb> | ||
+ | <br> | ||
+ | ====Adjusting Size/Image Options==== | ||
+ | *Code: <aodb opts="24px">267257</aodb><br> | ||
+ | *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|frame|none"): <aodb opts="24px|frame|none">267257</aodb> | ||
+ | <br> | ||
+ | ====Include Item's Name==== | ||
+ | *Code: <aodb sidetitle="aoi">267257</aodb><br> | ||
+ | *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 wiki page of item's name (sidetitle="wiki"): <aodb sidetitle="wiki">267257</aodb> | ||
+ | <br> | ||
+ | ====Text-Only/No Icon==== | ||
+ | *Code: <aodb icon="false">267257</aodb><br> | ||
+ | *If you're wanting only a link of the item to aoitems.com, and no image. | ||
+ | *Example output: <aodb icon="false">267257</aodb> | ||
+ | |||
+ | ====Remove Link==== | ||
+ | *Code: <aodb link="false">267257</aodb><br> | ||
+ | *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> | ||
+ | |||
+ | ====Inline==== | ||
+ | *Code: <aodb inline="true">267257</aodb> | ||
+ | *Allows you to put a link with tiny icon in a sentence. | ||
+ | *Example output: <aodb inline="true">267257</aodb> | ||
+ | |||
+ | ====Custom Tooltip==== | ||
+ | *Code: <aodb tooltip="OMG OP MP Weapon">267257</aodb> | ||
+ | *Allows you to change the tooltip/mouse-over text for the icon. | ||
+ | *Example output: <aodb tooltip="OMG OP MP Weapon">267257</aodb> | ||
+ | |||
+ | ====Reference icon ID==== | ||
+ | *Code: <aodb id="icon">264841</aodb> | ||
+ | *Use an icon's ID instead of an item's ID. This is a super niche feature, and 99% of the time is not needed, but available for that 1% of the time. You would need to locate the icon's ID and use that in place of the item's id. | ||
+ | *Example output: <aodb id="icon">264841</aodb> | ||
[[Category: AOWiki]] | [[Category: AOWiki]] | ||
+ | [[Category: Help]] |
Latest revision as of 07:12, 2 December 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.1.2 Dec 2, 2017
- Fix option for using icon ID instead of item ID
- Version 2.1 Nov 28, 2017
- Added option to change tooltip text.
- 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:
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"):
- Example output (opts="24px|frame|none"):
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
- Example output, link to wiki page of item's name (sidetitle="wiki"): 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:
Inline
- Code: <aodb inline="true">267257</aodb>
- Allows you to put a link with tiny icon in a sentence.
- Example output: Dreadloch Tigress
Custom Tooltip
- Code: <aodb tooltip="OMG OP MP Weapon">267257</aodb>
- Allows you to change the tooltip/mouse-over text for the icon.
- Example output:
Reference icon ID
- Code: <aodb id="icon">264841</aodb>
- Use an icon's ID instead of an item's ID. This is a super niche feature, and 99% of the time is not needed, but available for that 1% of the time. You would need to locate the icon's ID and use that in place of the item's id.
- Example output: