-
Notifications
You must be signed in to change notification settings - Fork 4
planet.ts
-
addMoon(element) ⇒
void
Add a new section for adding a moon to a planet.
-
enableMoonAdd() ⇒
void
Enables the add button for moonInputs and triggers the moonList function
-
moonList() ⇒
undefined
Populates the moon list in the output with the current values of the moonInputs.
-
plural(number, [dest]) ⇒
string
Determines the appropriate verb to use based on the given number, and sends the output to the specified destination if provided.
-
moonSentence() ⇒
void
Generates a sentence describing the moons of the current planet.
Add a new section for adding a moon to a planet.
Kind: global function
Param | Type | Description |
---|---|---|
element | HTMLElement |
The element that triggered the addition of the moon section. |
Enables the add button for moonInputs and triggers the moonList function
Populates the moon list in the output with the current values of the moonInputs.
Determines the appropriate verb to use based on the given number, and sends the output to the specified destination if provided.
Kind: global function
Returns: string
-
Either "is" or "are," depending if the number is singular or plural.
Param | Type | Description |
---|---|---|
number | number |
The number used to decide which verb to use. |
[dest] | string |
An optional destination to send the output of the wikiCode() function to. |
Generates a sentence describing the moons of the current planet.
Kind: global function
Returns: void
-
- Sentence describing the planet's moons.
Thank you for using the Eisvana Wiki Page Creator! I hope it helps you create amazing pages for your No Man's Sky discoveries. If you have any feedback or suggestions for how the project can be improved, please let me know.