This is the documentation page for Module:FactionScript
FactionScript translates English phrases and sentences to WARFRAME-unique languages.
On this wiki, FactionScript is used in:
Associated CSS stylesheet is stored on MediaWiki:FactionScript.css.
Usage
Template
In template: {{#invoke:FactionScript|function|input1|input2|...}}
In articles: {{template|function|input1|input2|...}}
Documentation
Package items
factionscript.gen_script(faction, human_words, size)(function)- Generates WARFRAME language glyph sequence for an English phrase/sentence.
- Parameters:
factionWARFRAME language (e.g. 'grineer' or 'corpus') (string)human_wordsEnglish phrase/sentence to be translated (string)sizeImage sizes in pixels; default 14 for Corpus language and 16 for Grineer (number; optional)
- Returns: HTML of resultant glyph sequence (string)
factionscript.get_img(image_name, size)(function)- Gets glyph image.
- Parameters:
image_nameImage name (string)sizeImage size in pixels (number)
- Returns: Wikitext of image file (string)
factionscript.create_span(output_string, size)(function)- Creates span elements for a string.
- Parameters:
output_stringString to be wrapped around with span tags (string)sizeImage sizes in pixels (number)
- Returns: resultant HTML (string)
factionscript.corpus(frame)(function)- Creates Corpus Language translation of an English phrase/sentence.
- Parameter:
frame- {string} string_input English phrase/sentence to be translated
- {number} size Image sizes in pixels; default 14
- (table)
- Returns: HTML of resultant glyph sequence (string)
factionscript.grineer(frame)(function)- Creates Grineer Language translation of an English phrase/sentence.
- Parameter:
frame- {string} string_input English phrase/sentence to be translated
- {number} size Image sizes in pixels; default 16
- (table)
- Returns: HTML of resultant glyph sequence (string)
factionscript._tenno(human_words, size)(function)- Creates Orokin Language translation of an English phrase/sentence.
- Parameters:
human_wordsEnglish phrase/sentence to be translated (string)sizeImage sizes in pixels; default 16 (number; optional)
- Returns: HTML of resultant glyph sequence (string)
factionscript.tenno(frame)(function)- Creates Orokin Language translation of an English phrase/sentence.
- Parameter:
frame- {string} human_words English phrase/sentence to be translated
- {number} size Image sizes in pixels; default 16
- (table)
- Returns: HTML of resultant glyph sequence (string)
- Created with Docbunto
See Also