בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,358
רעדאגירונגען
(פראבע) |
(אפדעיט) |
||
| שורה 442: | שורה 442: | ||
wikidataOptions['seperator'] = templateParams[missingParam..'-ויקינתונים-מרובה-הפרדה'] | wikidataOptions['seperator'] = templateParams[missingParam..'-ויקינתונים-מרובה-הפרדה'] | ||
wikidataOptions['sort'] = { templateParams[missingParam..'-ויקינתונים-מרובה-מיון'] } or nil | wikidataOptions['sort'] = { templateParams[missingParam..'-ויקינתונים-מרובה-מיון'] } or nil | ||
if templateParams[missingParam..'-ויקינתונים-מרובה-מיון-יורד'] then | |||
wikidataOptions['sort-order'] = 'desc' | |||
end | |||
paramsData = {} | paramsData = {} | ||
-- split multiple params to include all of them (e.g: "P1,P2") | -- split multiple params to include all of them (e.g: "P1,P2") | ||
| שורה 470: | שורה 473: | ||
local wikidataParamValue = propertyLink.getLabel(templateParams[missingParam..'-ויקינתונים-פשוט'], entityId) | local wikidataParamValue = propertyLink.getLabel(templateParams[missingParam..'-ויקינתונים-פשוט'], entityId) | ||
if wikidataParamValue and #wikidataParamValue>0 then | if wikidataParamValue and #wikidataParamValue>0 then | ||
templateArg.data = frame:preprocess(mw.ustring.gsub(templateArg.data, ' | templateArg.data = frame:preprocess(mw.ustring.gsub(templateArg.data, '{{{('..missingParam..')}}}', wikidataParamValue)) | ||
inWikidata = true | inWikidata = true | ||
end | end | ||
| שורה 585: | שורה 588: | ||
args.titlestyle = templateParams['כותרת תבנית-עיצוב'] | args.titlestyle = templateParams['כותרת תבנית-עיצוב'] | ||
args.titleclass = templateParams['כותרת תבנית-מחלקה'] | args.titleclass = templateParams['כותרת תבנית-מחלקה'] | ||
args.subtitle = templateParams['תת כותרת תבנית'] | args.subtitle = templateParams['תת-כותרת תבנית'] | ||
args.subtitlestyle = templateParams['תת כותרת תבנית-עיצוב'] | args.subtitlestyle = templateParams['תת-כותרת תבנית-עיצוב'] | ||
args.subtitleclass = templateParams['תת כותרת תבנית-מחלקה'] | args.subtitleclass = templateParams['תת-כותרת תבנית-מחלקה'] | ||
args.rightImageDesc = templateParams['כיתוב ימין'] | args.rightImageDesc = templateParams['כיתוב ימין'] | ||
| שורה 593: | שורה 596: | ||
valueArg=templateParams['תמונה ימין'], | valueArg=templateParams['תמונה ימין'], | ||
wikidataArg=templateParams['תמונה ימין-ויקינתונים'], | wikidataArg=templateParams['תמונה ימין-ויקינתונים'], | ||
width='100x80', | width=templateParams['תמונה ימין-גודל'] or '100x80', | ||
imgDesc=args.rightImageDesc, | imgDesc=args.rightImageDesc, | ||
args=args | args=args | ||
| שורה 602: | שורה 605: | ||
valueArg=templateParams['תמונה שמאל'], | valueArg=templateParams['תמונה שמאל'], | ||
wikidataArg=templateParams['תמונה שמאל-ויקינתונים'], | wikidataArg=templateParams['תמונה שמאל-ויקינתונים'], | ||
width='100x80', | width=templateParams['תמונה שמאל-גודל'] or '100x80', | ||
imgDesc=args.leftImageDesc, | imgDesc=args.leftImageDesc, | ||
args=args | args=args | ||
| שורה 776: | שורה 779: | ||
else | else | ||
-- otherwise if the template isn't full or if there is a Wikidata-beats tag - them try to use wikidata to fill it | -- otherwise if the template isn't full or if there is a Wikidata-beats tag - them try to use wikidata to fill it | ||
local m = mw.ustring.match(v.data, ' | local m = mw.ustring.match(v.data, '{{{(.-)}}}') | ||
if v.label and templateParams[v.label..'-ויקינתונים-גובר'] then | if v.label and templateParams[v.label..'-ויקינתונים-גובר'] then | ||
m = templateParams[v.label..'-ויקינתונים-גובר'] | m = templateParams[v.label..'-ויקינתונים-גובר'] | ||
| שורה 821: | שורה 824: | ||
-- use wikidata in title | -- use wikidata in title | ||
if args.title then | if args.title then | ||
local m = mw.ustring.match(args.title, ' | local m = mw.ustring.match(args.title, '{{{(.-)|(?)}}}') | ||
if m then | if m then | ||
local inWikidata = false | local inWikidata = false | ||
| שורה 833: | שורה 836: | ||
local wikidataParamValue = propertyLink.getLabel(templateParams[m..'-ויקינתונים-פשוט']) | local wikidataParamValue = propertyLink.getLabel(templateParams[m..'-ויקינתונים-פשוט']) | ||
if wikidataParamValue then | if wikidataParamValue then | ||
args.title = frame:preprocess(mw.ustring.gsub(args.title, ' | args.title = frame:preprocess(mw.ustring.gsub(args.title, '{{{('..m..')|?}}}', wikidataParamValue)) | ||
end | end | ||
end | end | ||
רעדאגירונגען