Module:Infobox Item: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 513:
 
-- 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
 

Navigation menu