Template talk:Vendor table row

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search

I have a vendor who sells two different items together, how do I show it with this template? and do we use this template to list desynthesis results on item pages or is there another template for that? Tweeky (talk) 09:04, 25 October 2018 (UTC)

Two different items together? Got an example? Regarding desynthesis results we still don't have that, I have to evaluate if a simple table would suffice as it seems to be a rather small system. Valento (talk) 12:03, 25 October 2018 (UTC)
The Hellhound War Pick + Hellhound Shield for 10 Wolf Collars is one example, the Calamity Salvager (Limsa Lominsa) does sword + shield and body + legs in the same way for a total of 23 combined items. I agree desynthesis results does look like it would only need a simple table the only things I can see it needing are yield and item.

Also is there a way to show the HQ symbol after an item in the list? there are some vendors like Enna who sell NQ and HQ items for different prices for example Tatara Iron Sand NQ for 20 Allagan Tomestone of Mendacity and HQ for 50 Allagan Tomestone of Mendacity. Tweeky (talk) 22:00, 25 October 2018 (UTC)
Multiple items acquired mmm... I'll look into this. Gonna take a look at the HQ/NQ. Valento (talk) 18:04, 26 October 2018 (UTC)
Man, this is harder than I thought lol... I'm still working on it. Valento (talk) 20:40, 26 October 2018 (UTC)
I've just tried adding the scrip exchange npc and came across a problem with the collectable status, for example to buy the Millking's Saw you need 550 yellow crafters' scrips + 1 Zelkova Lumber with a collectable rating of at least 625, I haven't been able to find a way of showing the collectable rating without messing up the Zelkova Lumber link. Tweeky (talk) 11:18, 27 October 2018 (UTC)
Ok, I gotta take note:
- Purchased item: add multiple items each with their own quantities; add HQ variation.
- Cost: add collectability
I'll work this out, you can rest assured. :) Valento (talk) 14:27, 27 October 2018 (UTC)
I'm fiddling with extra parameters, this has been a very challenging task. I'm not done yet as I have to ensure other templates won't misbehave, but you can check out the WIP here. Valento (talk) 21:19, 29 October 2018 (UTC)
I've had a look at it and the HQ icon is hard to see against the background. I also tested the template on some NPC's and discovered more things need to be added. The cost section needs to be able to show HQ for example J'tandhaa in Rhalgr's Reach sells you 27 resistance tokens for 1 HQ Nightsteel Claws. I also found that some items only unlock for sale when you meet certain requirements and there's currently no way to show that for example Kasumi in the gold saucer only sells the spring shirt when you've got 300+ points from the fashion report, beast tribe vendors require a certain reputation before they sell items, Junkmonger (The Doman Enclave) only sells Enclave Map and Yanxian Merchant's Haori after you complete the quest Lighting the Way and Calamity Salvager only sells items after you complete certain quests or achievement's. I was thinking this was going to be a simple template update it's surprised me with how much work has had to be done. Tweeky (talk) 06:55, 30 October 2018 (UTC)
I think it's better to break down the parameters into item1, item1-hq, cost1, cost1-collectability. Valento (talk) 12:38, 30 October 2018 (UTC)
No, too many parameters.... Valento (talk) 12:38, 30 October 2018 (UTC)
What about now, any more requirements? :D Valento (talk) 14:29, 30 October 2018 (UTC)
I couldn't get currency icons to show up for ventures, tomestones, wolf marks, allied seals, centurio seals, scrips and beast tribes so instead I put in | cost icon = Red Crafters' Scrip Icon.png which worked until I put 2 different items in the cost parameter which caused it to change both items to that icon instead of just one. Also I've noticed | showAdditional = is breaking existing pages by being set to true by default for example here. Other than that I can't see or think of anything else that needs to be added. Tweeky (talk) 15:41, 30 October 2018 (UTC)
Oki, showAdditional now defaults to false. But I didn't quite get what you mean by Red Crafters' Scrip. Is there an example? Valento (talk) 16:01, 30 October 2018 (UTC)
I've edited JustATempPage to show you, if you look at the cost for homura instead of it showing the icon for protean crystal and fire shard it only shows the icon for Red Crafters' Scrip. Tweeky (talk) 16:13, 30 October 2018 (UTC)

(reset indent) I see. The cost icon param was originally made to override a single cost currency/item. Is there any case in which you need to cover two currency altogether? Valento (talk) 16:21, 30 October 2018 (UTC)

Ah, I got it. It was just a matter of dispatching {{currency}} template to {{scrip}}. Currencies in particular may need to be added or the currency template may not find them. Valento (talk) 16:32, 30 October 2018 (UTC)
Ok I'll have a look tomorrow, got stuff to do irl. Tweeky (talk) 17:40, 30 October 2018 (UTC)
I've created Template:Allied seal it was the only currency that needed adding, I've updated the currency template with all the main currencies and they're working fine. Is it ok to use the vendor template or are you still making adjustments to it? Tweeky (talk) 12:05, 3 November 2018 (UTC)
I've upgraded all related templates. Here's hoping nothing catches on fire... Valento (talk) 13:19, 7 November 2018 (UTC)
Lol, I've done some testing and everything seems to be ok, thank you. Tweeky (talk) 18:12, 7 November 2018 (UTC)
Looks like I spoke too soon, it looks like something is broken, I can't get {{Vendor List}} to list vendors from pages that use the parameter vendor in {{vendor table header}} for example {{Vendor list|Galatyn}} doesn't list Gerolt Blackthorn as selling the item even though the header says {{vendor table header | showRarity = false | vendor = Gerolt Blackthorn | location=The Forbidden Land, Eureka Anemos}}.


I was testing to see if it was possible to enter multiple vendors and locations in the header when I noticed it wasn't working with just one vendor and location. Tweeky (talk) 21:03, 9 November 2018 (UTC)
I still couldn't find what's wrong with Gerolt page. About location, I'm using the convention <NPC page>/<location>. One more thing: userpages, template pages, etc do not annotate data. That is default. You need to create a page in mainspace to generate SMW data. Valento (talk) 11:04, 10 November 2018 (UTC)
Some manual purge here, some delete there, and voi lá. We're gold. I could've fixed this in a simpler way, but I don't own the server. See if it's okay now! Valento (talk) 14:29, 10 November 2018 (UTC)
It seems to be working fine, I'm going to start doing an update to scrips so I should be able to say for certain in a few hours. Tweeky (talk) 16:45, 10 November 2018 (UTC)
The only issue I've managed to find is when I put in {{Vendor list|Soul of the Crafter}} instead of it taking me to Scrip Exchange it takes me to Scrip Exchange/Red Crafters' Scrip, I also tried {{Vendor list|Galatyn}} and instead of going to Gerolt Blackthorn it goes to Gerolt Blackthorn/The Forbidden Land, Eureka Anemos. Tweeky (talk) 20:43, 10 November 2018 (UTC)
It works for me, but as you can see there's a problem there. I've emailed Aaron so he could install an extension I made to normalize the record datatype from php, using a parser function called {{#normalizerec:<string>}}. Waiting on his answer. Valento (talk) 13:30, 12 November 2018 (UTC)
Ok I was expecting that when I clicked the vendor name it would take me to that vendors main page and not the sub page. I've transcluded the data from the scrip exchange sub pages onto the individual vendor pages and I'm waiting on vendor lists to fully update. Is there a way to stop the scrip exchange sub pages from appearing in the vendor list? I tried <includeonly> but that also hides all the info on the page. Tweeky (talk) 01:21, 15 November 2018 (UTC)