Rosetta Code:Add a Language: Difference between revisions

no edit summary
(Undo revision 169070 by Pbrowne (talk))
No edit summary
Line 15:
===Category Page===
 
Once you're sure the language doesn't already have a page on Rosetta Code, you'll need to create a category page for the language. Let's say you're adding a language called Ayrch ('''This is a hypothetical language name; please change it to your actual language name when you actually add your language.''') The first thing you need to do is create the category page. The easiest way is to click on the Search field, type '''Category:Ayrchpython''', and click Go. It will tell you there is no current page with that name. Click "create this page", and it will give you an empty page to edit.
 
One simple way to start is to make this the entire body of the page:
 
<pre>{{stub}}{{languagepython}}</pre>
<small>(Actually use the word "language" here, not your language's name)</small>
 
Line 26:
===Redirect===
 
The next step is to create a redirect page. This is important, because the ''actual'' page for your Ayrch language is at '''http://rosettacode.org/wiki/Category:Ayrchpython''', and we want people to be able to go to '''http://rosettacode.org/wiki/Ayrchpython''', and be able to use syntax like <nowiki>[[Ayrchpython]]</nowiki> within the wiki to refer to it.
 
As before, click on the Search field on the left, but this time type '''Ayrchpython''', and click Go. Again, click "create this page", and it will again give you an empty page to edit.
 
This time, make the entire body of the page:
 
<pre>#REDIRECT [[:Category:Ayrchpython]]</pre>
 
Now, when anyone goes to the Ayrch page, they will be immediately redirected to the category page for Ayrch.
Line 51:
 
<pre>
=={{header|Ayrchpython}}==
<lang ayrch>PRINT "GOODBYE, WORLD!"</lang>
</pre>
Anonymous user