Skip navigation

Help: Comcode

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 list to provide a frame of reference – your lists would have text rather than numbers.

A list
 - 1
 - 2
  - 2.1
   - 2.1.1
    - 2.1.1.1
  - 2.2
 - 3

A list
  • 1
  • 2
    • 2.1
      • 2.1.1
        • 2.1.1.1
    • 2.2
  • 3


Emoticons

Emoticons are inputted just by entering the emoticon code :)

Code Image
:ocf_emoticons__icon_surprised: :ocf_emoticons__icon_surprised:
:ocf_emoticons__icon_confused: :ocf_emoticons__icon_confused:
:ocf_emoticons__icon_question: :ocf_emoticons__icon_question:
:ocf_emoticons__icon_rolleyes: :ocf_emoticons__icon_rolleyes:
:ocf_emoticons__eusa_naughty: :ocf_emoticons__eusa_naughty:
:ocf_emoticons__icon_biggrin: :ocf_emoticons__icon_biggrin:
:ocf_emoticons__icon_exclaim: :ocf_emoticons__icon_exclaim:
:ocf_emoticons__icon_mrgreen: :ocf_emoticons__icon_mrgreen:
:ocf_emoticons__icon_neutral: :ocf_emoticons__icon_neutral:
:ocf_emoticons__icon_redface: :ocf_emoticons__icon_redface:
:ocf_emoticons__icon_twisted: :ocf_emoticons__icon_twisted:
:ocf_emoticons__eusa_boohoo: :ocf_emoticons__eusa_boohoo:
:ocf_emoticons__eusa_snooty: :ocf_emoticons__eusa_snooty:
:ocf_emoticons__eusa_angel: :ocf_emoticons__eusa_angel:
:ocf_emoticons__eusa_dance: :ocf_emoticons__eusa_dance:
:ocf_emoticons__eusa_drool: :ocf_emoticons__eusa_drool:
:ocf_emoticons__icon_arrow: :ocf_emoticons__icon_arrow:
:ocf_emoticons__icon_frown: :ocf_emoticons__icon_frown:
:ocf_emoticons__icon_smile: :ocf_emoticons__icon_smile:
:ocf_emoticons__lightsabre: :ocf_emoticons__lightsabre:
:ocf_emoticons__wheelchair: :ocf_emoticons__wheelchair:
:ocf_emoticons__withstupid: :ocf_emoticons__withstupid:
:ocf_emoticons__detective: :ocf_emoticons__detective:
:ocf_emoticons__eusa_clap: :ocf_emoticons__eusa_clap:
:ocf_emoticons__eusa_hand: :ocf_emoticons__eusa_hand:
:ocf_emoticons__eusa_pray: :ocf_emoticons__eusa_pray:
:ocf_emoticons__eusa_shhh: :ocf_emoticons__eusa_shhh:
:ocf_emoticons__eusa_sick: :ocf_emoticons__eusa_sick:
:ocf_emoticons__icon_cool: :ocf_emoticons__icon_cool:
:ocf_emoticons__icon_evil: :ocf_emoticons__icon_evil:
:ocf_emoticons__icon_idea: :ocf_emoticons__icon_idea:
:ocf_emoticons__icon_razz: :ocf_emoticons__icon_razz:
:ocf_emoticons__icon_wink: :ocf_emoticons__icon_wink:
:ocf_emoticons__notworthy: :ocf_emoticons__notworthy:
:ocf_emoticons__surrender: :ocf_emoticons__surrender:
:ocf_emoticons__censored: :ocf_emoticons__censored:
:ocf_emoticons__dontknow: :ocf_emoticons__dontknow:
:ocf_emoticons__eusa_doh: :ocf_emoticons__eusa_doh:
:ocf_emoticons__icon_cry: :ocf_emoticons__icon_cry:
:ocf_emoticons__icon_eek: :ocf_emoticons__icon_eek:
:ocf_emoticons__icon_lol: :ocf_emoticons__icon_lol:
:ocf_emoticons__icon_mad: :ocf_emoticons__icon_mad:
:ocf_emoticons__icon_sad: :ocf_emoticons__icon_sad:
:ocf_emoticons__offtopic: :ocf_emoticons__offtopic:
:ocf_emoticons__alright: :ocf_emoticons__alright:
:ocf_emoticons__eusa_eh: :ocf_emoticons__eusa_eh:
:ocf_emoticons__reading: :ocf_emoticons__reading:
:ocf_emoticons__scooter: :ocf_emoticons__scooter:
:ocf_emoticons__thumbup: :ocf_emoticons__thumbup:
:ocf_emoticons__whaasup: :ocf_emoticons__whaasup:
:ocf_emoticons__cowboy: :ocf_emoticons__cowboy:
:ocf_emoticons__rockon: :ocf_emoticons__rockon:
:ocf_emoticons__2guns: :ocf_emoticons__2guns:
:ocf_emoticons__cheer: :ocf_emoticons__cheer:
:ocf_emoticons__shaun: :ocf_emoticons__shaun:
:ocf_emoticons__borg: :ocf_emoticons__borg:
:ocf_emoticons__clap: :ocf_emoticons__clap:
:ocf_emoticons__lmao: :ocf_emoticons__lmao:
:ocf_emoticons__oops: :ocf_emoticons__oops:
:ocf_emoticons__punk: :ocf_emoticons__punk:
:ocf_emoticons__site: :ocf_emoticons__site:
:ocf_emoticons__tank: :ocf_emoticons__tank:
:ocf_emoticons__eek: :ocf_emoticons__eek:
:constipated: :constipated:
:upsidedown: :upsidedown:
:christmas: :christmas:
:depressed: :depressed:
:puppyeyes: :puppyeyes:
:banghead: :banghead:
:birthday: :birthday:
:offtopic: :offtopic:
:rolleyes: :rolleyes:
:whistle: :whistle:
:cyborg: :cyborg:
:guitar: :guitar:
:hippie: :hippie:
:ninja2: :ninja2:
:rockon: :rockon:
:shutup: :shutup:
:sinner: :sinner:
:thumbs: :thumbs:
:devil: :devil:
:drool: :drool:
:ninja: :ninja:
:party: :party:
:sarcy: :sarcy:
:shake: :shake:
:cool: :cool:
:hand: :hand:
:king: :king:
:nerd: :nerd:
:sick: :sick:
:dry: :dry:
:lol: :lol:
:nod: :nod:
:wub: :wub:
:zzz: :zzz:
(K) (K)
:'( :'(
O_o O_o
^_^ ^_^
:$ :$
:( :(
:) :)
:@ :@
:D :D
:P :P
:S :S
:o :o
:| :|
;) ;)

