Jump to content

  • Curse Sites
Help

Five images for each item


  • Please log in to reply
24 replies to this topic

#1 PhrozenDragon

PhrozenDragon

    World Dragon

  • Wiki Sysop
  • 10449 posts
  • Location:Sweden
  • BattleTag:Phrozen#2728
  • WikiID:PhrozenDragon

Posted 27 September 2011 - 08:49 PM

This is a little bit of a problem.

We seem to have a little problem here. Each item, whether common or legendary, will have five different item images, one for each class. How do we best display that on item pages?

We can't put them all inside the infobox, that will just make the box much wider and make it obtrusive. So then we have to decide which image to put in the infobox, and the other four will have to be displayed somewhere else on the page, maybe under a == Gallery == header.

Or can anyone come up with an altogether different, but better solution?

Diablo Wiki: Wiki Help - To-Do List - Forum

DiabloWiki.com - PlugYPlugY for Diablo II allows you to reset skills and stats, transfer items between characters in singleplayer, obtain all ladder runewords and do all Uberquests while offline. It is the only way to do all of the above. Please use it.

Supporting big shoulderpads and flashy armor since 2004.


#2 Molster

Molster

    Corrupted Chat Gem

  • Administrators
  • 6008 posts

Posted 27 September 2011 - 08:59 PM

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.

#3 Ophion

Ophion

    The Archivist

  • News Reporter
  • 7587 posts
  • Location:Sweden
  • B-Net Username:emilemil1
  • WikiID:emilemil1

Posted 27 September 2011 - 09:04 PM

Perhaps a .gif with the different images slowly rotating, and then all 5 displayed separately on the page as well (like the Appearance on the battle.net page).

Posted Image


#4 DeBeNoPrMA

DeBeNoPrMA

    Faithful

  • Members
  • 29 posts

Posted 27 September 2011 - 09:06 PM

I think you could have a tooltip class preference. And the preference defines which item you see in the tooltip.

#5 leftfoot

leftfoot

    Diablo Fan

  • Members
  • 262 posts
  • Location:Reykjavík, Iceland

Posted 27 September 2011 - 09:06 PM

What if it was like on the Battle.net page, each side by side with class tags under them in a table. You could place it under the main title in the Wiki.

Or, you could have it like it is in the Wiki now on the side but stack them vertically, for example:

Chainmail

Barbarian
*image*
WD
*image*
Wiz
*image*
DH
*image*
Monk
*image*

Statistics
etc



#6 OmniNom

OmniNom

    Cantor

  • Members
  • 676 posts
  • Location:Redmond WA

Posted 27 September 2011 - 09:10 PM

You could stack em vertically?

Dunno.

#7 CurseYouAll

CurseYouAll

    Advanced Member

  • Members
  • PipPipPip
  • 41 posts

Posted 27 September 2011 - 09:12 PM

Quote

All items are examples of what may appear in Diablo III.
They are not final. Expect more rainbows...

The smell of life surrounds me

#8 Voidaltarah

Voidaltarah

    Zakarumite

  • Members
  • 5 posts

Posted 27 September 2011 - 09:17 PM

Hey PhrozenDragon, I'm working on a suggestion in Photoshop, will be done in 5 minutes. It would basically pinch the item portrait images, "USABLE BY CLASS" and use them as a selection tool to view the correct model you are interested in.

UPDATE:
here it is.

Posted Image

Simple design, but I think it fits with what you already have and is easy to navigate.

Edited by Voidaltarah, 27 September 2011 - 09:33 PM.


#9 PhrozenDragon

PhrozenDragon

    World Dragon

  • Wiki Sysop
  • 10449 posts
  • Location:Sweden
  • BattleTag:Phrozen#2728
  • WikiID:PhrozenDragon

Posted 27 September 2011 - 09:31 PM

View PostMolster, on 27 September 2011 - 08:59 PM, said:

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.
We'd also need some kind of extra coding done to get functionality like that unforntunately, though I do like that idea.

View PostOphion, on 27 September 2011 - 09:04 PM, said:

Perhaps a .gif with the different images slowly rotating, and then all 5 displayed separately on the page as well (like the Appearance on the battle.net page).
Well I don't know about the .gif part, there's not a whole lot to rotate (talking about the inventory images here). But the appearance layout is probably the default unless we come up with something else.

