 TWiki Web > TWikiVariables > VarTOPICLIST
 TWiki Web > TWikiVariables > VarTOPICLIST$topic variable gets expanded to the topic name, $marker to marker parameter where topic matches selection, and $web to the name of the web, or any of the standard FormatTokens.
%TOPICLIST{"format" ...}%
| Parameter: | Description: | Default: | 
|---|---|---|
| "format" | Format of one line, may include $web(name of web),$topic(name of the topic),$marker(which expands tomarkerfor the item matchingselectiononly) | "$topic" | 
| format="format" | (Alternative to above) | "$topic" | 
| separator=", " | line separator | "$n"(new line) | 
| marker="selected" | Text for $markerif the item matchesselection | "selected" | 
| selection="TopicA, TopicB" | Current value to be selected in list | (none) | 
| web="Name" | Name of web | Current web | 
%TOPICLIST{"   * $web.$topic"}% creates a bullet list of all topics
%TOPICLIST{separator=", "}% creates a comma separated list of all topics
%TOPICLIST{" <option>$topic</option>"}% creates an option list (for drop down menus)
<select>%TOPICLIST{" <option $marker value='$topic'>$topic</option>" separator=" " selection="%TOPIC%"}%</select> creates an option list of web topics with the current topic selected
 Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.