Difference between revisions of "Template:CodeRequest"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
imported>StDoodle
m (Protected "Template:CodeRequest": High traffic page ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
  
 
To use this template in a function page, don't call it directly. Instead, add the parameter assignment <nowiki>"needscode=yes|"</nowiki> for a code request or <nowiki>"improvecode=yes|"</nowiki> 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 <nowiki>"{{FunctionPage|"</nowiki>.
 
To use this template in a function page, don't call it directly. Instead, add the parameter assignment <nowiki>"needscode=yes|"</nowiki> for a code request or <nowiki>"improvecode=yes|"</nowiki> 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 <nowiki>"{{FunctionPage|"</nowiki>.
 +
[[Category:Notification Templates]]
 
</noinclude>
 
</noinclude>

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|".