Template:Comment: Difference between revisions
From FreeAllegiance Wiki
Jump to navigationJump to search
Badpazzword (talk | contribs) (Whoops.) |
mNo edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<span style="color:#888">''{{{1}}}''</span><noinclude> | <span style="color:#888">''{{{1}}}''</span><noinclude> | ||
==Usage== | |||
Code code code <nowiki>{{Comment|Your comment here}}</nowiki> | |||
== | |||
== Example == | |||
def list(*stuff): <nowiki>{{comment|#accept a list as argument}}</nowiki> | |||
return ", ".join(stuff) | |||
Gives: | |||
def list(*stuff): {{comment|#accept a list as argument}} | def list(*stuff): {{comment|#accept a list as argument}} | ||
return ", ".join(stuff) | return ", ".join(stuff) | ||
[[Category:Templates]] | |||
Latest revision as of 21:23, 13 February 2009
{{{1}}}
Usage
Code code code {{Comment|Your comment here}}
Example
def list(*stuff): {{comment|#accept a list as argument}}
return ", ".join(stuff)
Gives:
def list(*stuff): #accept a list as argument
return ", ".join(stuff)