Talk:ZealotFrom SC2PodDeclutterCan 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)
ChangesThe 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 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)
Hm, I just found Wikipedia:Semantic MediaWiki. This looks like it could be very useful to us. --Tiger0211 16:37, 12 September 2009 (UTC) ViewsPersonal tools |


