Difference between revisions of "Category:Code"

From ThinkWiki
Jump to: navigation, search
 
Line 1: Line 1:
Pieces of code (scripts, sourcecode etc.) of non-trivial length should be placed in dedicated articles called <tt>Code/''something''</tt>. The Discussion page should use the <tt>CodeHeader</tt> template to provide the metadata. The article page itself should contain only the raw source file, '''without any Wiki markup'''.
+
Pieces of textual sourcecode (shell scripts, Perl scripts, C programs, patches etc.) of non-trivial length should be placed in dedicated articles called <tt>Code/''something''</tt>.  
 +
 
 +
The article page itself should contain only the raw source file, '''without any Wiki markup'''.
 +
 
 +
The discussion page should use the <tt>CodeHeader</tt> template to provide the file's metadata. Follow this example:
 +
 
 +
<div style="background-color: #E0E0E0">
 +
<tt><nowiki>{{</nowiki>CodeHeader|<br />
 +
|filename=''informative filename''<br />
 +
|context=<nowiki>[[</nowiki>''primary page were code is introduced''<nowiki>]]</nowiki><br />
 +
|author=<nowiki>[[</nowiki>User:''Yourself''|''Yourself'']]<br />
 +
|license=GPL v2 or higher, or GFDL v1.2 or higher ''(or whatever you prefer, if it's your code)''<br />
 +
<nowiki>}}</nowiki></tt>
 +
</div>

Revision as of 23:24, 26 July 2006

Pieces of textual sourcecode (shell scripts, Perl scripts, C programs, patches etc.) of non-trivial length should be placed in dedicated articles called Code/something.

The article page itself should contain only the raw source file, without any Wiki markup.

The discussion page should use the CodeHeader template to provide the file's metadata. Follow this example:

{{CodeHeader|
|filename=informative filename
|context=[[primary page were code is introduced]]
|author=[[User:Yourself|Yourself]]
|license=GPL v2 or higher, or GFDL v1.2 or higher (or whatever you prefer, if it's your code)
}}