이 문서는 https://tiddlywiki.com/languages/ko-KR/에서 티들리위키의 정적 HTML 표현의 일부입니다

cycle Operator

2020년 11월 18일 오후 7:21
purposetoggle the titles specified in the first parameter in a cyclical manner
inputa list of items
parameterthe cycle operator accepts 1 or 2 parameters, see below for details
outputthe input list with the titles specified in the parameter toggled in a cyclical manner

Learn more about how to use Filters

Introduced in v5.1.23

The cycle operator requires at least one parameter.

[cycle[<titles>],[step-size]]
  • titles : a title list to toggle in the input list cyclically. If no title from the parameter is present in the input, the first title is added. If a title from the parameter is present in the input, it is replaced with the next title from the parameter. Note that all titles specified in this parameter should be unique.
  • step-size: (optional). Defaults to 1. Specifies the number of steps in the parameter list to move each time. Can be a negative number.

Tip
While the cycle operator interprets its first parameter as a list of titles to cycle through, the toggle Operator accepts an unlimited number of distinct parameters and offers similar functionality.

Examples