Template talk:ShopItem

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search

Custom Prices

The template doesn't allow you to enter in your own prices outside of Rupee amounts. For example, on the Cherry page, you must pay an amount of Rupees alongside an assortment of materials. Naturally, I tried to use Item Amount for this, but whenever I do that it comes out like:
"data-sort-value=IMAGE Γ— 2 Ancient Screws | IMAGE Γ— 2 Ancient Screws"
Which...isn't the best. For now, I'll probably just need to use a manual table to host the shop data until custom prices can be implemented. It may be nice to have turn this into a module as well as this still uses template functions. β€” 𝐌𝐚𝐠𝐒𝐜𝐌𝐚𝐬𝐨𝐧𝟏𝟎𝟎𝟎 (𝐭𝐚π₯𝐀) 00:12, 8 April 2022 (UTC)Reply[reply]

After looking at it a bit more, it looks like it breaks whenever {{Template:Term}} or {{Template:Plural}} is used, which Item Amount incorporates. β€” 𝐌𝐚𝐠𝐒𝐜𝐌𝐚𝐬𝐨𝐧𝟏𝟎𝟎𝟎 (𝐭𝐚π₯𝐀) 00:27, 8 April 2022 (UTC)Reply[reply]

I've created Template:Wares which supports item amounts (see example-2.) The template isn't fully finished yet but it does support those use cases. PhantomCaleb (talk) 19:15, 7 December 2022 (UTC)Reply[reply]
Update: I've finished working on Template:Wares for now. Please use that template instead of ShopItem going forward. πŸ™‚ PhantomCaleb (talk) 14:16, 27 January 2023 (UTC)Reply[reply]