h1. How do I change the appearance of.. [todo]

Most tags that display content with markup support some (though not necessarily all) of the following attributes:

  • wraptag - a tag that wraps around content; typically @ul@ by default
  • class - CSS class applied to the wraptag; typically uses the tag name by default
  • break - a tag used to wrap or separate each item in a list (of articles, links, etc); typically @li@ by default
  • breakclass - CSS class applied to each break tag

It’s not necessary to include < and > in these attributes. If you use the tag names only, Textpattern will handle common self-closing tags correctly. For example:

bq. @@

produces something like this, with @
@ tags following each item:

bq. @<div class="section_list">@ @section1
@ @section2
@ @</div>@

While this:

bq. @@

produces @<li>@ tags that surround each item:

bq. @<ol class="section_list">@ @<li>section1</li>@ @<li>section2</li>@ @</ol>@

A detailed list of tags and their supported attributes can be found in the “Textpattern Tag Reference”:http://textpattern.net/wiki/index.php?title=Category:Tag_Reference. The “Attribute Cross Reference”:http://textpattern.net/wiki/index.php?title=Attributes_Cross-reference lists the tags that support each attribute.