Deprecated: Function create_function() is deprecated in /membri/mindworks/wiki/pmwiki.php on line 466 Deprecated: Function create_function() is deprecated in /membri/mindworks/wiki/pmwiki.php on line 466 comment5, https://prixacheter.fr/categories/Antibiotics/achat-Stromectol achat stromectol, 759877, https://prixacheter.fr/categories/Erectile-Dysfunction/achat-Nizagara achat nizagara, cgazz, https://prixacheter.fr/categories/Muscle-Relaxant/achat-Tegretol achat tegretol, qqmij, https://getbuycheap.org.uk/dostinex buy dostinex online, jxv, https://getbuycheap.org.uk/tizanidine tizanidine buy, 8PP, https://getbuycheap.org.uk/xeloda buy xeloda, 7179, https://prixacheter.fr/categories/Erectile-Dysfunction/achat-Avana acheter avana, >:-))), https://prixacheter.fr/categories/Men's-Health/achat-Proscar achat proscar, piirq, https://getbuycheap.org.uk/floxin floxin for sale, 791, https://prixacheter.fr/categories/Gastrointestinal/achat-Prevacid acheter prevacid, >:-O, https://getbuycheap.org.uk/dapsone where to buy dapsone, xlqnq, https://prixacheter.fr/categories/Blood-Pressure/achat-Coumadin acheter coumadin, 03320, https://prixacheter.fr/categories/Blood-Pressure/achat-Avapro acheter avapro, 8(((, https://prixacheter.fr/categories/Blood-Pressure/achat-Plendil acheter plendil, 947, https://prixacheter.fr/categories/Cholesterol-Lowering/achat-Atorlip-20 achat atorlip 20, >:-]]], https://getbuycheap.org.uk/imitrex imitrex, 8-))), https://prixacheter.fr/categories/Erectile-Dysfunction/achat-Zenegra acheter zenegra, :-DDD, https://getbuycheap.org.uk/cialis-oral-jelly cialis jelly, dquhl, https://getbuycheap.org.uk/advair-diskus where to buy advair diskus, uvq, https://prixacheter.fr/categories/Erectile-Dysfunction/achat-Caverta acheter caverta, daifj, https://getbuycheap.org.uk/amaryl buy amaryl, 665353, https://getbuycheap.org.uk/ashwagandha buy ashwagandha, :(, https://prixacheter.fr/categories/Other/achat-Antabuse achat antabuse, :PP, https://prixacheter.fr/categories/Blood-Pressure/achat-Cardizem achat cardizem, 00829, https://prixacheter.fr/categories/Cholesterol-Lowering/achat-Lasuna acheter lasuna, 8797, https://prixacheter.fr/categories/Anxiety/achat-Cymbalta acheter cymbalta, 57161, |
Deprecated: Function create_function() is deprecated in /membri/mindworks/wiki/pmwiki.php on line 466 Deprecated: Function create_function() is deprecated in /membri/mindworks/wiki/pmwiki.php on line 466 PmWiki /
MarkupExpressionsauthors (advanced)
The substrThe "substr" expression extracts portions of a string. The arguments are
To obtain the last n characters of a string use ftime"Ftime" expressions are used for date and time formatting. The generic form is {(ftime "fmt" "when")}
{(ftime fmt="fmt" when="when")}
where fmt is a formatting string and when is the time to be formatted. The arguments can be in either order and may use the optional "fmt=" and "when=" labels. Examples:
The fmt parameter is whatever is given by "fmt=", the first parameter containing a '%', or else the site's default. The formatting codes are described at http://php.net/strftime. In addition to those, '%F' produces ISO-8601 dates, and '%s' produces Unix timestamps. Some common formatting strings: %F # ISO-8601 dates "2024-03-29" %s # Unix timestamp "1711697028" %H:%M:%S # time as hh:mm:ss "08:23:48" %m/%d/%Y # date as mm/dd/yyyy "03/29/2024" "%A, %B %d, %Y" # in words "Friday, March 29, 2024" The when parameter understands many different date formats. The when parameter is whatever is given by "when=", or whatever parameter remains after determining the format parameter. Some examples: 2007-04-11 # ISO-8601 dates 20070411 # dates without hyphens, slashes, or dots 2007-03 # months @1176304315 # Unix timestamps (seconds since 1-Jan-1970 00:00 UTC) now # the current time today # today @ 00:00:00 yesterday # yesterday @ 00:00:00 "next Monday" # relative dates "last Thursday" # relative dates "-3 days" # three days ago "+2 weeks" # two weeks from now Note: If you want to convert a Unix timestamp you must prefix with the @. Thus, The when parameter uses PHP's strtotime function to convert date strings according to the GNU date input formats; as of this writing it only understands English phrases in date specifications. The variable strlenThe "strlen" expression returns the length of a string. The first argument is the string to be measured.
randThe "rand" expression returns a random integer. The first argument is the minimum number to be returned and the second argument is the maximum number to be returned. If called without the optional min, max arguments rand() returns a pseudo-random integer between 0 and RAND_MAX. If you want a random number between 5 and 15 (inclusive), for example, use (rand 5 15).
modThe advanced "mod" expression returns the modulo (remainder) of the division of two numbers. It may be used in advanced PageList templates together with
toupper / tolowerThe "toupper" and "tolower" expressions convert a string into uppercase or lowercase. The first argument is the string to be processed.
ucfirst / ucwordsThe "ucfirst" expression converts to uppercase the first character of the string, and "ucwords", the first character of each word. The first argument is the string to be processed.
pagenameThe "pagename" expression builds a pagename from a string. The first argument is the string to be processed.
asspacedThe "asspaced" expression formats wikiwords. The first argument is the string to be processed.
Nesting expressionsMarkup expressions can be nested. Omit the curly braces for the inner expressions:
Notes
See also
This page may have a more recent version on pmwiki.org: PmWiki:MarkupExpressions, and a talk page: PmWiki:MarkupExpressions-Talk. |