Rosetta Code:Add a Language: Difference between revisions

Content added Content deleted
(→‎Category Page: Updating the examples to follow the example language given)
(Update all the locations where Ayrch should be used as an example.)
Line 25: Line 25:
===Redirect===
===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:python''', and we want people to be able to go to '''http://rosettacode.org/wiki/python''', and be able to use syntax like <nowiki>[[python]]</nowiki> within the wiki to refer to it.
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:Ayrch''', and we want people to be able to go to '''http://rosettacode.org/wiki/Ayrch''', and be able to use syntax like <nowiki>[[Ayrch]]</nowiki> within the wiki to refer to it.


As before, click on the Search field on the left, but this time type '''python''', and click Go. Again, click "create this page", and it will again give you an empty page to edit.
As before, click on the Search field on the left, but this time type '''Ayrch''', 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:
This time, make the entire body of the page:


<pre>#REDIRECT [[:Category:python]]</pre>
<pre>#REDIRECT [[:Category:Aython]]</pre>


Now, when anyone goes to the Ayrch page, they will be immediately redirected to the category page for Ayrch.
Now, when anyone goes to the Ayrch page, they will be immediately redirected to the category page for Ayrch.
Line 50: Line 50:


<pre>
<pre>
=={{header|python}}==
=={{header|Ayrch}}==
<lang ayrch>PRINT "GOODBYE, WORLD!"</lang>
<lang ayrch>PRINT "GOODBYE, WORLD!"</lang>
</pre>
</pre>