[1.6.x] Fixed #21306 -- Documented lower-casing behavior of title filter.
Backport of eafe279120
from master
This commit is contained in:
parent
1cdf7f83ff
commit
d774cb219c
|
@ -2091,14 +2091,15 @@ date that is in the past relative to the comparison point.
|
||||||
title
|
title
|
||||||
^^^^^
|
^^^^^
|
||||||
|
|
||||||
Converts a string into titlecase by capitalizing each word in the string.
|
Converts a string into titlecase by making words start with an uppercase
|
||||||
This tag makes no effort to keep "trivial words" in lowercase.
|
character and the remaining characters lowercase. This tag makes no effort to
|
||||||
|
keep "trivial words" in lowercase.
|
||||||
|
|
||||||
For example::
|
For example::
|
||||||
|
|
||||||
{{ value|title }}
|
{{ value|title }}
|
||||||
|
|
||||||
If ``value`` is ``"my first post"``, the output will be ``"My First Post"``.
|
If ``value`` is ``"my FIRST post"``, the output will be ``"My First Post"``.
|
||||||
|
|
||||||
.. templatefilter:: truncatechars
|
.. templatefilter:: truncatechars
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue