Category:Code

From ThinkWiki
Revision as of 19:55, 15 August 2006 by Thinker (Talk | contribs)
Jump to: navigation, search

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

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=filename this should be saved under, preferably the same as the foo in Code/foo
|context=[[primary page were code is introduced]]
|author=[[User:Yourself|Yourself]]
|license=GPL v2 or higher, or GFDL v1.2 or higher (preferably both. ThinkWiki default license is GFDL v1.2)
}}

See the pages in this categories for examples.

When referencing the code, always use this template:

{{CodeRef|foo}}