وحدة:بطاقة/قالب/لعبة فيديو
المظهر
هذه الصفحة شرح لوحدة من وحدات البطاقات المبنية اعتمادا على وحدة:بطاقة. وتستعمل في {{بطاقة لعبة فيديو}}.
local generic = require( 'وحدة:بطاقة/أدوات' )
local function getRating(item)
local contentRatings = {
ESRB='P852', PEGI='P908', USK='P914',
CERO='P853', OFLC='P3156', ClassInd='P3216',
GSRR='P916', BBFC='P2629'}
local data = {}
local res
local WikidataCa = require("وحدة:Wikidata.Ca")
for org,prop in pairs(contentRatings) do
res = WikidataCa.claim{
item = item.id , formatting='table', list=false ,
property= prop , qualifier= prop ..'/P18' ,
qualifier2='/' .. prop , colforfmat2='raw' ,
rowformat='<div style="text-align:center;float:right;padding:0 5px 5px 5px">[['..org..']]<br/>[[ملف:$1|65x65px|link=]]</div>'
}
table.insert(data,res)
end
if #data>0 then return '<div style="display:flex">'..table.concat(data,'')..'</div>',#data end
return nil
end
return {
maincolor = '#F0B020',
wikimod = 'Wikidata.Ca',
parts = {
generic.title({icon='jeuvideo'}),
{type='subtitle', value={'عنوان أصلي'},
wikidata= {
property = 'P1476',list = 2,conjunction = "<br />",
formatting = '$text {{Language icon|NoCat=y|$language}}'
}
},
generic.logo(),
{type = 'images',
imageparameters = {'لقطة شاشة','screenshot','لقطة','غلاف','صورة','image'},
captionparameter ={'caption','تعليق','عنوان الغلاف'},
defaultcaption='لقطة شاشة',
wikidata = {property = 'P18'},
},
{type='table', title = 'معلومات عامة',rows = {
{type = 'row', label = 'اللغة',
value = {'اللغة'},
wikidata = {property = 'P364'}
},
{type = 'row', label = 'التوزيع',
value = {'التوزيع'}
},
{type = 'row', label = 'النمط',
value = {'mode','نمط','modes','نمط اللعبة'},
wikidata = {property = 'P404'}
},
{type = 'row', label = 'نوع صندوق الألعاب',
value = {'cabinet','نوع الصندوق'}
},
generic.website(),
{type = 'navbox', inner=true,
previousparameter = "سبقه", previousproperty = "P155",
nextparameter = "تبعه", nextproperty = "P156"
},
}},
{type='table', title = 'التطوير',rows = {
{type = 'row', label = '[[مطور ألعاب فيديو|المطور]]',
value = {'developer','مطور'},
wikidata = {property = 'P178'}
},
{type = 'row', label = '[[ناشر لعبة فيديو|الناشر]]',
value = {'publisher','ناشر'},
wikidata = {property = 'P123'}
},
{type = 'row', label = '[[تصميم لعبة فيديو|المصمم]]',
value = {'designer','مصمم'},
wikidata = {property = 'P287'}
},
{type = 'row', label = '[[مدير إبداعي|المخرج]]',
value = {'director','مخرج'},
wikidata = {property = 'P57'}
},
{type = 'row', label = '[[مبرمج ألعاب|المبرمج]]',
value = {'programmer','مبرمج'},
wikidata = {property = 'P943'}
},
{type = 'row', label = 'الموزع',
value = {'distributor','موزع'},
wikidata = {property = 'P750'}
},
{type = 'row', label = 'الكاتب',
value = {'writer','كاتب'},
wikidata = {property = 'P50'},
},
{type = 'row', label = '[[منتج ألعاب فيديو|المنتج]]',
value = {'producer','منتج'},
wikidata = {property = 'P162'}
},
{type = 'row', label = '[[فنان ألعاب|الفنان]]',
value = {'artist','فنان'},
wikidata = {property = 'P3080'}
},
{type = 'row', label = 'ألبوم الموسيقى التصويرية',
value = {'ألبوم الموسيقى التصويرية'},
wikidata = {property = 'P406'}
},
{type = 'row', label = '[[موسيقى لعبة فيديو|الموسيقى]]',
value = {'composer','مؤلف الموسيقى'},
wikidata = {property = 'P86'}
},
{type = 'row', label = '[[ترخيص برمجيات|الرخصة]]',
value = {'رخصة','الرخصة'},
wikidata = {property = 'P275'}
},
{type = 'row', label = 'سلسلة اللعبة',
value = {'series','سلسلة'},
wikidata = {property = 'P179'}
},
{type = 'row', label = 'النسخة الحالية',
value = {'نسخة'}
},
{type = 'row', label = '[[منصة (حوسبة)|النظام]]',
value = {'platform','نظام','platforms','أنظمة'},
wikidata = {property = 'P400', conjtype='*'}
},
{type = 'row', label = 'تاریخ الإصدار' ,
value = {'إصدر','released','الإصدار','release'},
wikidata={formatting='table'
,property='P571 OR P577' , qualifier='P291' , qualifier2='P400'
,rowformat = "$2 $0 $1 $R0" , rowsubformat1= "($1)" , rowsubformat2 = "'''$2:'''"
,tablesort=0 , list='bestrank'
}
},
{type = 'row', label = '[[دورة حياة إصدار البرمجيات|أحدث إصدار]]',
value = {'أحدث نسخة إصدار'}
},
{type = 'row', label = '[[دورة حياة إصدار البرمجيات|إصدار العرض المسبق]]',
value = {'أحدث نسخة عرض مسبق'}
},
{type = 'row', label = '[[قائمة أنواع ألعاب الفيديو|نوع اللعبة]]',
value = {'genre','نوع'},
wikidata = {property = 'P136'}
},
{type = 'row', label = 'متطلبات النظام',
value = {'متطلبات'}
},
{type = 'row', label = '[[واسطة رقمية|الوسائط]]',
value = {'media','وسائط'},
wikidata={formatting='table'
,property='P437' , qualifier='P400'
,rowformat = "* $0 $1 $R0" , rowsubformat1= "($1)"
,tablesort=0 , list='bestrank'
}
}
}},
{type='table', title = 'معلومات تقنية',rows = {
{type = 'row', label = '[[محرك لعبة|محرك اللعبة]]',
value = {'engine','محرك'},
wikidata = {formatting='table'
,property = 'P408', qualifier='P348' , qualifier2='P400'
,rowformat = "* $2 $0 $1 $R0"
,tablesort=0 , list='bestrank'}
},
{type = 'row', label = '[[نسبة باعية|النّسبة الباعيّة]]',
value = {'شكل الصورة','نسبة باعية'}
},
{type = 'row', label = '[[دقة شاشة|الدقة]]',
value = {'دقة تفاصيل الصورة'}
},
{type = 'row', label = 'نظام [[حجرة آركيد|صندوق الألعاب]]',
value = {'arcade system','نظام صندوق الألعاب'}
},
{type = 'row', label = '[[وحدة المعالجة المركزية|و.م.م.]]',
value = {'cpu','معالج'}
},
{type = 'row', label = 'نظام الصوت',
value = {'sound','صوت'}
},
{type = 'row', label = 'نظام الشاشة',
value = {'display','شاشة'}
},
{type = 'row', label = '[[مدخلات (حوسبة)|مدخلات]]',
value = {'input','مدخلات'},
wikidata = {property = 'P479'}
}
}},
{type='table', title = '[[نظام تقييم محتوى لعبة فيديو|التقييم]]',rows = {
{type = 'row1col',
value = {'تقييم'},
wikidata=getRating },
}}
}
}