well we dont even have to do something crazy like that. Just simple get a way for it to say the "direct" link of where its at, and were good
Hell if worse comes to worse could always make it outbut the "img" link into the divs attribute tag, then I just grab that and strip the " from the front and the "> from the back, and bam, theres the link.
edit: Im just confused what the point of the wiki forums is then? I just dont like talking on the wiki..as I like the community on the forums o.0
exactly.. if the template could simply just give the "location" aka "images/0/03" then this would be working 100% ok. and its the only issue, I reprogrammed the full thing. http://m-productions.net/wiki2/
In this, all you add to the template would be 5 divs (aka one for each class, with their name as the ID)
and you simply add the JS to common.js and it would work like charm
The issue is,
lets say Chain_Mail_Wizard.png was saved at images/0/03
and say Chain_Mail_Monk.png was saved at images/2/f3
we would have an issue. so if we could simply have the template give the location of each file I could simply add that into the div as an attribute.
aka
for example and we would be golden, as the JS could just pull the location from the diz... thats the only snag, if we can get the wiki to output that, we are 100% go.
me and PhrozenDragon should be talking about it in msn tomorrow, ive been reading about mediawiki for the last 2 hours
[You don't know me yet, but .. I dont give up when we get a good idea so easily =P]
I think the way I already have it -should- work. (which ill be explaining better of course)
But if worse comes to worse (and I mean worse) I know after reading, that we CAN put ID's right into divs, which means, we can just make each character picture a div and have the JS check when a div is clicked !
I'll actually work on that version (just in case). [as I know for a fact that would work with mediawiki]
Yeah, it's all of that, but it's not workable on the wiki. Media wiki does not support click to change frames.
its not though, it simply changes the src of the image [no frames or something messy like that]..all you do is add it to the template, its 100% doable. at least according to the template tutorials I read. Should have no problem adding 3 lines of JS to it.
function changeClass(character) {
document.getElementById('item_pic').src='imgs/Chain_mail'+'-'+character+'.png';
}
thats all it is, the "chain_mail" string would simply become {{item_w/e_EN}}.
and simply changing the picture from the [file: to a hard img tage to add a simple ID... and even if you 100% didnt want to do that which theres no reason not to) you can simply change the JS code to altr the fist img tage inside the main table (which would be the image) it just adds another line of code)
edit or, just make the links pass to cars, and instead put the main function in http://www.diablowiki.com/MediaWiki:Common.js
can see this working for sure with some teamwork =P
aka I know exactly how it needs to be done.. I just dont fully get mediawiki templates .. they scare me >_>
the post above yours is pretty much the same idea I had...
it was be very very simple JS to make that work.
however, you could also instead of maken those class pictures, makes those the other armor pictures the same size as those (yes they would be tiny) but a user could simply click on them to see the full size.
edit: the JS could just be added to the template... could see it.
unless you guys can add a widget that lets you select your "class" when viewing the wiki. I think just the other 4 directly under the item info box, have a two by two table, and simple have the other four views of it there (much smaller, user would of course have to click on them to see) Thats what I would do. Or a bar under it that has "All class views" for an easy to see at all once side by side.
Another option I could think of would be have a small picture of each class under the item (very tiny icons) when you click it, simply shows the correct graphic for that class.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hell if worse comes to worse could always make it outbut the "img" link into the divs attribute tag, then I just grab that and strip the " from the front and the "> from the back, and bam, theres the link.
edit: Im just confused what the point of the wiki forums is then? I just dont like talking on the wiki..as I like the community on the forums o.0
http://m-productions.net/wiki2/
In this, all you add to the template would be 5 divs (aka one for each class, with their name as the ID)
and you simply add the JS to common.js and it would work like charm
The issue is,
lets say Chain_Mail_Wizard.png was saved at images/0/03
and say Chain_Mail_Monk.png was saved at images/2/f3
we would have an issue. so if we could simply have the template give the location of each file I could simply add that into the div as an attribute.
aka
edit: I dont have a wiki account for here yet =P
me and PhrozenDragon should be talking about it in msn tomorrow, ive been reading about mediawiki for the last 2 hours
[You don't know me yet, but .. I dont give up when we get a good idea so easily =P]
I think the way I already have it -should- work. (which ill be explaining better of course)
But if worse comes to worse (and I mean worse) I know after reading, that we CAN put ID's right into divs, which means, we can just make each character picture a div and have the JS check when a div is clicked !
I'll actually work on that version (just in case). [as I know for a fact that would work with mediawiki]
ps: oh wiki coding.. I dislike =P
thats all it is, the "chain_mail" string would simply become {{item_w/e_EN}}.
and simply changing the picture from the [file: to a hard img tage to add a simple ID... and even if you 100% didnt want to do that which theres no reason not to) you can simply change the JS code to altr the fist img tage inside the main table (which would be the image) it just adds another line of code)
edit or, just make the links pass to cars, and instead put the main function in
http://www.diablowiki.com/MediaWiki:Common.js
can see this working for sure with some teamwork =P
aka I know exactly how it needs to be done.. I just dont fully get mediawiki templates .. they scare me >_>
the trick will just be getting it into the wiki template.
could also add some AJAX to the JS..so it remember what the last version is you viewed, so all items will load with that graphic? anyway yeah.
it was be very very simple JS to make that work.
however, you could also instead of maken those class pictures, makes those the other armor pictures the same size as those (yes they would be tiny) but a user could simply click on them to see the full size.
edit: the JS could just be added to the template... could see it.
Another option I could think of would be have a small picture of each class under the item (very tiny icons) when you click it, simply shows the correct graphic for that class.