Anonymous user
Help:Adding a new programming language: Difference between revisions
Help:Adding a new programming language (view source)
Revision as of 14:09, 3 September 2009
, 14 years ago→Language Page: Added info about paradigms and language features
(→Language Page: rewrite for current usage) |
(→Language Page: Added info about paradigms and language features) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 3:
==Programming Example==
You should probably start by examining the existing [[:Category:Programming Tasks|programming tasks]], and finding one that you can complete with your language of choice. Good starter examples are [[Empty Program]], [[Comments]], [[User Output]], and those in [[:Category:Control Structures]] and [[:Category:Basic Data Operations]]. See [[:Help:Adding a new programming example]] for details.
==Language Page==
Line 23 ⟶ 9:
Rosetta code uses the Category namespace for describing programming languages, with a normal page redirecting to it for more convenient links.
If a programming example already exists for the language, creating a language page is simple.
<pre><nowiki>
{{language}}
#REDIRECT [[:Category:My Language]]▼
Short description of your language.▼
</nowiki></pre>
Your language description should briefly point out unique features of the language and provide links to external sites for more information or downloads. You can also provide wiki links to other languages or other wiki pages for cross-reference.
Next you need to add a page that redirects to this page so that people can link to your language easier. Enter the name of your language in the search bar on the left and click "Go". Once again, click "crate this page" and add this text replacing ''My Language'' with the name of your language:
<pre><nowiki>
▲#REDIRECT [[:Category:My Language]]
▲Short description of your language.
</nowiki></pre>
▲Your language description should briefly point out unique features of the language and provide links to external sites for more information or downloads. You can also provide wiki links to other languages or other wiki pages for cross-reference. If you have little to say, please prepend the text <code><nowiki>{{stub}}</nowiki></code> to let us know more information needs to be added.
Now hit "Save" again. Go back to the example page and reload. Check that clicking the header link for your language takes you to the category page you just created, and that the example shows up in a section titled '''Articles in category "My Language"'''.
|