PI: ref
ref produce a simple ref-element and introduce it to a reflist.
See also: reflist
<?_wxt ref uri="" fields="" listname="" category="" display="" delimiter=""?>
The parameters are:
delimiter (optional) | Alternative to | as a list separator in lists in this element. Default is | |
fields (mandatory) | A delimiter-separated list of simple text strings. |
uri (optional) | An uri to the resource we want to link to, if any. |
listname (optional) | A delimiter-separated list of names of the lists we want to include this reference in. The name _footnote is reckognized as the name of the page, and should be matched with listname _footnote in a reflist-PI on the same page, if you want to collect all references at a page in a list. Default is "_main". |
category (optional) | The category of the ref. You are free to name categories at will. Default is "*". |
display (optional) | This controls the way the reference is displayed. Possible values are:
|
Some examples:
<?_wxt ref uri="http://www.w3schools.com/htmldom/" fields="W3org|HTML DOM Tutorial" category="DOM"?> <?_wxt reflist listname="_main" category="DOM"?> <?_wxt ref uri="http://www.w3schools.com/htmldom/" listname="_footnote|_main" fields="HTML DOM Tutorial" category="DOM"?> <?_wxt reflist listname="_footnote" category="DOM"?> <?_wxt ref fields="Håkon Wium Lie & Bert Bos| Cascading Style Sheets| Addison Wesley| 1999| 0-201-59625-3| Cover CSS1 and CSS2" category="book" display="simple" listname="_footNote|_main"?>
The involved style-classes in a reference and a referenselist are:
- external mark a reference as external
- reflist_ul styling the ul-element in a reflist.
- reflist_li styling the li-element in a reflist.
- nolink_span styling a simple [] .
- ref_field_n where n is a number in the range [0..m], m is the maximum number of fields you plan to use in a ref field.
- ref_link styling all links in a reference list.
- external styling an absolute link in a reference list.
See Styling