Webtags (preserving history): Difference between revisions

m
→‎Examples: Correction
m (→‎Examples: Made a bit clearer)
m (→‎Examples: Correction)
Line 181: Line 181:
*#Similarly, ''<#MonthTempHD format="%M">'' is NOT a single character format modifier and therefore the 'M' acts as a custom modifier and causes the same date for the highest temperature in the month to be returned as the month number '7'.
*#Similarly, ''<#MonthTempHD format="%M">'' is NOT a single character format modifier and therefore the 'M' acts as a custom modifier and causes the same date for the highest temperature in the month to be returned as the month number '7'.


The other change with the "format" parameter is the different way that MONO and ,NET  escape any characters that are not being used as format specifiers.
The other change with the "format" parameter is the different way that MONO and .NET  escape any characters that are not being used as format specifiers.
* In [[File:badge v1.png]]Delphi you can put the 'verbatim' characters inside single quotes (Cumulus 1); this is often used to (in English) include words like ' on ' and ' at ' in the formatted output.
* In [[File:badge v1.png]]Delphi you can put the 'verbatim' characters inside single quotes (Cumulus 1); this is often used to (in English) include words like ' on ' and ' at ' in the formatted output.
*in [[File:Badge vMx.png]].NET or MONO you can still use single quotes, but alternatively you can escape each verbatim character with a backslash as prefix (Cumulus MX).  You may need to use both single quotes and back slashes in some format specifiers, depending whether the characters you want to include can be interpreted as control characters (yes, backslash is also used to escape control characters, so for some characters such as those in "on" and "at" [\n will produce new line not the letter n, \t will produce a tab not the letter t] you must use the literal approach to include them in your format).
*in [[File:Badge vMx.png]].NET or MONO you can still use single quotes, but alternatively you can escape each verbatim character with a backslash as prefix (Cumulus MX).  You may need to use both single quotes and back slashes in some format specifiers, depending whether the characters you want to include can be interpreted as control characters (yes, backslash is also used to escape control characters, so for some characters such as those in "on" and "at" [\n will produce new line not the letter n, \t will produce a tab not the letter t] you must use the literal approach to include them in your format).
5,838

edits