Wiki Active
Search

Talk:Zealot

From SC2Pod

Jump to: navigation, search

Declutter

Can someone "declutter" this one too. I would but I just can't force myself to care enough to go through all the screenshots and declutter it all. - Ipsar 19:21, 5 September 2009 (UTC)

Done. It's not very hard, just move all but the newest six off to that other page... --Tiger0211 19:57, 5 September 2009 (UTC)

Changes

The changes section is unlike anything there is one the wiki. Should it be removed for consistency sake? And maybe there should be a link from all starcraft 2 units to their Starcraft counterparts there already a link on the starcraft units to the starcraft 2 ones? Ipsar 12:45, 8 September 2009 (UTC)

I definitely wouldn't be against removing it. Doesn't seem to serve much purpose, anyway. For linking to the SC1 versions, there's already a handy {{SC1Link}} template to use. (put it at the top of the page) I made that template a while back. I've never really been sure if that should be on all SC2 pages or if it has a use at all, but there it is, lol. That's up for debate. I think it should be put on all articles where there's a unit/building/ability/etc. from BW with the same (or very similar) name. --Tiger0211 00:40, 9 September 2009 (UTC)
Sort of related so I'll ask it here. Tiger, is there a way using Wiki code to create variables out of a unit's stats? Meaning could I read the HP of the SC1 Zealot and the SC2 Zealot and have it show the difference using a formula? If so, I could rig up some sort of "difference table" for everything. --Tomer 13:08, 9 September 2009 (UTC)
AFAIK, no you can't (easily) do that. It ought to be possible for some sort of script to find e.g. "health = 100" on the Zealot page, buut...I have no idea how to do this, or what to look for to look for this having been done before. --Tiger0211 14:58, 9 September 2009 (UTC)
Yeah it's tricky, there does exist a mediawiki plugin that does this, it's called metadata or something like that. I played around with a bit when I started the wiki but never got it to work in a good way, perhaps it's time to make another attempt :P Having all the stats accessible from other places would be really nice. --shadowie 22:10, 11 September 2009 (UTC)

I edited it at User:Tiger0211/metadata.js (still got LOTS of unused code, but hey it works) to grab the health from SC2Pod:Sandbox. :) (technically, any page in the SC2Pod namespace will work, it grabs it from the current page) (if you want to see it for yourself, add the code from here to your equiv. user page, and use Firebug with a breakpoint at line 157 to see it actually getting the number) It supports "health = x" or "health=x" (currently "health" is hardcoded, but easily changed) with x being any length (well, I haven't tested 0 length, I'll have to make sure it handles such a case well if this goes live) and sets the rating variable to x. I'm gonna take a break before I see about actually making it useful, like making something where you can say {{GetStat|Zealot|health}} and it'll grab the health attribute from the Zealot page. The only problem with this is that how it is now, since it uses JS/AJAX to get it, it'll have to use JS and load each page's source (or at least the first section - I removed the part of the URL that tells it to grab section 0, since that makes it choke when the page has no sections; should be able to put that back when it's ready for real use) every time you want to grab a stat. This would make a page listing all unit's stats quite slow. It'd be nice if we could make this script server-side, and cached between page edits. (probably as a Mediawiki extension or something) Shadowie, or anyone, do you know how to do that? --Tiger0211 16:28, 12 September 2009 (UTC)

Not me, you're way over my head once you start using JS/AJAX. However, if you get all this to work I can make a nice page to display all the changes :). --Tomer 16:55, 12 September 2009 (UTC)

Hm, I just found Wikipedia:Semantic MediaWiki. This looks like it could be very useful to us. --Tiger0211 16:37, 12 September 2009 (UTC)

Personal tools
  • This page was last modified on 12 September 2009, at 16:55.
  • This page has been accessed 475 times.