Welcome
Adding your own piece of code to our submitted code archive is quite easy (and quite appreciated). Follow these easy steps:
(ps: If you still don't understand what your page should look like after reading this, go to one of the snippets, and click 'edit page' to see its source.)
1. Add the name of your script as a new page.
Type the name of the script you would like to add in the box below. (eg. superpowerop or Auto nick detector)
Note that MediaWiki (the Wiki software hdesk.org is running) will capitalize all first letter, so there is no need to capitalize it if you don't want to :)
Please follow the below rules when making a new article:
- If you are submitting an alias, do not use '/' (slash)
- If you are submitting an identifier, you may use '$' (dollar sign)
- Please do not use any other characters other than alphanumerics ('$' excluded)
See help for other ways to add pages.
2. The layout of the wiki will have to look like this
Standard page layout:
Optional comments
<pre>
Your code here.
</pre>
{{Submitted Code|Type=TypeHere|User=UsernameHere}}
A few things to note:
- Comments are optional. You can put how to install the script, general information on the script, or whatever user will have to know here.
- Your entire mIRC script (including ;comments) should go inside the <pre></pre> boxes.
- You must end your page with the {{Submitted code|Type=|User=}} tag, for proper categorizing. Be sure to not accidentally put this tag inside the <pre></pre>, it should be outside it.
- The types you can choose from inside the tag are "Addons", "Custom Identifiers", and "Snippets". You should not make up your own type, unless it really does not fit in any of the previously mentioned categories.
- Everything inside the {{Submitted code}} tag is CASE-SENSITIVE, including Username.
A working example would be:
This script does absolutely nothing right! Copy below code and paste it in your ALT+R.
on @*:TEXT:*monkey*:#godzilla:{
if ($nick == mylittlepony) { set %variable large! }
elseif ($nick == yourlittlehorse) { unset %michael }
}
alias mylittlepony {
msg #godzilla I give up!
exit
}
on *:NOTICE:*:#godzilla:{
echo -s Oh my god! look at that!
}
{{Submitted Code|Type=Snippets|User=Helpdesk}}
Keep in mind the blue box is automatically added because of the <pre></pre> tags.
3. When done, link your personal category page to the main category.
After you've saved your page, your page should automagically be added to the category listing (if you did not forget the {{Submitted Code}} tag.) However, your personal snippet page should not be linked to the main snippet listing page yet. To do this, scroll down the page you just created. At bottom, it should display:
Categories: Submitted Code (CodeType) | Submitted Code (Your_username_here)
If the second part (Submitted Code (Your_username_here)) is coloured red, click it. On the page it redirects you to, add this code:
[[Category:Submitted Code (by User)|Your_username_here]]
^ Only replace "Your_username_here", do not replace "User"!
Now go back to your newly added code page, and refresh. If done correctly, the link colour should have changed to blue.
Note: You only have to do this once, so if this is not your first code and you have already done this, you can skip all of step three.
Note 2: The main categories take a few minutes to update. So, don't get worried if it doesn't show up on the category listing right away, if the link does not colour red, it's added.