User talk:Rye Greenwood

From Terraria Wiki
Jump to: navigation, search

Thank you[edit source]

Thanks!
You Get A Star
Thanks for all your hard work!

Thank you for all you have done with translating the Official Terraria Wiki into the German language. I would like to invite you to the Official Terraria Wiki Discord and Official Gamepedia Slack. Discord is where we discuss all things about the Official Terraria Wikis and Slack is where Gamepedia Staff and Wiki Administrators/Editors talk and receive help with Wikis. – ReedemtheD3ad! (talk) 17:43, 16 July 2018 (UTC)

Out of curiosity...[edit source]

I just wanted to know why people keep removing this documentation change whenever it’s put onto the page. Thanks for your time, mate! 38.88.10.26 00:42, 21 November 2018 (UTC)

The template now handles desktop content. {{equivcat| all | introduce/patch | ...}} will categorize the item for desktop, console, mobile, and 3DS.
{{equivcat| console | introduce/patch | ...}} will categorize the item for console; 'mobile' for mobile, '3DS' for 3DS. There is no need to add a desktop parameter. – Ferretwings (talk)
Oh, my bad, it seems that y’all already removed the DSK param, thanks for the quick response friend! 38.88.10.26 01:08, 21 November 2018 (UTC)

Incorrect timestamp[edit source]

On my PC it says that Rye Greenwood commented on my profile at 00:00, 6 March 2019 when it is March 5 in my area. Is there a glitch when it says 6 March and in my area it is March 5. —Preceding unsigned comment added by Lepspring (talkcontribs) at 00:49, 6 March, 2019‎ (UTC)

The timestamp was in UTC. See your preferences for a comparison between UTC and your own timezone. – Ferretwings (talk) 01:24, 6 March 2019 (UTC)

Tall gate suggestion[edit source]

(I think this is the right place...) Hey Rye, did you test out my gate suggestion? —Preceding unsigned comment added by Patriotgrimm (talkcontribs) at 00:32, 7 May 2019‎ (UTC)

Yes, I did. It does seem to work. Thank you for the suggestion! --Rye Greenwood (talk) 13:02, 7 May 2019 (UTC)

Template:Iteminfo on Guide:Making money[edit source]

[continuing this here because I am not sure whether templates work correctly in profile comments and I prefer being able to preview my wikitext]

Template:Iteminfo has two different output styles: formatted and more readable data or raw data, literally like it exists in the source code. For example, {{iteminfo|Dynasty Wood|rare}} outputs the following: Rarity level: 0 – formatted and "wiki-fied". {{iteminfo|Crystal Shard|rare|raw=yes}}, on the other hand, outputs the raw source code data: 0 (the internal, numerical rarity value). For certain stats, there are aliases to make the usage slightly more intuitive; hence {{iteminfo|Dynasty Wood|rarity}}, for instance, is valid as well: Rarity level: 0. These, however, do not work when using the raw mode: {{iteminfo|Dynasty Wood|rarity|raw=yes}} results in (nothing).

