Difference between revisions of "Template:AH"

*>Yertthedestroyer
m (Editing to add note, reverted to add massively useful functionality. Being able to get to FFXIAH in one click lets you see the notes of FFXIAH users, and transfer over to other wikis where there might be more information, especially on Ex tag items.)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|cellpadding="0" cellspacing="0" style="margin: 0; padding: 0"
+
<includeonly>{|cellpadding="0" cellspacing="0" style="margin: 0; padding: 0"
| {{#if:{{{1|}}}|{{#ifeq:{{{1}}}|Exclusive|'''''Cannot be [[Auction House|auctioned]], [[Trade|traded]], or [[Bazaar|bazaared]]. {{navimgx
+
| {{#switch:{{lc:{{{1|}}}}}|bazaar = '''''Cannot be sold on the [[Auction House]], but can be [[Trade|traded]], [[Bazaar|bazaared]], and [[Delivery Box|delivered]] to a character on the same account.'''''|undeliverable bazaar| = '''''Cannot be sold on the [[Auction House]] or [[Delivery Box|delivered]], but can be [[Trade|traded]] and [[Bazaar|bazaared]].'''''|exclusive = '''''Cannot be [[Auction House|auctioned]], [[Trade|traded]], or [[Bazaar|bazaared]], but can be [[Delivery Box|delivered]] to a character on the same account.'''''|undeliverable exclusive = '''''Cannot be [[Auction House|auctioned]], [[Trade|traded]], [[Bazaar|bazaared]], or [[Delivery Box|delivered]].'''''|#default = '''[[Auction House#Categories|Auction House Category]]:''' [[{{{1}}}]]{{#if:{{{2|}}}|<nowiki/> > {{#switch:{{{2}}}|Automaton=[[Automaton Attachments|{{{2}}}]]|Summoning=[[Summoning Magic|{{{2}}}]]|[[{{{2}}}]]}}{{#if:{{{3|}}}|<nowiki/> > [[{{{3}}}]]}}}} (}}
 +
|{{#switch:{{lc:{{{1|}}}}}|bazaar|exclusive|undeliverable bazaar|undeliverable exclusive| = style="padding-left:0.5em; line-height:0;"|#default = style="line-height:0;"}}|{{navimgx
 
| linktext = &nbsp;
 
| linktext = &nbsp;
 
| xsize = 19
 
| xsize = 19
Line 6: Line 7:
 
| image = FFXIAH-icon.png
 
| image = FFXIAH-icon.png
 
| link = http://www.ffxiah.com/search/item?name={{#replace:{{#replace:{{{search|{{PAGENAMEE}}}}}|+|%2B}}|_|+}}
 
| link = http://www.ffxiah.com/search/item?name={{#replace:{{#replace:{{{search|{{PAGENAMEE}}}}}|+|%2B}}|_|+}}
}}'''''|'''[[Auction House#Categories|Auction House Category]]:''' [[{{{1}}}]]}} {{#if:{{{2|}}}|> {{#switch:{{{2}}}|Automaton=[[Automaton Attachments|{{{2}}}]]|Summoning=[[Summoning Magic|{{{2}}}]]|[[{{{2}}}]]}} {{#if:{{{3|}}}|> [[{{{3}}}]]|}}|}}|'''''Cannot be sold on the [[Auction House]], but can be [[Trade|traded]] and [[Bazaar|bazaared]]. {{navimgx
+
}}{{#switch:{{lc:{{{1|}}}}}|bazaar|exclusive|undeliverable bazaar|undeliverable exclusive| = |#default = {{!}}{{!}})}}
| linktext = &nbsp;
+
|}<!---
| xsize = 19
 
| ysize = 19
 
| image = FFXIAH-icon.png
 
| link = http://www.ffxiah.com/search/item?name={{#replace:{{#replace:{{{search|{{PAGENAMEE}}}}}|+|%2B}}|_|+}}
 
}}'''''}}{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|Exclusive||&nbsp;(
 
{{!}} {{navimgx
 
| linktext = &nbsp;
 
| xsize = 19
 
| ysize = 19
 
| image = FFXIAH-icon.png
 
| link = http://www.ffxiah.com/search/item?name={{#replace:{{#replace:{{{search|{{PAGENAMEE}}}}}|+|%2B}}|_|+}}
 
}}
 
{{!}} )}}}}
 
|}<!---  
 
  
---><includeonly>{{#if:{{{1|}}}|[[Category:{{{1}}}]]|}}{{#if:{{{2|}}}|{{#switch:{{{2}}}|Automaton=[[Category:Automaton Attachments]]|[[Category:{{{2}}}]]|Summoning=[[Category:Summoning Magic]]|[[Category:{{{2}}}]]}}|}}{{#if:{{{3|}}}|[[Category:{{{3}}}]]|}}</includeonly><noinclude>
+
--->{{#if:{{{nc|}}}||{{#switch:{{lc:{{{1|}}}}}|bazaar| = |undeliverable bazaar = [[Category:Undeliverable]]|exclusive = [[Category:Exclusive]]|undeliverable exclusive = [[Category:Exclusive]][[Category:Undeliverable]]|#default = [[Category:{{{1}}}]]{{#if:{{{2|}}}|[[Category:{{#switch:{{{2|}}}|Automaton=Automaton Attachments|Summoning=Summoning Magic|{{{2}}}}}]]{{#if:{{{3|}}}|[[Category:{{{3}}}]]|}}|}}}}}}</includeonly><noinclude>
[[Category:Templates|{{PAGENAMEE}}]][[fr:Template:AH]]
+
[[Category:Templates|{{PAGENAMEE}}]]
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
 
{{AH|category|subcategory|subcategory|search=Item_Name}}
 
{{AH|category|subcategory|subcategory|search=Item_Name}}
 
</pre>
 
</pre>
*The subcategories and the 'search' parameter are optional.
+
*The subcategories and are optional.
*Use the 'search' parameter to specify the name of the item to search for on ffxiah.com if the item cannot be found via. its page name.
+
*'''search:''' Optional. Use to specify the name of the item to search for on ffxiah.com, if the item cannot be found via its page name (see example below).
:''For example'': The [[Corsair's Roll]] item is identified by the name "Corsair die".
+
===Examples===
*Displays "'''''Cannot be sold on the [[Auction House]], but can be [[Trade|traded]] and [[Bazaar|bazaared]].'''''" if nothing is defined.
+
{|border="1"
*Displays "'''''Cannot be [[Auction House|auctioned]], [[Trade|traded]], or [[Bazaar|bazaared]].'''''" if "Exclusive" is defined.
+
|- BGCOLOR="e3e3e3"
 +
!width="50%"| Code !! Result
 +
|-
 +
| <pre>{{AH|Furnishings}}</pre>
 +
| {{AH|Furnishings|nc=true}}
 +
|-
 +
| <pre>{{AH|Weapons|Swords}}</pre>
 +
| {{AH|Weapons|Swords|nc=true}}
 +
|-
 +
| <pre>{{AH|Weapons|Ammo & Misc|Fishing Gear}}</pre>
 +
| {{AH|Weapons|Ammo & Misc.|Fishing Gear|nc=true}}
 +
|-
 +
| <pre>{{AH|Scrolls|Dice|search=Corsair_Die}}</pre>
 +
| {{AH|Scrolls|Dice|search=Corsair_Die|nc=true}}
 +
|-
 +
| <pre>{{AH}}</pre>
 +
| {{AH|nc=true}}
 +
|-
 +
| <pre>{{AH|bazaar}}</pre>
 +
| {{AH|bazaar|nc=true}}
 +
|-
 +
| <pre>{{AH|exclusive}}</pre>
 +
| {{AH|exclusive|nc=true}}
 +
|-
 +
| <pre>{{AH|undeliverable bazaar}}</pre>
 +
| {{AH|undeliverable bazaar|nc=true}}
 +
|-
 +
| <pre>{{AH|undeliverable exclusive}}</pre>
 +
| {{AH|undeliverable exclusive|nc=true}}
 +
|}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:44, 31 July 2017

Usage[edit]

{{AH|category|subcategory|subcategory|search=Item_Name}}
  • The subcategories and are optional.
  • search: Optional. Use to specify the name of the item to search for on ffxiah.com, if the item cannot be found via its page name (see example below).

Examples[edit]

Code Result
{{AH|Furnishings}}
Auction House Category: Furnishings ( )
{{AH|Weapons|Swords}}
Auction House Category: Weapons > Swords ( )
{{AH|Weapons|Ammo & Misc|Fishing Gear}}
Auction House Category: Weapons > Ammo & Misc. > Fishing Gear ( )
{{AH|Scrolls|Dice|search=Corsair_Die}}
Auction House Category: Scrolls > Dice ( )
{{AH}}
Cannot be sold on the Auction House or delivered, but can be traded and bazaared.
{{AH|bazaar}}
Cannot be sold on the Auction House, but can be traded, bazaared, and delivered to a character on the same account.
{{AH|exclusive}}
Cannot be auctioned, traded, or bazaared, but can be delivered to a character on the same account.
{{AH|undeliverable bazaar}}
Cannot be sold on the Auction House or delivered, but can be traded and bazaared.
{{AH|undeliverable exclusive}}
Cannot be auctioned, traded, bazaared, or delivered.