Add examples to doc string of get_numbered_name()
This commit is contained in:
parent
f4cb272e22
commit
8da1e3790f
1 changed files with 6 additions and 2 deletions
|
|
@ -1484,7 +1484,11 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
::
|
::
|
||||||
obj.get_numbered_name(3, looker, key="foo") -> ("a foo", "three foos")
|
- obj.get_numbered_name(3, looker, key="foo") -> ("a foo", "three foos")
|
||||||
|
- obj.get_numbered_name(1, looker, key="Foobert", return_string=True)
|
||||||
|
-> "a Foobert"
|
||||||
|
- obj.get_numbered_name(1, looker, key="Foobert", return_string=True, no_article=True)
|
||||||
|
-> "Foobert"
|
||||||
|
|
||||||
"""
|
"""
|
||||||
plural_category = "plural_key"
|
plural_category = "plural_key"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue