NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{scrollbar:icons=false}

Selectable Lists Created with the List-data and List-options Macros

The list-data macro generates a selectable list of options. One or more may be selected in Edit view. The last option selected appears on the page. By default, the first item is selected.

The general form is:

Code Block
{list-data:Name|type=[select, check]|multiple=[true, false]}
{xxx-options}
{list-data}

Two examples of the list-data and list-options macros are provided on this page as follows:

Table of Contents
minLevel2

The list-data macro is also used with the attachments, content, and user-options macros. Refer to Selectable Lists Created with Scaffolding Macros (Attachments, Content, Users).

More information

Plain List

The following generates a list of numbers from which to select.

Code Block
{list-data:List}
{list-option}One{list-option}
{list-option}Two{list-option}
{list-option}Three{list-option}
{list-data}

The output shows the last item selected.

List Data
nameList
separatornewline

One

One


Two

Two


Three

Three

Wikified List

The following generates a list of emoticons from which to select.

Code Block
{list-data:Emoticon}
{list-option:Star}(*){list-option}
{list-option:Plus}(+){list-option}
{list-option:Minus}(-){list-option}
{list-data}

The output shows the last item selected.

List Data
nameEmoticon
separatornewline

Star


Plus


Minus

Wiki Markup
{scrollbar:icons=false}