Bureaucrats, editor, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
47,327
edits
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
|