Difference between revisions of "Template:XYPHOS I"

From Anarchy Online Wiki [AOWiki]
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{{{{|safesubst:}}}#if:{{{3|}}}|<aodb>{{{1}}}</aodb> [http://www.xyphos.com/ao/aodb.php?id={{{1}}}&ql={{{2}}} {{{3}}}]|<aodb>{{{1}}}</aodb> [http://www.xyphos.com/ao/aodb.php?id={{{1}}} {{{2}}}]}}
+
{{{{{|safesubst:}}}#if:{{{size|}}}|{{#tag:aodb|{{{1}}}|opts="{{{size}}}px"}} |{{#tag:aodb|{{{1}}}}}}}{{{{{|safesubst:}}}#if:{{{ql|}}}|[http://www.xyphos.com/ao/aodb.php?id={{{1}}}&ql={{{ql}}} {{{3}}}]|[http://www.xyphos.com/ao/aodb.php?id={{{1}}} {{{2}}}]}}
<noinclude>[[Category:Templates|AODB]]</noinclude>
+
<noinclude>
 +
Functions the same as the original XYPHOS template, except that it appends and icon in front of the link as well, <br>
 +
as there are now two optional parameters, QL and image size, these must be specified when using them. <br>
 +
eg. <nowiki>{{XYPHOS_I|11111|Item with lots of ones|size=24|ql=99}}</nowiki> <br>
 +
Would link the item 11111, with the given text, at QL 99, and with a 24 by 24 pixel icon <br>
 +
[[Category:Templates|AODB]]
 +
</noinclude>

Latest revision as of 03:15, 7 October 2011

{{safesubst:#if:|<aodb>INVALID ID</aodb> |<aodb>INVALID ID</aodb>}}{{safesubst:#if:|{{{3}}}|{{{2}}}}}

Functions the same as the original XYPHOS template, except that it appends and icon in front of the link as well,
as there are now two optional parameters, QL and image size, these must be specified when using them.
eg. {{XYPHOS_I|11111|Item with lots of ones|size=24|ql=99}}
Would link the item 11111, with the given text, at QL 99, and with a 24 by 24 pixel icon