Template:CodeRequest: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle mNo edit summary |
imported>StDoodle m Protected "Template:CodeRequest": High traffic page ([edit=sysop] (indefinite) [move=sysop] (indefinite)) |
(No difference)
|
Latest revision as of 06:23, 14 March 2010
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|".