Syntax

From Wiki Gonzalez

Jump to: navigation, search

What syntax can you use to tag text in a Primer post? Here's a short handbook, and a guide to bugs in the BTF software that may cause posting problems. In many cases, you can use standard HTML tags that use angle-brackets instead of those listed, but then you're subject to Expression Engine bugs.


To make text bold, surround it with [b][/b], or [strong][/strong].

To make text italic, surround it with [i][/i] or [em][/em].

To make an external link to a site http://foo.com with the anchor text bar, type [url="http://foo.com"]bar[/url]

There is an (amusing? irritating?) bug in Expression Engine (really, a misguided security scheme) that makes it impossible to post any HTML tag that uses angle-brackets around text containing any of the forbidden words ("script," "style," "object," "embed," and "applet"). Thus, typing <a href="http://snltranscripts.jt.org/99/99pcowbell.phtml">More cowbell!</a>, while totally valid HTML, will not create a hyperlink on BTF. Also, no URL inside an <a> tag can contain a space. For these reasons, the square-bracketed tags are recommended rather than the standard HTML <a> tags.

Before a system upgrade on August 23, 2005, a separate Expression Engine bug caused any link containing an ampersand to break. People might think it odd that an ampersand causes problems, but the ampersand is actually a very important character in URLs; this bug breaks almost all links to espn.com, mlb.com, eBay, and Yahoo news. To post links that include ampersands, Primates had to use TinyUrl (or something similar). A link descrambler was created solely for dealing with this bug.

To link to a particular post in a BTF thread, put a pound-sign and the post-number (not the number within that page/thread, but the large number in parentheses) at the end of the URL for that age. For example: http://www.baseballthinkfactory.org/files/community/discussion/35907/#1838539.

To use a strikethrough, type [strike]text[/strike].

To underline, type [u]text[/u].

To make fixed format text when you're trying to post columns of numbers (now why would anyone want to do that when talking about baseball?) surround the text with [pre][/pre] tags. Try setting up the table in a text editor with a fixed-pitch font (notepad.exe on Windows, or vi or Emacs on *nix) and then pasting it in. Text formatted with "tab" characters will still fail to render consistently using this method.

When in doubt, find a thread that has the formatting you want, and view the source (the "Source" or "Page Source" item on the "View" menu). Then replace the angle-brackets with square brackets.

and if all of this fails...just contact trevise :-) ......) (...or Repoz)

If trevise :-) ... is unavailable, feel free to use Option J.

Personal tools