Pocket-Monkey(tm) Discussion Forum

[Home] | [News & Announcements] | MonkeyTags 101[Forum Rules] [Login]

MonkeyTags 101

Thread #392 - Messages: 13   (some may be hidden) **This thread is closed** 
 MonkeyTags 101 Message #1725    Replies: 5
posted by T.J. (T.J. Crowder) on 01/09 at 06:29
A quick FAQ on MonkeyTags

MonkeyTags are a way you can add emphasis (like boldface or italics), web links, and other things to your forum messages . I realized suddenly today that this information was no longer available on the site since I took down the "New Forums Beta Test" section of the forums something like a year ago. Ooops. :-)

Overview
MonkeyTags are a bit like HTML tags, but they use [ and ] instead of < and >, and only a small subset of HTML functionality is supported. Tags typically surround the text they operate on, so for instance "this is [b]bold[/b]" displays as "this is bold". Start tags look like [xyz], end tags look like [/xyz].

Decoration
You can make your text boldfaced, italicized, and/or underlined; some examples:
    [b]boldface[/b]
    [i]italics[/i]
    [u]underlining[/u]
You can combine these, so "[b][i]wow![/i][/b]" shows up as "wow!".

Links
You can make a web address a link by putting it inside [url] tags, e.g.: [url]www.pocket-monkey.com[/url] becomes http://www.pocket-monkey.com (that's a link; hover your mouse over it to see).

You can also use descriptive text for the link by putting the address inside the start tag with an equal sign (=) in front of it, and putting your text between the tags. So [url=www.pocket-monkey.com]nifty game site[/url] becomes nifty game site (that's also a link; hover your mouse over it...).

Email Links
You can do much the same thing with email addresses as with URLs: [email]tj@pocket-monkey.com[/email] becomes tj@pocket-monkey.com (an email link), and [email=tj@pocket-monkey.com]my email address[/email] becomes my email address (another email link).

Quoting
If you reply to a message, the dialog box will have an option for quoting the original text of the message you're replying to. It does this (and you can too!) by surrounding the text with [quote] tags. So "John Q. Public wrote: [quote]You think I'm being silly[/quote]" shows up as:
John Q. Public wrote:
You think I'm being silly
Code
You can mark text to be displayed in a monospaced font by surrounding it with [code] tags. At the moment, this always starts a new line, because they translate to HTML <pre> tags. Example: This:

Here's Bart's loop:
[code]for (i = 0; i < 5000; ++i)
{
printf("%s\n", "I will not tell tales out of school.");
}[/code]

(there are four spaces before "printf", but they won't show up in the browser) displays as:

Here's Bart's loop:
for (i = 0; i < 5000; ++i)
{
printf("%s\n", "I will not tell tales out of school.");
}
Lists
You can create lists of things by using [list] tags (which have both a beginning and an end) with bullet items in them, each bullet item starting with [*] (there is no end tag for the bullet items). So this text:

[list]
[*]One
[*]Two
[*]Three
[/list]

shows up like this:
  • One
  • Two
  • Three
You can also create numbered lists, by putting an "=1" in the opening [list] tag:

[list=1]
[*]One
[*]Two
[*]Three
[/list]

shows up like this:
  1. One
  2. Two
  3. Three
Other choices are "A" for an alphabetically-"numbered" list, "a" for the same thing in lower case, "I" for Roman numerals, and "i" for lower-case Roman numerals. Last example:

[list=i]
[*]One
[*]Two
[*]Three
[/list]

shows up like this:
  1. One
  2. Two
  3. Three
Manual Line Breaks
Normally, if you press [Enter] in the message, a line break
like
these
ones
will show up in your message. However, some tags (like [quote]) "eat" line breaks near them because it makes things a bit easier when you're writing the message (since they create their own line breaks). Sometimes, you want to force the forum to include a line break it would otherwise "eat," and for that we have the [br] tag (which has no end tag). So, while this text:

[quote]
But she said "I don't [i]think[/i] so!"
[/quote]

shows up as:
But she said "I don't think so!"
this text:

[quote]
[br]But she said "I don't [i]think[/i] so!"
[/quote]

shows up as:

But she said "I don't think so!"
(See how it keeps that initial line break, because you told it to. Can't see why you'd want to, but there we are.)

Escapes
The astute reader will want to know how I put those tags in this message -- if [b]bold[/b] is supposed to make text bold, how did I put [b]bold[/b] in this message? The answer is an "escape" character. I just put a backslash (\) in front of the opening '[' character of both the start and end tags, like this: \[b]bold\[/b]. That tells the forum to leave them alone. [Note that a "backslash" ('\') is not the same as as "slash" ('/'). Also note that you don't need the backslash in front of all '[' characters, just ones that are part of a forum tag. So for instance, I didn't need them in the brackets surrounding this parenthetical sentence.]

But what if you want to have a backslash in your message? Most of the time, you're fine, just type them and they'll show up normally, they're only special if they're right in front of a '[' character. But if you really, really want to have a backslash in front of a '[', you'll have to put in two backslashes (the first "escapes" the second), like this: "\\[b]this is bold\\[/b]". (But right now there's a bug in the forums and that doesn't quite work the way it should -- the tags still show up in your message. I'll get to it.)

Clear as mud?
Well that's what the proofreading feature is for! Before you post your message, use the "Proofread First" button to check that your message appears the way you want it to. Believe me, I used it a lot writing this! ;-)

Well, that's about it. Have fun!
--
T.J. Crowder
First Primate
Pocket-Monkey.com
 
 Re: MonkeyTags 101 Message #1726    Replies: 1
posted by nono (no no) on 01/09 at 16:10
Hm...
your 'code' is interesting but how many people knows about programming and how about this:
printf("%d", 1/0);
Cheers :)
   
 Re: Re: MonkeyTags 101 Message #1731    Replies: 1
posted by T.J. (T.J. Crowder) on 01/10 at 07:18
nono (no no name) wrote:
...how about this:
printf("%d", 1/0);
That would, of course, have an unfortunate effect if actually executed. ;-)
     
 Re: Re: Re: MonkeyTags 101 Message #1734    Replies: 1
posted by nono (no no) on 01/10 at 15:36
I wonna try it :-))))
printf("%d", 1/0);
_ has been added to show the code:
[_code]
printf("%d", 1/0);
[/_code]

