User talk:Disconnect/Archive 1
From Guild Wars 2 Wiki
Jump to navigationJump to search
I shall call you Disco ^_^. Good job on those missing icons - can't understand why the template isn't doing it automatically. If I'm reading it right, the "name" and "icon" parameters are only needed when the infobox is on a different page from the named icon (i.e. different from {{PAGENAME}}) — snograt 14:12, 13 October 2012 (UTC)
- My educated guess is that it's a file share violation. It wants to access the thumbnail twice: once for the Crafting infobox table on top, and another for the Recipe table down below, where you can see what you need to craft it. Let's call these actions access-1 and access-2. Let's assume that these two are done simultaneously. In my case, access-2 referred to a thumbnail of an icon already created before, while access-1 comes from a newly-added piece of code. Somehow, not knowing the thumbnail file already exists, access-1 will try to write to a file that access-2 is reading from at the same time. That will cause at least one of them to return an error: access-1 will report an error because it failed a write action. I'm not sure if access-1 trying to write to it will lock access-2 out, which would result in the same error. It would make sense if the cache caches it as two different object: the first as item.crafting_inbox.icon and the second as item.recipe.icon. Or something. I'm not a real expert on this. But it says a lot that temporary pointing at another icon object will fix it. Disconnect 14:54, 13 October 2012 (UTC)
- Educated guess? You're obviously far better educated than me! Here was me thinking you were a keen newbie :D — snograt 19:36, 13 October 2012 (UTC)
- Heh, I hope you're not disappointed in me now. The thing is, I'm generally short on time all year round. That's why my contributions are still meager at this point. Plus, I find it a bit hard to locate information on how tables on this wiki are built up; like for example what attributes it does or does not support. For example: some tables support 'icon = ....', while others don't. Had this exact same problem on the gw1 wiki, though. The Help Center points me at an external guide for tables, however it doesn't show how gw1/gw2 tables are built up. So I have to copy the (sometimes imperfect) tables that others already put up elsewhere on the wiki. Disconnect 11:31, 15 October 2012 (UTC)
- Educated guess? You're obviously far better educated than me! Here was me thinking you were a keen newbie :D — snograt 19:36, 13 October 2012 (UTC)
- Other topic: I strongly believe that it should be common practice to add a value for icon = , even if the value is gonna redundant and/or obvious. Not only from the point where you make an existing table template to make a new table on your page, but also on the table template itself. To illustrate what I mean with the latter: Look at the table of weapons that I made on the Sun Bead page. The Beaded items use the default set of weapon icons. But I could not add 'icon = ' to the table, for it wouldn't read that as valid code for the table template. As such, instead of re-using files already present on the wiki, I had to upload a new set with names that were an exact match in name. And that entire set is essentially a dupe. At least visually Disconnect 14:54, 13 October 2012 (UTC)
- Duplicate icons isn't an issue. It's actually much easier for DPL/SMW to generate dynamic lists when we have a 1-to-1 match between items and icons, rather than re-using a single file for multiple items. —Dr Ishmael 20:09, 13 October 2012 (UTC)
- That is very true. Pointing to the same object from multiple other objects can cause trouble if the object pointed at gets modified or deleted. You'd have to check every calling object with each modification, to see if the change doesn't break any of these objects. Object-oriented programming 101. But it was my impression that the general consensus on this wiki was to eliminate (or at least reduce) redundancy in every possible way. If I upload a file with a matching filesize/md5 hash to other files already on the wiki, I do get a warning that the file already exists. My big table on Map Completion/#World Completion got shot down for no greater reason. But that aside. To get the missing icons you can either dupe existing icons or create a new set yourself. Searching icons already uploaded on is still pretty clumsy at this point. Many are still missing. Or they have weird (file)names. Or you get a large gallery without any matches at all. That, I found out the hard way. Just to get my table to show properly I created my own set instead and uploaded these, because I was not satisfied with the existing set at all. I hadn't anticipated it would be such a time-consuming drag to get the page perfected. It meant I had to cancel some other plans though. But it was worth it, even though my wife disagrees. Disconnect 11:31, 15 October 2012 (UTC)
- Duplicate icons isn't an issue. It's actually much easier for DPL/SMW to generate dynamic lists when we have a 1-to-1 match between items and icons, rather than re-using a single file for multiple items. —Dr Ishmael 20:09, 13 October 2012 (UTC)