Difference between revisions of "User:StDoodle/Test Function sandbox"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>StDoodle
m
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{User:StDoodle/FunctionPage_sandbox |
 
{{User:StDoodle/FunctionPage_sandbox |
name=test_function |
+
page_name=test_function |
function1=
+
function1_return_type= string |
{{User:StDoodle/Function_sandbox |
+
function1_returns_also= buffer |
name={{{PAGENAME}}} |
+
function1_parameter1={{User:StDoodle/Param_sandbox|string|text}} |
returns=string |
+
function1_parameter2={{User:StDoodle/Param_sandbox|int|count}} |
returns2=buffer |
+
function2_return_type= string |
parameter1={{User:StDoodle/Param_sandbox|string|text}} |
+
function2_parameter1={{User:StDoodle/Param_sandbox|string|text}} |
p1desc=a fakely required description of junk. |
+
function2_parameter1_desc= Where ''text'' is a stupid thing to parse.|
parameter2={{User:StDoodle/Param_sandbox|int|count}} |
+
function2_parameter2={{User:StDoodle/Param_sandbox|int|count}} |
description=This is a fake function for testing & junk.}} |
+
function2_parameter2_desc= Where ''count'' is a funky place to start.|
code1title=Title of code 1 |
+
function2_parameter3={{User:StDoodle/Param_sandbox|boolean|test}} |
code1desc=This is a description of code 1's block |
+
function2_parameter3_desc= Where ''test'' is to see if you want the function to happen. |
code1code=
+
function_description=This function does stuff.</p><p>And even more stuff (sometimes). |
print(i);
+
code1={{User:StDoodle/Code_sandbox |
 +
title=Impressive Code |
 +
description=The following code is awesome, as you may expect, since I'm awesome. |
 +
code=
 +
<syntaxhighlight lang="c">
 +
int noob = 1337;
 +
print("Stuff");
 +
return noob.to_string();
 +
</syntaxhighlight>}} |
 +
code2={{User:StDoodle/Code_sandbox |
 +
title=More Impressive Code |
 +
description=The following code is also awesome; you should expect this. |
 +
code=
 +
<syntaxhighlight lang="c">
 +
int noob = 1337;
 +
print("Stuff");
 +
return noob.to_string();
 +
</syntaxhighlight>}} |
 +
code3={{User:StDoodle/Code_sandbox |
 +
description=Actually, this code is not so awesome. |
 +
code=
 +
<syntaxhighlight lang="c">
 +
int noob = 1337;
 +
print("Stuff");
 +
return noob.to_string();
 +
</syntaxhighlight>}} |
 +
see_also={{User:StDoodle/SeeAlso|this_function()|that_function()}} |
 +
cli_equiv=The CLI equivalent of this function is [[Test]].
 
}}
 
}}

Latest revision as of 09:48, 25 February 2010


{{#customtitle:test_function()|test_function()}}

Function Syntax

string / buffer test_function(string text, int count)

string test_function(string text, int count, boolean test)

Where text is a stupid thing to parse.
Where count is a funky place to start.
Where test is to see if you want the function to happen.

This function does stuff.

And even more stuff (sometimes).

Impressive Code

The following code is awesome, as you may expect, since I'm awesome.

int noob = 1337;
print("Stuff");
return noob.to_string();

More Impressive Code

The following code is also awesome; you should expect this.

int noob = 1337;
print("Stuff");
return noob.to_string();

Actually, this code is not so awesome.

int noob = 1337;
print("Stuff");
return noob.to_string();

CLI Equivalent

The CLI equivalent of this function is Test.

See Also

this_function()  |  that_function()