... seems I get just echo of what is inside printf...

By the way can you show any place where you will use this code tage?
       
 Re: Re: Re: Re: MonkeyTags 101 Message #1735    Replies: 0
posted by T.J. (T.J. Crowder) on 01/10 at 22:22
nono (no no name) wrote:
... seems I get just echo of what is inside printf...
Yes, that's right, it's so that the text comes out preformatted and monospaced. I can't immediately think of an example of someone wanting to use it on Pocket-Monkey; it's mostly there for completeness, as other forums using similar tags have it.
--
T.J. Crowder
First Primate
Pocket-Monkey.com

 
 Re: MonkeyTags 101 Message #1727    Replies: 0
posted by dalyark (dalya) on 01/09 at 18:22
huh???
 
 Re: MonkeyTags 101 Message #1728    Replies: 2
posted by Rizzo (Kirsty) on 01/09 at 18:56
No images?
   
 Re: Re: MonkeyTags 101 Message #1729    Replies: 0
posted by nono (no no) on 01/09 at 19:11
iamges? what images :-)
   
 Re: Re: MonkeyTags 101 Message #1732    Replies: 0
posted by T.J. (T.J. Crowder) on 01/10 at 07:22
Rizzo (Kirsty) wrote:
No images?
Not for now in the forums, no. But the next update has images enabled everywhere MonkeyTags are used (which is in the forums, on player profiles, in waiting room game notes, and on private messages), since there's an option for people to turn them off. Testing on the update starts on Saturday, so it'll be here on the main site in a month or two.
--
T.J. Crowder
First Primate
Pocket-Monkey.com

 
 Re: MonkeyTags 101 Message #1730    Replies: 1
posted by cathm (Cath) on 01/09 at 23:10
i'm lost; but then this is nothing new.
   
 Re: Re: MonkeyTags 101 Message #1733    Replies: 0
posted by T.J. (T.J. Crowder) on 01/10 at 07:26
cathm (CM) wrote:
i'm lost; but then this is nothing new.
LOL Don't worry about it, you don't have to use MonkeyTags to write forum posts (obviously; you just did!). But if you want to use emphasis like this, just put the appropriate special characters on either side (like this: [i]this[/i]). Remember you can experiment using the "Proofread First" button.
--
T.J. Crowder
First Primate
Pocket-Monkey.com

 
 Re: MonkeyTags 101 Message #1868    Replies: 1
posted by T.J. (T.J. Crowder) on 03/28 at 14:52
Hey folks,

There's a tag I forgot to mention: The [msg] tag. It allows you to link to a message here in the forum. So for instance if I wanted to link to the message that started this thread, like this:

text of the link

...I'd do it like this:

[msg=1725]text of the link[/msg]

The number inside the opening tag is the message ID, which is shown in the message header on the right.

Enjoy!
--
T.J. Crowder
First Primate
Pocket-Monkey.com

   
 Re: Re: MonkeyTags 101 Message #1972    Replies: 0
posted by newguy (New Guy) on 04/12 at 04:38
I find the /[code] tag useful for when I post tournament brackets in my Tiny Tournament because my tournament brackets only show up right in
monospaced
fonts.

In case you're wondering what the Tiny Tournament is, it's a backgammon tournament in the interim until real tourneys go live here, where lineups and reporting happen on a forum thread (you report the outcomes of "friendly" games, which make up the tournament). There are currently two spots left for signups as of this moment.

Okay sorry for advertising in this thread! ;-)

Forum software by Crowder Software
Pocket-Monkey and the Pocket-Monkey logo are trademarks of T.J. Crowder and Jock Murphy. All other trademarks are the property of their respective owners.