יחידה:תבנית מידע: הבדלים בין גרסאות בדף

מאין תקציר עריכה
מ סדר קוד
שורה 490: שורה 490:
args.title = frame.args['כותרת תבנית'] or standardTitle(templateArgs, args.subtemplate, args.entityId)
args.title = frame.args['כותרת תבנית'] or standardTitle(templateArgs, args.subtemplate, args.entityId)
if args.title=='-' then args.subtemplate = true end
if args.title=='-' then args.subtemplate = true end
args.titlestyle = frame.args['כותרת תבנית-עיצוב']
args.titlestyle = templateParams['כותרת תבנית-עיצוב']
args.titleclass = frame.args['כותרת תבנית-מחלקה']
args.titleclass = templateParams['כותרת תבנית-מחלקה']
args.subtitle = frame.args['תת כותרת תבנית']
args.subtitle = templateParams['תת כותרת תבנית']
args.subtitlestyle = frame.args['תת כותרת תבנית-עיצוב']
args.subtitlestyle = templateParams['תת כותרת תבנית-עיצוב']
args.subtitleclass = frame.args['תת כותרת תבנית-מחלקה']
args.subtitleclass = templateParams['תת כותרת תבנית-מחלקה']
args.rightImage = getValueOrWikidataImage(frame.args['תמונה ימין'], frame.args['תמונה ימין-ויקינתונים'], '100x80')
args.rightImage = getValueOrWikidataImage(templateParams['תמונה ימין'], templateParams['תמונה ימין-ויקינתונים'], '100x80')
args.rightImageDesc = frame.args['כיתוב ימין']
args.rightImageDesc = templateParams['כיתוב ימין']
args.leftImage = getValueOrWikidataImage(frame.args['תמונה שמאל'], frame.args['תמונה שמאל-ויקינתונים'], '100x80')
args.leftImage = getValueOrWikidataImage(templateParams['תמונה שמאל'], templateParams['תמונה שמאל-ויקינתונים'], '100x80')
args.leftImageDesc = frame.args['כיתוב שמאל']
args.leftImageDesc = templateParams['כיתוב שמאל']
args.imageDesc = frame.args['כיתוב']
args.imageDesc = templateParams['כיתוב']
args.image = getValueOrWikidataImage(frame.args['תמונה'], frame.args['תמונה-ויקינתונים'] or 'P18', frame.args['תמונה-גודל'] or '250', args.imageDesc)
args.image = getValueOrWikidataImage(templateParams['תמונה'], templateParams['תמונה-ויקינתונים'] or 'P18', templateParams['תמונה-גודל'] or '250', args.imageDesc)
args.headerclass = frame.args['כותרת-מחלקה']
args.headerclass = templateParams['כותרת-מחלקה']
args.headerstyle = frame.args['כותרת-עיצוב']
args.headerstyle = templateParams['כותרת-עיצוב']
     args.rowsstyle = frame.args['שורה-עיצוב']
     args.rowsstyle = templateParams['שורה-עיצוב']
     args.labelstyle = frame.args['תווית-עיצוב']
     args.labelstyle = templateParams['תווית-עיצוב']
     args.datastyle = frame.args['מידע-עיצוב']
     args.datastyle = templateParams['מידע-עיצוב']
args.tablestyle = templateParams['טבלה-עיצוב'] or frame.args['טבלה-עיצוב']
args.tablestyle = templateArgs['טבלה-עיצוב'] or templateParams['טבלה-עיצוב']
args.tableclass = frame.args['טבלה-מחלקה']
args.tableclass = templateArgs['טבלה-מחלקה'] or templateParams['טבלה-מחלקה']
local isSelfUse = (mw.title.getCurrentTitle().namespace==10)
local isSelfUse = (mw.title.getCurrentTitle().namespace==10)
self.autoDocumentation = frame.args['תיעוד-אוטומטי']
self.autoDocumentation = templateParams['תיעוד-אוטומטי']


local labelPrefix = 'תווית'
local labelPrefix = 'תווית'