2022.2

Table Of Contents
scriptorofanotherqueryinthetemplate(see"query()"onpage742).
width(): Number
Returnstheouterwidthofthiselement,includingpaddingandborders,excludingmargins.Toinclude
margins,callwidth(true).
Thereturnedvalueisthewidthinpixels,withoutmeasurementunit(e.g.400).
width(value): void
Setstheouterwidthofthiselement,includingpaddingandborders,excludingmargins.Toincludemar-
gins,callwidth(value, true).
value
Number.Givethewidthinpixels,butwithoutthemeasurementunit(e.g.400,not400px).
Examples
Thisscriptadds20pixelstothewidthandheightofanelement.
var h = results.height();
var w = results.width();
h = h + 20;
w = w + 20;
results.height( h );
results.width( w );
Thefollowingscriptdoesthesame,butinthiscase,marginsareincluded.
var h = results.height(true);
var w = results.width(true);
h = h + 20;
w = w + 20;
results.height( h, true);
results.width( w, true);
translate()
Whenatemplatehasbeenpreparedtousethetranslationfeature(see"Translatingtemplates"on
page415),thisfeatureisalsoaccessibleviaatemplatescript.
Thetranslate()functiongetsthetranslationforamessage,providedthatatranslationentrycanbe
foundforit(withthesamecontext,ifgiven).
Ifthetexttobetranslateddoesnotalreadyexistinthetemplate,youcancreateatranslationentryforit
byusingtheAdd Empty Stringbuttononthe"Translationspane"onpage530.
Page 813