-
Notifications
You must be signed in to change notification settings - Fork 0
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. |
¡Gracias por utilizar el Creador de páginas para la Wiki! Espero que te ayude a crear páginas increíbles para tus descubrimientos en No Man's Sky. Si tiene algún problema o sugerencia sobre cómo se puede mejorar el proyecto, haganoslo saber.