More Serckit Tags
In addition to being able to control the spacing and size of text on the page through the formatting menu, there are number of square bracket tags that can be used to achieve other formatting effects:
- [br clear] makes a line break that forces text to be below any preceeding material (useful for keeping text below, rather than next to, a narrow image).
- The [pullquote] tag indicates the beginning of an extended 'aside' (providing useful information outside the normal flow of the text). The aside should be ended with a [end pullquote] tag. Note that [context] gives exactly the same results as [pullquote].
- Similarly [bigfirstline] can be used at the start of a paragraph to cause the first line of the following text to be extra large--a handy visual effect for drawing folks into the start of a long stretch of text. As you might guess the paragraph you start this way should be ended with a [end bigfirstline]
- If you need a special character like a ° or a ± you'll can either figure out how to type that character directly into Serckit or you can use the entity tag. In the later case you'll need to look up the cryptically named 'character entity code' in a table like this. Use the decimal code you find in this table in a tag like this [entity 177] to get the ± sign. A more complete but more cryptic list is also available.
- You can obtain en dashes and em dashes by using either 2 or 3 consecutive hyphens. Learn more about using dashes appropriately.
- You can make very small text (for captions and the like) with [small] and [end small] tags Or slightly larger text with [mediumsmall].
- The [hidden 'text'] tag, and it's counter part [end hidden] are used to surround text that we'd like to have hidden except when the user explicitly wants to see it. It creates a single link labeled 'Show text' (where the word text is replaced with whatever 'text' you put between the single quotes in the starting tag). When the link is clicked it expands to reveal everything between the hidden tags as well as a link to hide the material again. You can optionally cause the word Show to be left off, the small 'twiddle' triangle to be left off, and also cause the text to be shown (but still hide-able) when the page first loads by including the omit_show, no_twiddle and show_at_start flags: [hidden 'Click Here' omit_show show_at_start no_twiddle]
You can also add a unique id number to a hidden tag --any 3 digit number will do as long as it isn't already used on a hidden tag within that page: [hidden 238 'text'] This allows the open/closed state to be remembered for a given users across a session (so that if they leave a page and come back it will have retained it's state. It also allows you to construct urls that point to a page with that hidden block already open. For example if your url is 'index.html' and the id you've chosen is '238' then the url:
Will lead people to that page with that particular hidden tag already set open.
- The [fadebox 200] tag achieves a similar effect. When placed at the beginning of a section of content (the end of which should be marked with an [end] tag) it will cause only the first bit of the text show (limited to area 200 pixels high). The content below that will be faded out and a 'show more' button will be added which toggles the rest of the content into view. You can adjust how much of the content is initially visible by changing the '200' to a different number (height in pixels). This is useful for long sections of text where you want to show the lead-in text but not take up all the space for the for the full text.
- The [definition 'text'] tag, and it's counter part [end definition ]allow you to create a bit of text (between the two tags) that pops-up when people hold their mouse over the 'text' in the initial tag. Useful for unobtrusively adding definitions of unfamiliar terms into the page.
- The [lang 'es'] tag, and it's counter part [end lang ] should be used to surround sections of text that aren't in english. Use the two letter abbreviation to indicate the language used within the tags.
- The [tooltip] tag allows you to create a pop-up box that displays arbitrary content. The simple form looks like: [tooltip] When you hover over this text [tooltipcontent]This content will be shown[end].While the default behavior is to activate the pop-up when the target content (whatever is between the initial tooltip tag and the tooltipcontent tag) is hovered over with the mouse, it's also possible to require a click of the mouse to the tooltip appear with [tooltip click]. If the tooltip content will contain elements that need to be interacted with (e.g. checkboxes) you'll need to add the 'interactive' flag to keep the tooltip from disappearing when clicked. You can also control how the tooltip is positioned using 'left', 'right', 'top' or 'bottom', and you can alter the width of the tooltip by indicating a width in pixels. The correct order for using all these options looks like: [tooltip click interative bottom 300].
- The [context] tag, and it's counter part [end context] allow you to create shaded boxes around text.
The shape and color of the box is defined in the chrome. Most sites have more than one context box (context2, context3) each with its own style. In most cases context6 is an actual pullquote style with stylized quotation marks and large text.
It's possible to directly enter the html tags that control formatting. While all of these formatting options are available through the normal interface here is a list of the html tags that the system will accept when in raw html mode.