Module:Infobox Item: Difference between revisions

Jump to navigation Jump to search
741 bytes removed ,  07:46, 1 April 2022
no edit summary
No edit summary
No edit summary
Line 19: Line 19:
{ name = 'aka', func = 'has_content' },
{ name = 'aka', func = 'has_content' },
{ name = 'image', func = 'image' },
{ name = 'image', func = 'image' },
--{ name = 'image_smw', func = { name = image_smw, params = { 'image' }, flag = 'p' } },
{ name = 'release', func = 'release' },
{ name = 'removal', func = 'removal' },
{ name = 'members', func = 'has_content' },
{ name = 'quest', func = 'has_content' },
{ name = 'tradeable', func = 'has_content' },
{ name = 'equipable', func = 'has_content' },
{ name = 'usable', func = 'has_content' },
{ name = 'buyvalue', func = 'has_content' },
{ name = 'sellvalue', func = 'has_content' },
-- css class name to hide rows on undefined versions
{ name = 'market_sell_limit', func = 'has_content'},
{ name = 'market_buy_limit', func = 'has_content' },
        --{ name = 'usesinfobox', func = { name = tostring, params = { 'Item' }, flag = 'r' } },
{ name = 'id', func = 'has_content' },
}
}


Line 53: Line 31:
ret:defineLinks({ hide = true })
ret:defineLinks({ hide = true })


ret:useSMWOne({
-- ret:useSMWOne({
members = 'All Is members only',
-- members = 'All Is members only',
id_smw = 'All Item ID',
-- id_smw = 'All Item ID',
image_smw = 'All Image',
-- image_smw = 'All Image',
})
-- })


ret:useSMWSubobject({
-- ret:useSMWSubobject({
version = 'Version anchor',
-- version = 'Version anchor',
release = 'Release date',
-- release = 'Release date',
id_smw = 'Item ID',
-- id_smw = 'Item ID',
description = 'Description',
-- description = 'Description',
members = 'Is members only',
-- members = 'Is members only',
buyvalue = 'Buyable for',
-- buyvalue = 'Buyable for',
sellvalue = 'Sellable for',
-- sellvalue = 'Sellable for',
image_smw = 'Image',
-- image_smw = 'Image',
market_buy_limit = 'Buy limits',
-- market_buy_limit = 'Buy limits',
market_sell_limit = 'Sell limits',
-- market_sell_limit = 'Sell limits',
usesinfobox = 'Uses infobox',
-- usesinfobox = 'Uses infobox',
})
-- })


ret:addButtonsCaption()
ret:addButtonsCaption()


ret:defineName('Infobox Item')
ret:defineName('Infobox Item')
Line 105: Line 83:
end
end


ret:finish()
end
end


return p
return p

Navigation menu