#VAL

The #VAL tag takes a parameter which is returned as is.

This makes it possible to apply filters to constants.

[(#VAL{<:chaine_de_langue:>}|image_typo)]
(which is equivalent to <:chaine_de_langue|image_typo:>)

Example

If you wanted to assign a (.css) stylesheet for each day of the week, you could that with the following code:

[<link rel="stylesheet"
href="squelettes/styles/jour_(#VAL{w}|date{#DATE|strtotime}).css"
type="text/css" />]

The stylesheets would be named respectively from jour_0.css through jour_6.css (translated as: jour_sunday.css through jour_saturday.css)

See also

Author Mark Published : Updated : 22/07/23

Translations : عربي, català, English, Español, français, Nederlands, slovenčina