Module:Infobox Item: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 284:
local anydmm = ret:paramGrep('gemw', 'dmm')
if anygemw == true then
local frame = mw.getCurrentFrame()
local citeText = frame:expandTemplate{
title = 'CiteText',
args = {
text = 'Last average price',
quote = 'This price is a weighted average based on actual purchases on the in-game auction, however the wiki\'s prices only get updated from in-game changes every few days.'
}
}
ret:addRow{
-- { tag = 'th', content = 'Grand Exchange', class = 'infobox-subheader', colspan = '20' }
Line 291 ⟶ 300:
:addRow{
-- { tag = 'th', content = '[[RuneScape:Grand Exchange Market Watch|Exchange]]', colspan = '7' },
{ tag = 'th', content = 'Last price average' .. citeText, colspan = '7' },
{ tag = 'argd', content = 'exchange', colspan = '13' }
}
Line 513 ⟶ 522:
 
-- return string.format('<span class="infobox-quantity" data-val-each="%s"><span class="infobox-quantity-replace">%s</span> coin%s ([[Exchange:%s|info]])</span>', gemwprice, commas(gemwprice), gemwprice > 1 and 's' or '', gemwname)
-- return string.format('<span class="infobox-quantity" data-val-each="%s"><span class="infobox-quantity-replace">%s</span> coin%s ([[CiteText|text=info|quote=This is a test.]])</span>', gemwprice, commas(gemwprice), gemwprice > 1 and 's' or '', gemwname)
local frame = mw.getCurrentFrame()
local citeText = frame:expandTemplate{ title = 'CiteText', args = { text = 'info', quote = 'This is a test.' } }
return string.format(
'<span class="infobox-quantity" data-val-each="%s"><span class="infobox-quantity-replace">%s</span> coin%s (%s)</span>',
gemwprice, commas(gemwprice), gemwprice > 1 and 's' or '', citeText
)
end