Template:CodeRequest

From Kolmafia
Jump to navigation Jump to search


This function can be called without parameters, in which case the page will get a fancy "needs(code_samples)" notification near the upper-right.

If called with the parameter "better" equal to anything, it will instead print "needs(better_code_samples)".

To use this template in a function page, don't call it directly. Instead, add the parameter assignment "needscode=yes|" for a code request or "improvecode=yes|" for a request to improve the current sample(s). These lines can go anywhere inside the "FunctionPage" template call (ie not the first couple of lines) as long as they aren't inside another template call. For simplicity, just stick them right after the line that reads "{{FunctionPage|".