aowow/template/listviews/itemStandingCol.tpl.php
Sarjuuk 08717c36d0 Templates/Listviews
* removed most templates by sensibly restructuring lvTab-data. Util::toJSON() does the rest.
 * taught Util::toJSON() to recognize values prefixed with $ as js-code
 * use Util::toJSON whenever possible
 * misc
   - mail attachments are displyed again
   - always show all currency rewards on Quest-LVs
   - suppress an error, when encountering unused ItemMods
2016-02-11 22:14:42 +01:00

54 lines
1.8 KiB
PHP

var _ = [
{
id: 'standing',
after: 'reqlevel',
name: LANG.standing,
width: '12%',
value: 'standing',
type: 'text',
getValue: function(item)
{
return g_reputation_standings[item.standing];
},
compute: function(item, td)
{
return g_reputation_standings[item.standing];
}
}
];
<?php
// 4.3 loot-example
// template: 'item',
// id: 'drops',
// name: LANG.tab_drops,
// tabs: tabsRelated,
// parent: 'lkljbjkb574',
// extraCols: [Listview.extraCols.count, Listview.extraCols.percent],
// sort:['-percent', 'name'],
// _totalCount: 448092, /* total # creature killed/looted */
// computeDataFunc: Listview.funcBox.initLootTable,
// onAfterCreate: Listview.funcBox.addModeIndicator,
// data: [
// {
// "classs":15, /* Tab Type */
// "commondrop":true, /* loot filtered as "not noteworthy" */
// "id":25445,
// "level":1,
// "name":"7Wretched Ichor",
// "slot":0,
// "source":[2], /* 1: crafted; 2:zonedrop; 3:pvp; 4:quest; 5: Vendors; 6:Trainer; 7:Discovery; 8:Redemption; 9: Talent; 10:Starter; 11: Event; 12:Achievement; */
// "sourcemore":[{"z":3520}], /* z: zone... */
// "subclass":0, /* Tab:Type */
// modes:{
// "mode":4, /* &1: heroic; &4: noteworthy(?); &8: reg10; &16: reg25; &32: hc10; &64: hc25; &128: RaidFinder */
// "4":{"count":363318,"outof":448092} /* calculate pct chance */
// },
// count:363318,
// stack:[1,1], /* [min, max] */
// pctstack:'{1: 50.0123, 2: 49.9877}' /* {dropCount: relChanceForThisStack} */
// }
// ]
// });
?>