Template talk:Drop rate lookup table

From Guild Wars 2 Wiki
Jump to navigationJump to search

drooooooool[edit]

That is all. —Dr Ishmael User Dr ishmael Diablo the chicken.png 22:41, 4 August 2013 (UTC)

suspiciously broken after not doing anything. pity it was looking good! -Chieftain AlexUser Chieftain Alex sig.png 00:11, 5 August 2013 (UTC)
You outsmarted yourself by removing your unnamed parameter from the example. —Dr Ishmael User Dr ishmael Diablo the chicken.png 01:42, 5 August 2013 (UTC)
^
There is a surprising amount of broken html formatting in the smw graphs... e.g.
<div class="srf-jqplot-donut jqplot-common" style="width: 600px; height: 500px;">
 <div class="srf-spinner mw-small-spinner" style="display: none;"><span class="srf-processing-text">Loading...</span></div>
 <div class="container" id="jqplot-donut-1" style="width: 600px; height: 500px;">
  <div class="srf-jqplot-plot donut jqplot-target" id="jqplot-donut-1-plot" style="width: 600px; height: 500px; position: relative; background-color: transparent;">
   <canvas width="600" height="500" class="jqplot-base-canvas" style="left: 0px; top: 0px; position: absolute;"></canvas>
   <div class="jqplot-title" style="width: 0px; height: 0px;"></div>
   <canvas width="600" height="500" class="jqplot-grid-canvas" style="left: 0px; top: 0px; position: absolute;"></canvas>
   <canvas width="580" height="467" class="jqplot-series-shadowCanvas" style="left: 10px; top: 10px; position: absolute;"></canvas>
   <canvas width="580" height="467" class="jqplot-series-canvas" style="left: 10px; top: 10px; position: absolute;"></canvas>
   <table class="jqplot-table-legend" style="top: 10px; right: 10px; font-family:; font-size: 8.93px; position: absolute;" 102);margin-top:10px;margin-bottom:0px;margin-left:0px;margin-right:10px;"="" 102,="" ms",arial,helvetica,sans-serif;color:rgb(102,="" trebuchet="">
    <tbody>
     <tr class="jqplot-table-legend">
      <td class="jqplot-table-legend" style="text-align: center; padding-top: 0px;">
       <div><div class="jqplot-table-legend-swatch" style="border-color: rgb(75, 178, 197);"></div></div>
      </td>
      <td class="jqplot-table-legend" style="padding-top: 0px;"> No extra item</td>
     </tr>
     <tr> ... repeated... </tr>
    </tbody>
   </table>
   <canvas width="580" height="467" class="jqplot-donutRenderer-highlight-canvas" style="left: 10px; top: 10px; position: absolute;"></canvas>
   <span class="jqplot-donut-series jqplot-data-label" style="left: 125px; top: 352px; position: absolute;">72%</span>
   <span ...repeated... </span>
   <canvas width="580" height="467" class="jqplot-event-canvas" style="left: 10px; top: 10px; position: absolute;"></canvas>
  </div>
 </div>
</div>
In case you missed the borked line:
<table class="jqplot-table-legend" style="top: 10px; right: 10px; font-family:; font-size: 8.93px; position: absolute;" 102);margin-top:10px;margin-bottom:0px;margin-left:0px;margin-right:10px;"="" 102,="" ms",arial,helvetica,sans-serif;color:rgb(102,="" trebuchet="">
And because the graph is drawn with a script, I can't change the ugly gray border around the chart >.>
<script>if(window.mw){
mw.config.set({"jqplot-donut-1":"{\"data\":[[[\" No extra item\",72.01],[\" Transmutation Stone\",5.36],[\" Trading Post Express\",4.8],[\" Merchant Express\",3.74],[\" Black Lion Salvage Kit\",3.55],[\" Bank Access Express\",3.37],[\" Instant Repair Canister\",3.3],[\" Mystic Forge Stone\",3.24],[\" Transmutation Crystal\",0.37],[\" Black Lion Key\",0.12],[\" Revive Orb\",0.06],[\" Box of Fun\",0.06]]],\"renderer\":\"donut\",\"mode\":\"single\",\"parameters\":{\"numbersaxislabel\":\"\",\"labelaxislabel\":\"\",\"charttitle\":\"\",\"charttext\":\"\",\"theme\":\"simple\",\"ticklabels\":true,\"highlighter\":false,\"direction\":\"vertical\",\"smoothlines\":false,\"filling\":true,\"datalabels\":\"value\",\"valueformat\":\"%d%\",\"chartlegend\":\"ne\",\"colorscheme\":null,\"pointlabels\":\"value\",\"grid\":{\"borderColor\":\"#ddd\"},\"seriescolors\":null}}"});
}</script>
(extra brackets around some borderColor parameter) -Chieftain AlexUser Chieftain Alex sig.png 11:54, 5 August 2013 (UTC)
this still makes me sad. it should be
<table class="jqplot-table-legend" style="top: 10px; right: 10px; font-family:'trebuchet ms',arial,helvetica,sans-serif; font-size: 8.93px; position: absolute; margin: 10px 10px 0 0; color:rgb(102,102,102);">
where would I report semantic result format bugs anyway? -Chieftain AlexUser Chieftain Alex sig.png 18:15, 30 September 2013 (UTC)
https://bugzilla.wikimedia.org/enter_bug.cgi?component=SemanticResultFormats&form_name=enter_bug&product=MediaWiki+extensionsDr Ishmael User Dr ishmael Diablo the chicken.png 19:30, 30 September 2013 (UTC)
thanks doc -Chieftain AlexUser Chieftain Alex sig.png 20:46, 30 September 2013 (UTC)

smw matching pagenames of a similar prefix[edit]

Evening. I was just playing about by previewing this template on Giant Wintersday Gift, and I realise that if I use #ask, then it will include results from Giant Wintersday Gift/drop rate (2012) if I query for "From item::Giant Wintersday Gift" even when their property value is "Giant Wintersday Gift/drop rate (2012)" i.e.

Is there a way to only query the exact match? -Chieftain AlexUser Chieftain Alex sig.png 01:01, 6 January 2014 (UTC)

Ooh[edit]

So is this ready for implemention, since I've seen it used on Bag of Pinched Goods. Since it's drop-dead gorgeous, every bag page'd look much more pretty. That is, if it's ready for the world. --Ventriloquist (talk) 10:07, 10 April 2014 (UTC)

sure its been proven to work on quite a few articles. It does not currently work for manual total items since the table is calculating something different in those cases, but on all of the automatic tables with a sufficient amount of data, feel free. --Chieftain AlexUser Chieftain Alex sig.png 13:37, 10 April 2014 (UTC)
Users don't care about their probability of getting drops from most bags. What they care about is "if I buy X bags and open them, will I get enough Y to break even or make a profit?" and manual totals is the only way to provide that info. Therefore, every bag that does not have manual totals has useless data. Psycho Robot (talk) 15:43, 10 April 2014 (UTC)
remind me to reconfigure the template next week after wednesday + i'll make it so that it can do charts for manual totals then. -Chieftain AlexUser Chieftain Alex sig.png 16:16, 10 April 2014 (UTC)
actually no, pie charts can't be used for manual totals. It could be used if we were doing a bar chart instead, but a pie chart doesn't make any sense if your likely drop on each usage is, for example, "3 Unidentified lumps, 1 karma drop + 1 recipe". Data would likely have to be stored as the number per opened box since each value has to be with respect to the total since smw graphs don't allow you to mess with the data on the output side of the #ask. -Chieftain AlexUser Chieftain Alex sig.png 18:04, 10 April 2014 (UTC)
Isn't every bag page infused with manual totals the players themselves typed in the table? Are you two referring to the percentage or what, I'm so clueless.--Ventriloquist (talk) 18:19, 10 April 2014 (UTC)
There's two different drop rate formats: automatic totals and manual totals. Manual totals are when you put in how many bags you opened and then record the total amount of materials you got from the bags. The other version is when you record how many times you got, for instance, scraps of jute, without regard to how many scraps you got. In this case it records the probability of receiving a certain drop without any regard to how many mats you get per drop. I'm saying that this data is useless because players won't have any sort of idea how much of a particular mat they can expect to get form the bag, which is what's important for figuring out if the bag is worth opening or not. Psycho Robot (talk) 18:31, 10 April 2014 (UTC)

do it like this? (x axis title doesn't appear to accept any formatting... if you can find it and target with css, great, but I can't. (too light on my monitor). also I think it'd look better if all the text was 20% bigger. --Chieftain AlexUser Chieftain Alex sig.png 19:25, 10 April 2014 (UTC)

I like it. It gives you a good idea of what you're going to be left with when opening them. I think 90% wide is a bit much, though. It's so huge but most of the space it occupies is empty. I changed it to 50% and I think its just as readable and not so... huge. I don't know how to make the text bigger, but go for it. Psycho Robot (talk) 20:09, 10 April 2014 (UTC)

Geode link[edit]

Maybe it's just me, but why doesn't Geode have a picture and a link to the page whereas Bandit Crest does? I thought it was maybe because Geode didn't have an id on it's page but adding that didn't see to work. - Doodleplex 17:33, 24 August 2017 (UTC)

I'm a bit late, but it was because the canonical name was not set on Geode. fixed -Chieftain AlexUser Chieftain Alex sig.png 16:33, 26 November 2017 (UTC)
Better late than never! Thanks! - Doodleplex 16:49, 26 November 2017 (UTC)