Webtags/Parameters (preserving history): Difference between revisions

m
→‎Use of spaces: Rewrite of last paragraph
m (→‎Including literals in format parameters: update reference to previous mention)
m (→‎Use of spaces: Rewrite of last paragraph)
If we need to include spaces, then we have to enclose the whole specifier in double quotation marks e.g. <code><#tag_name format="x y z"></code>
 
Any literals (i.e. characters we do not want to be interpreted by the date time parameter parser) are generally enclosed in single quotation marks, within the double quotation marks delimiting the specifier. You will find literals discussed fully at [[#Including literals in format parameters]] later.
 
ThisFor now just remember, the use of literals can cause you a problem if you want to use a date/time specification in a script because the script wants literal delimiters roundoutside the entireany web tagtags, so that delimiters remain when the web tag itself has been processed into a string by Cumulus. The complicated sounding (but actually simple solution) is to avoid placing literals within any output format specifier, but instead put thesingle literalsquotes outsideround withthe separatewhole webcontent. tagsWhat beforeyou andthought afterof eachputting literal.as Thenliterals youwithin canany useweb singletag quotesis instead typed outside. with Thisseparate isweb employedtags infor somethe part of the scriptsspecification atbefore and after each literal.
 
===Which tag names take date/time output formatting modifiers===
5,838

edits