Difference between revisions of "Template:AHlong"

From Fallen Sword Wiki
Jump to: navigation, search
(New page: <includeonly>[http://www.fallensword.com/index.php?cmd=auctionhouse&type=-1&search_text={{{1|}}} {{{2|}}}]</includeonly> <noinclude> <center> {| width="100%" style="border:3px dashed #f00;...)
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
<includeonly>[http://www.fallensword.com/index.php?cmd=auctionhouse&type=-1&search_text={{{1|}}} {{{2|}}}]</includeonly>
+
<includeonly>[http://www.fallensword.com/index.php?cmd=auctionhouse&search={{urlencode:{{{1|}}}}} {{{2|}}}]</includeonly>
 
<noinclude>
 
<noinclude>
 
<center>
 
<center>
Line 17: Line 17:
 
This template allows you to make a link that searches the auction house for a specific item.
 
This template allows you to make a link that searches the auction house for a specific item.
  
If no parameters are specified, the link will only take you to the Auction House. However, if the item name is given, it is important to note that there cannot be any spaces. If the item does have spaces in the name, they must be replaced with <tt>+</tt> to work. For example if you are making a link to search the Auction House for a Rune of Decay, you would put it into the template as <tt>Rune+of+Decay</tt>. The description parameter does allow spaces.
+
If no parameters are specified, the link will only take you to the Auction House. <strike>However, if the item name is given, it is important to note that there cannot be any spaces. If the item does have spaces in the name, they must be replaced with <tt>+</tt> to work. For example if you are making a link to search the Auction House for a Rune of Decay, you would put it into the template as <tt>Rune+of+Decay</tt>.</strike> The template now automatically replaces any spaces in the item name with <tt>+</tt> so the link will properly work. The description parameter does allow spaces.
  
 
{| width="100%"
 
{| width="100%"
Line 23: Line 23:
 
! ''Output''
 
! ''Output''
 
|-
 
|-
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{AHlong|item+name|description}}</nowiki></code>
+
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{AHlong|item name|description}}</nowiki></code>
| width="50%" style="border:1px solid #aaa;" | {{AHlong|item+name|description}}
+
| width="50%" style="border:1px solid #aaa;" | {{AHlong|item name|description}}
 
|-
 
|-
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{AHlong|Rune+of+Decay|an awesome rune!!!}}</nowiki></code>
+
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{AHlong|Rune of Decay|an awesome rune!!!}}</nowiki></code>
| width="50%" style="border:1px solid #aaa;" | {{AHlong|Rune+of+Decay|an awesome rune!!!}}
+
| width="50%" style="border:1px solid #aaa;" | {{AHlong|Rune of Decay|an awesome rune!!!}}
 
|}
 
|}
  

Latest revision as of 15:58, 23 April 2019


Do not edit this page!

If you need to customize this template to fit your own needs, copy the code into a fresh template and work from there.

Editing this page may cause the template to stop working properly for other pages currently using this template.


How to Use

This template allows you to make a link that searches the auction house for a specific item.

If no parameters are specified, the link will only take you to the Auction House. However, if the item name is given, it is important to note that there cannot be any spaces. If the item does have spaces in the name, they must be replaced with + to work. For example if you are making a link to search the Auction House for a Rune of Decay, you would put it into the template as Rune+of+Decay. The template now automatically replaces any spaces in the item name with + so the link will properly work. The description parameter does allow spaces.

Code Output
{{AHlong|item name|description}} description
{{AHlong|Rune of Decay|an awesome rune!!!}} an awesome rune!!!

Alternate Templates

  • Template:AHshort - A quick Auction House link that takes very little space on a page.
  • Template:AHlong - A longer Auction House link that permits a description of the destination.
  • Template:AHplayer - An Auction House link that takes you to a player's auctions.