forked from MapComplete/MapComplete
Improve documentation on canonical
This commit is contained in:
parent
a86e52ec63
commit
aea1d0335c
1 changed files with 2 additions and 2 deletions
|
|
@ -756,8 +756,8 @@ export default class SpecialVisualizations {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
funcName: "canonical",
|
funcName: "canonical",
|
||||||
docs: "Converts a short, canonical value into the long, translated text",
|
docs: "Converts a short, canonical value into the long, translated text including the unit. This only works if a `unit` is defined for the corresponding value. The unit specification will be included in the text. ",
|
||||||
example: "{canonical(length)} will give 42 metre (in french)",
|
example: "If the object has `length=42`, then `{canonical(length)}` will be shown as **42 meter** (in english), **42 metre** (in french), ...",
|
||||||
args: [{
|
args: [{
|
||||||
name: "key",
|
name: "key",
|
||||||
doc: "The key of the tag to give the canonical text for",
|
doc: "The key of the tag to give the canonical text for",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue