From RTwiki
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 (Code/foo) itself should contain only the raw source file, without any Wiki markup.

The article's discussion page (Talk:Code/foo) should use the CodeHeader template to provide the file's metadata. Follow this example:

|filename=foo  (filename this should be saved as, preferably the same as the foo in Code/foo)
|context=[[primary page were code is introduced]]
|license=GPL v2 or GFDL v1.2 (preferably keep both. RT Wiki's default license is GFDL v1.2)

See the pages in this categories for examples.

When referencing the code, always use this template:


Pages in category "Code"

The following 3 pages are in this category, out of 3 total.

Personal tools