Comcode help
Comcode is used for formatting input data (the data marked as being Comcode).The title for this page and smaller title below were generated using [title]Comcode help[/title] and [title="2"]Lists[/title].
Lists
The list shown on the right is generated using the Comcode below.Numbers are used on the example list to provide a frame of reference – your lists would have text rather than numbers.
Code | Result |
---|---|
CodeA list |
A list
|
Emoticons
Emoticons are inputted just by entering the emoticon code, e.g. :).Code | Image | Code | Image | Code | Image | Code | Image |
---|---|---|---|---|---|---|---|
:reallybadday: | :constipated: | :upsidedown: | :depressed: | ||||
:puppyeyes: | :christmas: | :offtopic: | :rolleyes: | ||||
:birthday: | :whistle: | :goodbye: | :fishing: | ||||
:thumbs: | :shutup: | :cyborg: | :hippie: | ||||
:ninja2: | :rockon: | :sinner: | :guitar: | ||||
:cowboy: | :ninja: | :shake: | :drool: | ||||
:devil: | :party: | :sarcy: | :angel: | ||||
:fight: | :cool: | :hand: | :sick: | ||||
:nerd: | :king: | :idea: | :boat: | ||||
:dry: | :wub: | :lol: | :zzz: | ||||
:nod: | :'( | O_o | ^_^ | ||||
(K) | :P | :$ | ;) | ||||
:( | :) | :| | :o | ||||
:D | :S | :@ |
Shortcuts
Shortcuts are also entered just by inputting their code, e.g. (c).Code | Result |
---|---|
(c) | © |
(r) | ® |
Code blocks
Code | Result |
---|---|
[code="php"] function cms() { echo "Example PHP syntax highlighting"; } [/code] |
PHP code
|
Images
You can put inline images into your text easily and quickly, with the [img] tag. There is also a thumbnail tag [thumb] which will show (and cache) a thumbnail of an image. If the tag is given a URL as a parameter as well as the main URL, then that will be used as the thumbnail.Code | Result |
---|---|
[img="Logo"]themes/default/images/no_image.png[/img] | |
[thumb="Logo"]themes/default/images/no_image.png[/thumb] |
Security
Long text which isn't naturally breakable into lines is forced into pieces.JavaScript script tags, onX handlers and URLs will all be filtered/blocked. Don't use them unless you want the staff to be alerted to a suspected hacking attempt!
Links
Code | Result |
---|---|
[url="This is a link"]https://sarhm.org[/url] | This is a link |
[email="My E-Mail"]fake_address@example.com[/email] | My E-Mail |
[page="cms:cms"]Content Management[/page] | Content Management |
Boxes
You can put things in boxes. For example:Code
[box="My Box"]Testing boxes[/box]
My Box
Testing boxes
Formatting
Code | Result |
---|---|
[b]text[/b] | text |
[u]text[/u] | text |
[i]text[/i] | text |
[s]text[/s] | text |
[font param="Helvetica" size="3" color="red"]text[/font] | text |
---------------------- | ———————- |
Mathematical notation
Code | Result |
---|---|
a[sub]2[/sub] | a2 |
a[sup]2[/sup] | a2 |
Attachments
You can use attachments with a number of different Comcode forms. The attachment tags are automatically inserted into your Comcode when you choose an attachment, and you may rearrange them to move the attachments around; you may also wish to change the width, height, description, or set the type to 'download'. After adding your attachments you may re-use them in other pieces of Comcode, and the attachment will exist until all references are deleted.Attachments may be movies, flash animations, audio, images or general downloads. The website automatically decides how to treat your attachment.
Users may add attachments according to their quota, and re-use other people's attachments according to privileges.
Advanced
Code | Result |
---|---|
[hide="Secret"]This is an example of hidden text.[/hide] |
|
[reference type="url" param="Wikipedia"]http://wikipedia.org[/reference] | Reference source: Wikipedia |
[quote param="Philip"]This is an example of a quote.[/quote] |
|
[staff_note]This isn't displayed (not even for staff), but is saved. Staff can view it when editing the Comcode.[/staff_note] |
Custom Comcode tags
These Custom Comcode tags have been added by the staff…None