Template:Function Link
From Rivals of Aether Unofficial Workshop Manual
Using this template allows you to produce consistent links to function pages, e.g.
asset_get( asset )
→
Syntax[edit source]
{{Function Link|function_name|arguments|gml function?}}
Parameters[edit source]
A template that produces a formatted link to a function page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Function's name | 1 funcname | The function's name, formatted typically in camel case.
| Page name | required |
Function arguments | 2 arguments | The required arguments for the function to run, separated by commas and spaces.
| String | suggested |
is base GML | 3 gmlfunc | Whether the function is a base GML function.
| Boolean | optional |
Examples[edit source]
{{Function Link|asset_get|name|}}
produces... asset_get( name )
→
{{Function Link|is_laststock}}
produces... is_laststock()
→
{{Function Link|draw_sprite|sprite, subimage, x, y|1}}
produces... draw_sprite( sprite, subimage, x, y )
(GML) →
{{Function Link|gpu_pop_state||1}}
produces... gpu_pop_state()
(GML) →