As per the source code, the item statistic value represents the purchase price. Since this is rather counter-intuitive (usually, a thing's "value" refers to the amount of money received in return for that thing), the template treats "value" as input differently: Using {{iteminfo|Dynasty Wood|value}} returns the sales value: 10*10 Copper Coin.png. Note that the raw mode is not used here! The raw mode, {{coin|{{iteminfo|Dynasty Wood|value|raw=yes}}}}, outputs something different: 50*50 Copper Coin.png – the purchase price (because the raw mode is intended to accurately represent the source code).

There is no sales value statistic in the source code, which is due to the simple fact that it is always equal to 1/5 of the purchase price. Therefore, the template is bound to take the value stat from the source code and divide it by 5, if e.g. {{iteminfo|Dynasty Wood|buy}} is called. That is also the reason why there is no "original raw variable" for the sales value in the template's documentation table.

Typing all this out, I understand why it might cause confusion. The best solution would probably be to get rid of value as an alias and stick to the unambiguous sell as the only valid input for the sales value. I will go ahead and mark the alias value as deprecated.

Regarding the second point you brought up: Whenever I want to apply any calculations to any stat of an item, I need to get its raw, numerical value. That is because the parser function {{#expr:}} can only handle numerical values. For example, the HTML (which is what is interpreted by {{#expr:}}) of {{iteminfo|Dynasty Wood|sell}} (10*10 Copper Coin.png) is actually <span class="coins" data-info="10" title="10 Copper Coins"><s>10*</s>10 <img alt="Copper Coin.png" src="https://gamepedia.cursecdn.com/terraria_gamepedia/4/43/Copper_Coin.png?version=c51d2521b2f3a63b12ec63776baa3aeb" width="12" height="12"></span>, which is definitely far from a raw, numerical value and thus does not work. Therefore, I have to 1) take the raw purchase price (because it is impossible to get the raw sales value, as I described above), 2) apply the logic for turning it into the sales value (which simply consists of dividing it by 5), 3) do the initial calculation I wanted to do, and 4) wrap it all in the {{coin}} template.

  1. Take the raw purchase price: {{iteminfo|Dynasty Wood|value|raw=yes}} → 50
  2. Turn it into sales value, dividing it by 5: {{#expr:{{iteminfo|Dynasty Wood|value|raw=yes}}/5}} → 10
  3. Do my calculation (multiplying it by 999 here): {{#expr:({{iteminfo|Dynasty Wood|value|raw=yes}}/5)*999}} → 9990 (although the brackets are not mandatory, they help provide a minimum of structure to the code)
  4. Format it into a nice and standardized output: {{coin|{{#expr:({{iteminfo|Dynasty Wood|value|raw=yes}}/5)*999}}}}9990*99 Silver Coin.png 90 Copper Coin.png

If this explanation still leaves questions, please do not hesitate to ask them.

--Rye Greenwood (talk) 22:34, 8 August 2019 (UTC)

Thank you. Sometimes I forget what a hodgepodge of layers wiki software is.... :-/ I'm going to extend the rounding to a number of other things, in particular limiting the larger values to gold. Basically, when tossing around averages and likely yields as this page does, more than two or three digits of precision is basically wishful thinking. --MentalMouse42 (talk) 09:41, 9 August 2019 (UTC)

This reversion... why? Do you have something against balanced parentheses?[edit source]

Looking at this reversion ; I have no idea what else Jayflow222 might have been up to, but in this case it looks to me like he just inserted a correct open-paren to the clause. Was there some other reason to revert it? --MentalMouse42 (talk) 19:25, 11 August 2019 (UTC)

No, I must have missed the second parenthesis there. --Rye Greenwood (talk) 21:03, 11 August 2019 (UTC)
Looks like someone else took it the other way while I was checking with you. Whatever. --MentalMouse42 (talk) 23:29, 11 August 2019 (UTC)

Protected pages[edit source]

Hi, Rye! I was trying to add the fr interwiki links to a few pages here on the English wiki, and I noticed that several of them are protected. At the moment, I was planning to add links to the pages that contain NPC names (Angler/Names, etc.), but I suppose there might be other pages as well that are open on one wiki but protected on another. Seeing as I do a lot of back and forth work here, I was hoping to establish a more consistent connection between the two wikis. Could you please let me know if there is any way that I might add these links where appropriate? Thank you very much! PuzzledKino (talk) 16:18, 28 October 2019 (UTC)

Hey! Thank you for your continued commitment to adding and correcting the interwiki links, that is appreciated. Unfortunately, there is no direct way for anybody without at least Administrator user rights to edit a protected page whatsoever – including interwiki links. The usual process in this case is to request addition or modification of an interwiki link of a protected page on the respective talk page. An administrator can then perform the edit. Of course, that would be only be practical if you only wanted to add/modify one interwiki link at a time. With a longer list, that would get too tedious, so in that case it is best to hand an administrator the list and ask them to edit all of the pages in one go. If you don't want to ask any person in particular (here is the list of administrators), feel free to head to the admin noticeboard (the response might be faster there, too).
I can't think of an easier way of doing this, unfortunately – I think I remember it's what I would be doing with de interwiki links, too, when I wasn't an admin here yet.
I hope this didn't scare you off of continuing to fix and add interwiki links; I can only repeat that that work is appreciated! Interwiki links are crucial for the visibility of the language wikis, so thanks again!
--Rye Greenwood (talk) 22:02, 28 October 2019 (UTC)
Thanks for your quick reply! While it's a bit of a shame since I'd be more than happy to do it myself, I do understand the reasoning behind this decision.
I'm glad my work here is appreciated! I'll continue to help however I can. Thanks again for helping me (so quickly and kindly, too!) PuzzledKino (talk) 23:19, 28 October 2019 (UTC)