Page 1 of 2
Armor Set Layout Proposal
Posted: Fri Mar 31, 2017 3:15 pm
by Bklopptah
Hi,
i really liked the old google spreadsheet to compare all available sets and i think the wiki would benefit from a more clearer way at looking at the stats and costs.
I would like to propose using tables and raw numbers, to show available ingame sets. The 2nd screenshot shows a tooltip. I used and modified the wiki extension "SimpleTooltip".
I am pretty sure why you (Wikigob, Razielhell) didn't do it already - for the same reason that there is no updated spreadsheet - its tedious, hard work with a lot of room for errors. On top of that is table design with the wiki markup language a pain the ass.
I created a
google spreadsheet, which creates those wiki tables and anyone can use. My Idea is that we contribute those tables and the work becomes much less painful.
Cheers
Re: Armor Set Layout Proposal
Posted: Fri Mar 31, 2017 4:10 pm
by Razielhell
Personally i like the idea and i had in mind something like that(Compare pieces with other classes but in a diferrent way).
This might work. Its up to Ghatis though.
Re: Armor Set Layout Proposal
Posted: Fri Mar 31, 2017 6:00 pm
by Ceithin
I really like your idea !!
but as you said, its a lot of work
for the moment, we are taking screenshots for every equipments and after this, i will rework the structure of the page
i will try it now to see how we can use it for the best
Thanks

Re: Armor Set Layout Proposal
Posted: Fri Mar 31, 2017 6:02 pm
by wargrimnir
It's probably a better idea to move forward with a spreadsheet format. Easier to update if sets change in the future.
Re: Armor Set Layout Proposal
Posted: Fri Mar 31, 2017 6:14 pm
by Ceithin
you are right too,
im very busy this times, a lot of homeworks and my graduation will arrive soon, i try to do the most i can and it explain the fact i dont do many things on the wiki
2 weeks of holidays now, i will to sleep more than 5 hours a night ^^
i will ask to Dash to implement the addon "Simpletooltip"
Re: Armor Set Layout Proposal
Posted: Fri Mar 31, 2017 8:15 pm
by Bklopptah
Ceithin wrote:for the moment, we are taking screenshots for every equipments and after this, i will rework the structure of the page
That's fine, let us know if we can help.
Ceithin wrote:i will ask to Dash to implement the addon "Simpletooltip"
Before you do that, you should know that:
1. the extension was last updated 2011, i dont think its actively maintained anymore (works fine at a first glance though)
2. I made some changes, to display images in the tooltip - just quick and dirty, since it was just a proposal
If you're interested in using SimpleTooltip, i am happy to contribute the changes in a proper way. Just poke me.
Cheers
Re: Armor Set Layout Proposal
Posted: Fri Mar 31, 2017 9:34 pm
by Ceithin
Dash installed it, if you have some tips on how to use it correctly, im listening !

Re: Armor Set Layout Proposal
Posted: Fri Mar 31, 2017 10:00 pm
by Bklopptah
Hey,
2 changes are necessary:
#1 file: extensions/SimpleTooltip/modules/SimpleTooltipParserFunction.php
Line 104-106 has to be replaced with:
Code: Select all
$html = '<span class="simple-tooltip simple-tooltip-inline"';
$html .= ' data-ror-tooltip="' . htmlspecialchars($imgUrl) . '"';
$html .= '>' . htmlspecialchars($title) . '</span>';
#2 file: extensions/SimpleTooltip/lib/SimpleTooltip.js
Line 52-54 has to be replaced with:
Code: Select all
var imgUrl = $(this).attr('data-ror-tooltip');
if (typeof imgUrl !== typeof undefined && imgUrl !== false) {
options.content = $('<img src="' + imgUrl + '" />');
$(this).tooltipster(options);
} else {
var text = $(this).attr('data-simple-tooltip');
options.content = $('<span>' + text + '</span>');
$(this).tooltipster(options);
}
After that you can use:
Code: Select all
{{#tip-img: /path/to/image.ext | a text of your choice}}
Cheers
Re: Armor Set Layout Proposal
Posted: Fri Mar 31, 2017 10:20 pm
by Ceithin
i love when everything i do works

!!!!
thank you for sharing the code and the modification !!!
Re: Armor Set Layout Proposal
Posted: Sat Apr 01, 2017 5:45 am
by Dresden
.