Template talk:Drop info
From PSU Cyril Wiki
Template test
Drop information | ||
Enemy/Mission | Level | Type |
Unknown |
OK, so what I'm trying to do is make a drop template that will add new table rows automatically as we need them but will not display them if left blank. I thought that by using the if conditional to encase the code for the next row I'd be able to make it display only if Enemy2 were filled in. I also included the negative area to close the table at this point if Enemy2 were left blank. Didn't work out at all like I thought it would. So, anyone (with more experience with these things) got any suggestions? - EspioKaos 00:20, 13 April 2008 (CDT)
- I found a page that explains how to do exactly what it seems that you're doing. link Essentially, the "|-" used to start the next table row is being confused as part of the #if. The page suggests making a template that contains just the character "|" and use that to build the table inside the #if statement. Hopefully that makes a little sense. -Propagandist 00:53, 13 April 2008 (CDT)
- Thanks for the link! I feel like I've made some progress, but visually I seem to be in the same place. XD I'll have to work more on this later. - EspioKaos 01:54, 13 April 2008 (CDT)
- I've faced exactly the same problem in the past, except where I really wanted a variable amount of rows. I really intended to include a counter in the template that would allow for more possible parameter names (such as Enemy1, Enemy2, etc.), but this did not appear to be possible. So as an alternative, I only templated the rows to be able to replicate them as easy as possible. The article is this; details here. Now my question to you is why you removed it from the article some time ago. Sure, less chaotic list of links to monsters was missing, but your edit only replicated the category equivalent and got rid of some other info, however outdated and tl;dr it might have been. >_< - Tycho 02:33, 13 April 2008 (CDT)
- Heh, outdated and messy was my reasoning. I figured since each enemy article would cover everything and more than that table, the table wasn't needed anymore. <_<; Sorry about that. But, in case you didn't know, bea saved the article on his user page so you don't have to access it from page history. If wanted, I'm sure we could always revive the article similar to what was done with the mission chart to clean things up and bring the data up to date. - EspioKaos 10:59, 13 April 2008 (CDT)
- If you just want to be able to add Enemy1, Enemy2... through to Enemy10 or so, then have a look at the character profile template, which Tych and myself spent ages working out back in 2k6 so it could do that. You'll probably understand why though - it's enormous. With only enemy, level and type to enter though, I can't imagine it'd be quite so intimidating. - Miraglyth 09:20, 13 April 2008 (CDT)
- I actually remembered that page and have been trying to adapt it. I might just do a full-on copy+paste of code to see if it'll work.
--Kit 09:23, 13 April 2008 (CDT) - Seems after some stumbling over eachother, we got it! XD
--Kit 09:35, 13 April 2008 (CDT) - Haha, sorry about that. Seems we both came to the same result too. - Miraglyth 09:36, 13 April 2008 (CDT)
- I actually remembered that page and have been trying to adapt it. I might just do a full-on copy+paste of code to see if it'll work.
- There, even have a default for the unreleased items that we've zero drop information about! Nothing like a clusterfuck of edits to create productivity! XD
--Kit 09:51, 13 April 2008 (CDT)- Ah, nice one. I was thinking about that case when typing up the section below: - Miraglyth 09:56, 13 April 2008 (CDT)
- Nice work, guys! I appreciate it! :D - EspioKaos 10:59, 13 April 2008 (CDT)
- Haha, hey now. We all know you pretty much run this place :P But we're putting the work in to improve it as well, not for your appreciation :P - Miraglyth 13:31, 13 April 2008 (CDT)
- Glad you got it. To further the argument a bit, I realize the table was shitty, horribly bloated and by now probably outdated, but arguably its possible uses would come down to comparing stuff between monsters like stats or SEs. We'd probably need a more up-to-date version with current stats (hi CE-users) and AoI additions (second bible?), but, uh, yeah. A next version would probably need removal of offline data, no-wrap and smaller text/cells to be of more use. Oh, and perhaps have all the excessive text go into wiki references or whatever. Heck, I suppose most of the stats and SE stuff were pretty much categorizable into monster types in the first place, so I guess it doesn't really matter much. :/ - Tycho 22:15, 13 April 2008 (CDT)
Post-template table unification
- Alright, with that out the way there's a few issues that I don't believe have been brought up yet:
- Capitalising the start of the template tags - Yay or nay? Personally I would've thought that it'd be simpler to leave it all lower case. I also believe existing templates (see: striking weapon stats) keep lower case too.
- Use of "Enemy" - might it be an idea to change it to something more neutral like "source"? Otherwise you're using an "Enemy" tag for missions as well, which isn't really an issue but it's funny.
- When the drop is from a mission, is it always assumed to be from a boss box?
- All of the above in this section thusfar: Miraglyth 09:56, 13 April 2008 (CDT)
- I was considering what you mentioned concerning the use of Enemy when I started on this. Using Source would be fine with me and make more sense when identifying missions and areas as drops. And on the boss box thing, as far as I know, when a mission is listed, it's always considered a boss box drop. - EspioKaos 10:59, 13 April 2008 (CDT)
- Surely Psycho Wand, Agito and the original Creas were not from boss boxes but from any monster in the relevant area? - Tycho 21:55, 13 April 2008 (CDT)