Difference between revisions of "Category:Code"
(refreshed category cache manually, so removed warning) |
m (Undo corruption) |
||
(4 intermediate revisions by 2 users not shown) | |||
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/''foo''</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 (<tt>Code/''foo''</tt>) 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: | + | The article's discussion page (<tt>Talk:Code/''foo''</tt>) should use the <tt>CodeHeader</tt> template to provide the file's metadata. Follow this example: |
<div style="background-color: #E0E0E0"> | <div style="background-color: #E0E0E0"> | ||
<tt><nowiki>{{</nowiki>CodeHeader|</tt><br /> | <tt><nowiki>{{</nowiki>CodeHeader|</tt><br /> | ||
− | <tt>|filename=</tt>''filename this should be saved | + | <tt>|filename=foo</tt> (''filename this should be saved as, preferably the same as the <tt>foo</tt> in <tt>Code/foo</tt>'')<br /> |
<tt>|context=<nowiki>[[</nowiki></tt>''primary page were code is introduced''<tt><nowiki>]]</nowiki></tt><br /> | <tt>|context=<nowiki>[[</nowiki></tt>''primary page were code is introduced''<tt><nowiki>]]</nowiki></tt><br /> | ||
<tt>|author=<nowiki>[[</nowiki>User:</tt>''Yourself''<tt>|</tt>''Yourself''<tt>]]</tt><br /> | <tt>|author=<nowiki>[[</nowiki>User:</tt>''Yourself''<tt>|</tt>''Yourself''<tt>]]</tt><br /> | ||
− | <tt>|license=GPL v2 or higher, or GFDL v1.2 or higher </tt>''(preferably both. ThinkWiki default license is GFDL v1.2)''<br /> | + | <tt>|license=GPL v2 or higher, or GFDL v1.2 or higher </tt>'' (preferably keep both. ThinkWiki default license is GFDL v1.2)''<br /> |
<tt><nowiki>}}</nowiki></tt> | <tt><nowiki>}}</nowiki></tt> | ||
+ | </div> | ||
+ | |||
+ | See the pages in this categories for examples. | ||
+ | |||
+ | When referencing the code, always use this template: | ||
+ | |||
+ | <div style="background-color: #E0E0E0"> | ||
+ | <tt><nowiki>{{CodeRef|</nowiki>''foo''<nowiki>}}</nowiki></tt> | ||
</div> | </div> |
Latest revision as of 10:30, 12 April 2007
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:
{{CodeHeader|
|filename=foo (filename this should be saved as, 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 keep 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}}
Pages in category "Code"
The following 26 pages are in this category, out of 26 total.
C
- Talk:Code/build-experimental-X
- Talk:Code/enable-fingerprint-reader
- Talk:Code/fan-enable-basic
- Talk:Code/fan-enable-extended
- Talk:Code/fan-enable-safe
- Talk:Code/fan-enable.init
- Talk:Code/ibm acpi-extra-thermal.patch
- Talk:Code/ibm-acpi-0.11-2.6.13-fan.patch
- Talk:Code/ibm-acpi-0.11-2.6.17-fan.patch
- Talk:Code/ibm-acpi-0.12a-2.6.14-fan.patch
- Talk:Code/ibm-acpi-0.12a-2.6.17-fan.patch
- Talk:Code/ibm-fancontrol.init
- Talk:Code/thinkpad-smapi.sh
- Talk:Code/tp power monitor.py
- Talk:Code/tp-bat-balance
- Talk:Code/tp-fancontrol
- Talk:Code/tp-fancontrol-basic
- Talk:Code/tp-fancontrol-fc.init
- Talk:Code/tp-fancontrol.conf
- Talk:Code/tp-fancontrol.init
- Talk:Code/tp-fancontrol.init.debian
- Talk:Code/tp-theft
- Talk:Code/tp-theft-basic
- Talk:Code/tp-theft-lcars
- Talk:Code/undervolt-pentium-m-2.6.13.1.patch
- Template:CodeHeader