Difference between revisions of "Category:Code"

From ThinkWiki
Jump to: navigation, search
(explanation and formatting)
Line 1: Line 1:
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>.  
+
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/''foo''</tt>.  
  
 
The article page itself should contain only the raw source file, '''without any Wiki markup'''.
 
The article page itself should contain only the raw source file, '''without any Wiki markup'''.
Line 6: Line 6:
  
 
<div style="background-color: #E0E0E0">
 
<div style="background-color: #E0E0E0">
<tt><nowiki>{{</nowiki>CodeHeader|<br />
+
<tt><nowiki>{{</nowiki>CodeHeader|</tt><br />
|filename=''informative filename''<br />
+
<tt>|filename=</tt>''filename this should be saved under, preferably the same as the <tt>foo</tt> in <tt>Code/foo</tt>''<br />
|context=<nowiki>[[</nowiki>''primary page were code is introduced''<nowiki>]]</nowiki><br />
+
<tt>|context=<nowiki>[[</nowiki></tt>''primary page were code is introduced''<tt><nowiki>]]</nowiki></tt><br />
|author=<nowiki>[[</nowiki>User:''Yourself''|''Yourself'']]<br />
+
<tt>|author=<nowiki>[[</nowiki>User:</tt>''Yourself''<tt>|</tt>''Yourself''<tt>]]</tt><br />
|license=GPL v2 or higher, or GFDL v1.2 or higher ''(preferably both. ThinkWiki default license is GFDL v1.2)''<br />
+
<tt>|license=GPL v2 or higher, or GFDL v1.2 or higher </tt>''(preferably both. ThinkWiki default license is GFDL v1.2)''<br />
<nowiki>}}</nowiki></tt>
+
<tt><nowiki>}}</nowiki></tt>
 
</div>
 
</div>
 +
  
 
(The autogenerated article list below is partial, due to broken category caching in MediaWiki.)
 
(The autogenerated article list below is partial, due to broken category caching in MediaWiki.)

Revision as of 23:46, 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/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)
}}


(The autogenerated article list below is partial, due to broken category caching in MediaWiki.)