Template talk:AH

Hmm... I'm not sure I like this... I have a snippet from the new full-page template I'm working on that might work better:

The usage is (the subcategories are optional). This would show "Cannot be sold on the Auction House." if nothing is defined, "Cannot be auctioned, traded, or bazaared." if "Exclusive" is defined, and would allow for up to three categories (which, I believe, is the max).

However, this requires the Parser Functions extension, which FFXIclopedia doesn't seem to have. I know ifdef will work in place of, but I haven't been able to find a replacement for. ~ Karuberu 23:28, 3 April 2007 (EDT)

The lack of said parcer functions is why something that complex isn't used. I'd prefer to use something you can program with an if/then, but what can you do. It works the way it is now, though, and it's easy enough to use. --Chrisjander 00:13, 4 April 2007 (EDT)


 * It'd be easy enough to add the extension, but I won't get into all that. Here's a similar version using only ifdef:
 * I haven't tested this, but it should work. If is defined (the variable name could be changed), then it will display "Cannot be traded or bazaared." (on a new line after the categories, if they're defined); If no categories are defined, then it will display "Cannot be sold on the Auction House, but can be traded and bazaared."; If no categories are defined and  is defined, then it will display "Cannot be auctioned, traded, or bazaared." ~ Karuberu 00:52, 4 April 2007 (EDT)
 * I haven't tested this, but it should work. If is defined (the variable name could be changed), then it will display "Cannot be traded or bazaared." (on a new line after the categories, if they're defined); If no categories are defined, then it will display "Cannot be sold on the Auction House, but can be traded and bazaared."; If no categories are defined and  is defined, then it will display "Cannot be auctioned, traded, or bazaared." ~ Karuberu 00:52, 4 April 2007 (EDT)

What about cannot be auctioned, but can be bazaared and traded? --Chrisjander 11:21, 4 April 2007 (EDT)


 * Or for that matter, can be all three? --Chrisjander 11:23, 4 April 2007 (EDT)
 * Since almost every non-Ex item can be bazaared/traded, it's assumed that it can be if there's no message stating otherwise. Or, at least, that's my logic. But, if you want, I can insert a message for items that are able to be traded (an example message to go off would be nice). ~ Karuberu 14:36, 4 April 2007 (EDT)


 * The point is to have it there for items that aren't immediately apparent. For example, a Quadav Augury Shell cannot be sold on the auction house, but can be bazaared and traded.  I feel it's important to not leave it as assumed.  --Chrisjander 15:24, 4 April 2007 (EDT)
 * Yes, I see your point. I changed the "Cannot be sold on the Auction House." to "Cannot be sold on the Auction House, but can be traded and bazaared." (the code didn't need any changing, just the wording). I also changed the variable to , since bazaaring is really just another form of trading. ~ Karuberu 15:47, 4 April 2007 (EDT)