-
Notifications
You must be signed in to change notification settings - Fork 4
celestialobjectslogic.ts
-
docByExternal() ⇒
void
Generates discovered section sentences
- wikiCodePercentage(element)
Add percentage sign to e-sell/buy property data for wikiCode output.
-
autoInfested([element]) ⇒
boolean
Determines whether or not the given element is infested, and updates the page accordingly.
-
buildDescriptor(descriptor, planetClass, filler) ⇒
string
Builds a descriptor for a planet based on its planet class.
-
initialiseSectionInputs(sectionSelector) ⇒
void
Initialise form input fields.
Generates discovered section sentences
Kind: global function
-
docByExternal() ⇒
void
-
~research() ⇒
string
-
~discoverer() ⇒
string
-
~explorer() ⇒
string
-
~formatDate(date) ⇒
string
-
~research() ⇒
Determines the research chapter sentence to use
Kind: inner method of docByExternal
Returns: string
-
The research chapter sentence to use
Formats the name of the discoverer
Kind: inner method of docByExternal
Returns: string
-
The formatted name of the discoverer
Formats and generates sections to be used in the explorer string
Kind: inner method of docByExternal
Returns: string
-
The final generated explorer string
Formats a given date to be in the format 'Month Day, Year'
Kind: inner method of docByExternal
Returns: string
-
The formatted date in the format 'Month Day, Year'
Param | Type | Description |
---|---|---|
date | string |
The date to format in the format 'YYYY-MM-DD' |
Add percentage sign to e-sell/buy property data for wikiCode output.
Kind: global function
Param | Type | Default | Description |
---|---|---|---|
element |
HTMLElement | null
|
|
the element to apply percentage formatting to. |
Determines whether or not the given element is infested, and updates the page accordingly.
Kind: global function
Returns: boolean
-
- If on a System page, returns true if the element is Infested, false otherwise. If on a Planet/Moon page, updates the output text and pageData object accordingly, and returns nothing.
Param | Type | Default | Description |
---|---|---|---|
[element] | HTMLElement |
globalElements.input.descriptionInput |
The element to check for infestation. |
Builds a descriptor for a planet based on its planet class.
Kind: global function
Returns: string
-
The constructed name for the planet.
Param | Type | Description |
---|---|---|
descriptor | string |
The descriptor to be used in the construction of the planet's name. |
planetClass | string |
The classification of the planet, which will be incorporated into the constructed name. |
filler | string |
A string to be added between the planet class and the descriptor for added emphasis in the name. |
Initialise form input fields.
Kind: global function
Param | Type | Description |
---|---|---|
sectionSelector | string |
CSS selector for the input fields to initialise. |
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.