View PostOmniNom, on 27 September 2011 - 09:10 PM, said:

You could stack em vertically?
Well that just makes the page really long with no actual content on the left side. Not a very pretty solution.

Diablo Wiki: Wiki Help - To-Do List - Forum

DiabloWiki.com - PlugYPlugY for Diablo II allows you to reset skills and stats, transfer items between characters in singleplayer, obtain all ladder runewords and do all Uberquests while offline. It is the only way to do all of the above. Please use it.

Supporting big shoulderpads and flashy armor since 2004.


#10 Molster

Molster

    Corrupted Chat Gem

  • Administrators
  • 6008 posts

Posted 27 September 2011 - 09:36 PM

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.

#11 Molster

Molster

    Corrupted Chat Gem

  • Administrators
  • 6008 posts

Posted 28 September 2011 - 12:05 AM

http://www.m-product...net/wiki_items/

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.

#12 Voidaltarah

Voidaltarah

    Zakarumite

  • Members
  • 5 posts

Posted 28 September 2011 - 08:41 AM

That's exactly it. Nice work!

#13 Xhion

Xhion

    Zealot

  • Members
  • 96 posts
  • B-Net Username:Xhion#2628

Posted 28 September 2011 - 08:51 AM

View PostMolster, on 28 September 2011 - 12:05 AM, said:

http://www.m-product...net/wiki_items/

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.

this is the best idea i have seen till now and it looks tidy enough!
Anticipation of Death is worse than Death Itself
Posted Image

#14 Magistrate

Magistrate

    Werehamster

  • Members
  • 13316 posts
  • Location:PA
  • BattleTag:magistrate#1778
  • B-Net Username:cisforcookie
  • WikiID:Magistrate

Posted 28 September 2011 - 08:19 PM

That is nifty! Simple, effective, small :D

#15 Wynthyst

Wynthyst

    Zealot

  • Wiki Sysop
  • 70 posts

Posted 28 September 2011 - 10:25 PM

Can we please move this discussion to the wiki?

Thanks!

#16 Wynthyst

Wynthyst

    Zealot

  • Wiki Sysop
  • 70 posts

Posted 28 September 2011 - 10:51 PM

View PostMagistrate, on 28 September 2011 - 08:19 PM, said:

That is nifty! Simple, effective, small :D

Yeah, it's all of that, but it's not workable on the wiki. Media wiki does not support click to change frames.

#17 Molster

Molster

    Corrupted Chat Gem

  • Administrators
  • 6008 posts

Posted 28 September 2011 - 11:07 PM

View PostWynthyst, on 28 September 2011 - 10:51 PM, said:

View PostMagistrate, on 28 September 2011 - 08:19 PM, said:

That is nifty! Simple, effective, small :D

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.diablowik...aWiki: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 >_>

#18 Molster

Molster

    Corrupted Chat Gem

  • Administrators
  • 6008 posts

Posted 29 September 2011 - 05:22 AM

-double posting only so it marks as new-

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

#19 PhrozenDragon

PhrozenDragon

    World Dragon

  • Wiki Sysop
  • 10449 posts
  • Location:Sweden
  • BattleTag:Phrozen#2728
  • WikiID:PhrozenDragon

Posted 02 October 2011 - 12:32 AM

Well as it turns out, we might have hit a snag in implementing this. The problem (as far as I understood it) is that images aren't stored the right way in the wiki. There are image pages that look structured, but the wiki saves the images themselves rather haphazardly.

wiki image page: http://www.diablowik...:Azurewrath.png
actual save location of the image: http://www.diablowik.../Azurewrath.png (mouse over to see difference)

Molster can probably explain it better.

Diablo Wiki: Wiki Help - To-Do List - Forum

DiabloWiki.com - PlugYPlugY for Diablo II allows you to reset skills and stats, transfer items between characters in singleplayer, obtain all ladder runewords and do all Uberquests while offline. It is the only way to do all of the above. Please use it.

Supporting big shoulderpads and flashy armor since 2004.


#20 Molster

Molster

    Corrupted Chat Gem

  • Administrators
  • 6008 posts

Posted 02 October 2011 - 01:06 AM

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

<div id="Wizard" location="images/0/03/Chain_Mail_Wizard.png" class="wiz_char"> 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.



edit: I dont have a wiki account for here yet =P




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users