Module:EncounterTable: Difference between revisions

Jump to navigation Jump to search
change data namespace to Population
mNo edit summary
(change data namespace to Population)
 
(3 intermediate revisions by 2 users not shown)
Line 69: Line 69:
             end
             end


             finalTable[i].item = 'Item from [[Data:' .. linkstr  .. '|' .. row.table .. ']]'
             finalTable[i].item = 'Item from [[Population:' .. linkstr  .. '|' .. row.table .. ']]'
         else
         else
             error'A table and item cannot be specified at the same time!'
             error'A table and item cannot be specified at the same time!'
Line 101: Line 101:
     local TABLE_HEADER = bHideQuantity and  
     local TABLE_HEADER = bHideQuantity and  
'<tr><th>Item</th><th>Weight</th><th>Chance</th></tr>' or  
'<tr><th>Item</th><th>Weight</th><th>Chance</th></tr>' or  
'<tr><th>Item</th><th>Quantity</th><th>Chance</th></tr>'
'<tr><th>Item</th><th>Quantity</th><th>Weight</th><th>Chance</th></tr>'
     local tableRows = ''
     local tableRows = ''
     local headerhtml = ''
     local headerhtml = ''

Navigation menu