local cheese = require "پودمان:ازداگنجه/پردازه"
local wikidata = require "پودمان:ویکیداده"
local linguistic = require "پودمان:زبانشناسی"
return {
maincolor = '#FFFF77',
parts = {
cheese.title(),
cheese.mainimage('Article à illustrer Fromage'),
{
type = 'table',
rows = {
{
type = 'row',
label = 'کشور خاستگاه',
value = 'کشور',
property = 'P495'
},
{
type = 'row',
label = 'ناحیه',
value = 'مکان',
property = 'P1071'
},
{
type = 'row',
label = 'تولیدکننده',
value = 'تولیدکننده',
property = 'P176'
},
{
type = 'row',
label = 'شیر',
value = 'شیر',
wikidata = {
property = 'P186', -- récupère la propriété P186 (matériau)
qualifier = 'P518', -- seulement si elle a le qualificatif "s'applique à la partie"
qualifiervalue = {'Q8495'}, -- et que cette partie est le lait"
labelformat = function(id) -- enlève "lait" du libellé, un peu lourd
local label = mw.wikibase.label(id)
return linguistic.keepcomplement(label, "شیر")
end
}
},
{
type = 'row',
label = 'خمیر',
value = 'خمیر',
wikidata = {
property = 'P279',
-- condition = function(claim) -- n'accepte que les valeurs de P279 ("sous-classe" de) qui contiennent le mot "pâte"
-- local str = wikidata.formatStatement(claim)
-- if string.match(str:lower(), "خمیر") then
-- return true
-- end
-- end,
-- labelformat2 = function(label) -- enlève "fromage à pâte de l'affichage
-- return mw.ustring.gsub(linguistic.lcfirst(label), "fromage à pâte ", "")
-- end,
ucfirst = '-'
}
},
{
type = 'row',
label = 'گواهی',
value = 'گواهی',
wikidata = {property = 'P1389', showdate = true, conjtype = '<br />', textformat = 'minimum'}
-- P1389 ("certificat de produit")
},
{
type = 'row',
label = 'مبنای نام',
value = 'مبنای نام',
property = 'P138'
},
{
type = 'row',
label = 'میزان تولید',
value = 'میزان تولید',
wikidata = {property = 'P1092', showdate = true, rank = 'best', conjtype = '<br />', textformat = 'minimum'}
},
{
type = 'row',
label = 'گسترهٔ تولید',
value = 'گستره',
wikidata = {property = 'P2046', showdate = true, conjtype = '<br />', textformat = 'minimum'}
},
{
type = 'row',
label = 'تولیدکنندگان شیر',
value = 'تولیدکنندگان', -- remplissage manuel en attendant que Wikidata le gère
},
{
type = 'row',
label = 'مبدل',
value = 'مبدل', -- remplissage manuel en attendant que Wikidata le gère
},
{
type = 'row',
label = 'تصفیهکنندگان',
value = 'تصفیهکنندگان', -- remplissage manuel en attendant que Wikidata le gère
}
}
}
}
}