mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 12:56:30 +01:00
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
|
|
@ -1483,8 +1483,12 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
including the count.
|
||||
|
||||
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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue