diff options
| author | Maxime Lorant <maxime.lorant@gmail.com> | 2015-04-14 10:43:14 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-04-14 07:06:12 -0400 |
| commit | 4c9d79e1164866072b4d2e3012e127a0debbbfe1 (patch) | |
| tree | f1b7db785158080dc92ff0f4c292630f5ffbe0b3 | |
| parent | dce97cb74029f1e068ef1e312db190fa2d7109ea (diff) | |
[1.7.x] Fixed formatting in docs/ref/templates/builtins.txt
Backport of 6023312dde022d31d44373e8834431456095dc7c from master
| -rw-r--r-- | docs/ref/templates/builtins.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index b2f82b2924..bbdef42b8d 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -2452,24 +2452,24 @@ If ``value`` is ``Joel is a slug``, the output would be:: yesno ^^^^^ -Maps values for true, false and (optionally) None, to the strings "yes", "no", -"maybe", or a custom mapping passed as a comma-separated list, and +Maps values for ``True``, ``False``, and (optionally) ``None``, to the strings +"yes", "no", "maybe", or a custom mapping passed as a comma-separated list, and returns one of those strings according to the value: For example:: {{ value|yesno:"yeah,no,maybe" }} -========== ====================== ================================== +========== ====================== =========================================== Value Argument Outputs -========== ====================== ================================== +========== ====================== =========================================== ``True`` ``yes`` ``True`` ``"yeah,no,maybe"`` ``yeah`` ``False`` ``"yeah,no,maybe"`` ``no`` ``None`` ``"yeah,no,maybe"`` ``maybe`` -``None`` ``"yeah,no"`` ``"no"`` (converts None to False - if no mapping for None is given) -========== ====================== ================================== +``None`` ``"yeah,no"`` ``no`` (converts ``None`` to ``False`` + if no mapping for ``None`` is given) +========== ====================== =========================================== Internationalization tags and filters ------------------------------------- |
