יחידה:תבנית מידע: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מ סדר קוד |
||
| שורה 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 = | args.titlestyle = templateParams['כותרת תבנית-עיצוב'] | ||
args.titleclass = | args.titleclass = templateParams['כותרת תבנית-מחלקה'] | ||
args.subtitle = | args.subtitle = templateParams['תת כותרת תבנית'] | ||
args.subtitlestyle = | args.subtitlestyle = templateParams['תת כותרת תבנית-עיצוב'] | ||
args.subtitleclass = | args.subtitleclass = templateParams['תת כותרת תבנית-מחלקה'] | ||
args.rightImage = getValueOrWikidataImage( | args.rightImage = getValueOrWikidataImage(templateParams['תמונה ימין'], templateParams['תמונה ימין-ויקינתונים'], '100x80') | ||
args.rightImageDesc = | args.rightImageDesc = templateParams['כיתוב ימין'] | ||
args.leftImage = getValueOrWikidataImage( | args.leftImage = getValueOrWikidataImage(templateParams['תמונה שמאל'], templateParams['תמונה שמאל-ויקינתונים'], '100x80') | ||
args.leftImageDesc = | args.leftImageDesc = templateParams['כיתוב שמאל'] | ||
args.imageDesc = | args.imageDesc = templateParams['כיתוב'] | ||
args.image = getValueOrWikidataImage( | args.image = getValueOrWikidataImage(templateParams['תמונה'], templateParams['תמונה-ויקינתונים'] or 'P18', templateParams['תמונה-גודל'] or '250', args.imageDesc) | ||
args.headerclass = | args.headerclass = templateParams['כותרת-מחלקה'] | ||
args.headerstyle = | args.headerstyle = templateParams['כותרת-עיצוב'] | ||
args.rowsstyle = | args.rowsstyle = templateParams['שורה-עיצוב'] | ||
args.labelstyle = | args.labelstyle = templateParams['תווית-עיצוב'] | ||
args.datastyle = | args.datastyle = templateParams['מידע-עיצוב'] | ||
args.tablestyle = | args.tablestyle = templateArgs['טבלה-עיצוב'] or templateParams['טבלה-עיצוב'] | ||
args.tableclass = | args.tableclass = templateArgs['טבלה-מחלקה'] or templateParams['טבלה-מחלקה'] | ||
local isSelfUse = (mw.title.getCurrentTitle().namespace==10) | local isSelfUse = (mw.title.getCurrentTitle().namespace==10) | ||
self.autoDocumentation = | self.autoDocumentation = templateParams['תיעוד-אוטומטי'] | ||
local labelPrefix = 'תווית' | local labelPrefix = 'תווית' | ||