NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated link and made it easier to find for future updates. Added exit disclaimer icon.

Scrollbar
iconsfalse

Page info
title
title

Wiki Markup
{scrollbar:icons=false}

...

The list - data macro generates a selectable list. The list option macro generates the list of options. One or more may be selected in the Edit Contents view. The last option selected appears on the page. By ; 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 option macros are provided on this page as follows:

Table of Contents
minLevel2

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

More information

For more information on the list data macro, refer to the following page:

https://docs.servicerocket.com/scaffolding/macro-reference/list-data

Multiexcerpt include
MultiExcerptNameExitDisclaimer
nopaneltrue
PageWithExcerptwikicontent:Exit Disclaimer to Include

Plain List

The following example generates a list of numbers from which to select. The general form is

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 selectedThe list data macro generates a list from which to select. The list option macro generates a list of numbers. In the Edit Contents view select a number to display. The last number selected is shown.

List Data
nameList
separatornewline
One

One

Two

Two

Three

Three

Wikified List

The following example generates a list of emoticons from which to select. The general form is

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 selectedThe list data macro generates a list from which to select. The list option macro generates a list of emoticons. In the Edit Contents view select an emoticon to display. The last emoticon selected is shown.

{scrollbar:icons=false}
List Data
nameEmoticon
separatornewline
Star

Plus

Minus

Wiki Markup

Scrollbar
iconsfalse