1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00

renamed and documentation

* renamed to all lowercase
* added documentation
* added examples
This commit is contained in:
Tobias Beer 2015-02-03 14:50:16 +01:00
parent 8b771555a5
commit 8746e1ede0
3 changed files with 25 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*\
title: $:/core/modules/filters/getIndex.js
title: $:/core/modules/filters/getindex.js
type: application/javascript
module-type: filteroperator

View File

@ -0,0 +1,7 @@
created: 20150203140000000
modified: 20150203140000000
tags: [[getindex Operator]] [[Operator Examples]]
title: getindex Operator (Examples)
<<.operator-example 1 "[[$:/palettes/Vanilla]getindex[background]]" "returns the value at index ''background'' of the [[DataTiddler|DataTiddlers]] [[$:/palettes/Vanilla]]">>
<<.operator-example 2 "[tag[$:/tags/Palette]getindex[background]]" "returns all background colors defined in any of the ColourPalettes">>

View File

@ -0,0 +1,17 @@
created: 20150203140000000
modified: 20150203140000000
tags: [[Filter Operators]] [[Field Operators]]
title: getindex Operator
caption: getindex
purpose: returns the value at an index of DataTiddlers
<$macrocall $name=".operator-def"
input="a [[selection of titles|Title Selection]]"
parameter="the name of an [[index|DataTiddlers]]"
paramName="i"
output="the values at index <<.place f>> in each of the input titles"
/>
Each input title is tested in turn. If the corresponding tiddler is a [[DataTiddler|DataTiddlers]] and has the index <<.place i>> defined, its value is appended to the output.
<<.operator-examples "getindex">>