Shortcuts

Shortcuts are also entered just by inputting their code (c)

(c)©
(r)®


Code blocks

[code="php"] function ocp()
{
   echo "Example PHP syntax highlighting";
} [/code]

PHP code

function ocp()
{
    echo 
"Example PHP syntax highlighting";
}



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.

[img="Logo"]https://vwgolfmk1.org.uk/themes/default/images/comcode.png[/img] Logo
[thumb="Logo"]https://vwgolfmk1.org.uk/themes/default/images/comcode.png[/thumb]


Security

Long text which isn't naturally breakable into lines is forced into pieces.

Normallythistextwouldbewrappedwhenthereisaspaceorafullstopby
thebrowseriftexthasnoneoftheseitruinsthelayoutofthepagesitfor
ciblywrapstextforyou.

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

[url="This is a link"]https://vwgolfmk1.org.uk[/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

[box="my table"]Testing boxes[/box]

my table

Testing boxes


Formatting

[b]text[/b]text
[u]text[/u]text
[i]text[/i]text
[s]text[/s]text
[font param="Helvetica" size="12" color="red"]text[/font] text
----------------------



Scientific notation

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 re-arrange 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

[hide="Secret"]This is an example of hidden text.[/hide]

Expand: Secret Secret

[reference type="url" param="Wikipedia"]http://wikipedia.org[/reference]

Reference source: Wikipedia

[quote param="Philip"]This is an example of a quote.[/quote]

Philip said

This is an example of a quote.
[staff_note]This isn't rendered (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…

Title Description Example
Embed Facebook videos Embed Facebook videos into your content. [facebook_video]http://www.facebook.com/video/video.php?v=10150307159560581[/facebook_video]
Signatures from banners Signatures for banners [signature][/signature]
Embed YouTube videos Embed YouTube videos into your content. [youtube]http://www.youtube.com/watch?v=ZDFFHaz9GsY[/youtube]