יחידה:תבנית מידע: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 268: | שורה 268: | ||
end | end | ||
-- use wikidata in title | -- use wikidata in title | ||
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 | ||
| שורה 280: | שורה 280: | ||
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(v.data, '\{\{\{('..m..')\}\}\}', wikidataParamValue)) | args.title = frame:preprocess(mw.ustring.gsub(v.data, '\{\{\{('..m..')\|?\}\}\}', wikidataParamValue)) | ||
end | end | ||
end | end | ||