aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 

4.174 - [s] Built-In

Mnemonic aid: s for Style

See also:  [ghost] ,  [glos] ,  [gstyle] ,  [listg] ,  [locs] ,  [spage]  and  [style] 

Also, there is more information on styles beginning here.

This built-in invokes a style. sep= defaults to a comma, and is only meaningful when multiple contents are provided.  [s styleName]  is functionally the same syntax as using  {styleName} .

There are two difference beyond  [s styleName]  being slightly more wordy than  {stylename} .

  1. When using  {styleName} , the style names are fixed, they can't be defined by your code. But when using  [s styleName] , the styleName (one or many) is a parameter, so you can fill it in programatically if you like. This can provide a great deal of flexibility.
  2. When using the form  {styleName content} , you can separate the styleName from the content by either a space or a newline. It is strictly a cosmetic difference.

You can invoke multiple styles on multiple contents, or on single contents as shown in the syntax and examples below, but the number of styles and the number of contents must match if there are multiple contents.

[s (sep=X,)stylename(,styleNameN) (styleContent)(XstyleContentN)]

[style boldenx <b>[b]</b>]
[style italex <i>[b]</i>]
[s boldenx foo]
[local mystyle boldenx]
[s [v mystyle] pretty bold, eh?]
[s boldenx,italex boldly,slantly]
[s italex,boldenx SingleContent]
[s sep=|,boldenx,italex emboldly|emslantly]
{italex slanted}
{sep=^,boldenx,italex deedle^doodle}
{italex,boldenx SingleContent}

<b>pretty bold, eh?</b>
foo pretty bold, eh? boldlyslantly SingleContentSingleContent emboldlyemslantly slanted deedledoodle SingleContentSingleContent

Other built-ins used here:  [b] ,  [local] ,  [style]  and  [v] 

Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7