Skip to content

Commit

Permalink
Update function Operator (Examples).tid
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
DesignThinkerer authored Dec 3, 2024
1 parent 164e7fd commit 2468776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editions/tw5.com/tiddlers/function Operator (Examples).tid
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The function `get.sourceField` use the operator <<.olink shadowsource>> to get t

<<.operator-example 3 "[function[get.sourceFields],<subTiddler>]" "get the original list of fields.">>

The function `get.sourceFields` use the operator <<.olink shadowsource>> to get the title of the plugin in which the shadow tiddler is defined. The subsequent [[Map Filter Run Prefix]] iterate over the plugin title, and use the operator <<.olink subtiddlerfields>> to output every fields of the shadow tiddler <<subTiddler>>, whose title is retrieven using a [[TextReference]].
The function `get.sourceFields` use the operator <<.olink shadowsource>> to get the title of the plugin in which the shadow tiddler is defined. The subsequent [[Map Filter Run Prefix]] iterate over the plugin title, and use the operator <<.olink subtiddlerfields>> to output every fields of the shadow tiddler <<subTiddler>>, whose title is retrieved using a [[TextReference]].

<<.operator-example 4 "[function[has.diff],<subTiddler>,[text]]" "compare the original value of the field <<.field text>> with the value set in the overriding tiddler. If the value is different, output the overriden value">>

Expand All @@ -60,4 +60,4 @@ The function `diff.fields` use the the function `get.sourceFields` to list every
<$diff-text source={{{ [get.sourceField<subTiddler>,<field>] }}} dest={{{ [get.destField<subTiddler>,<field>] }}} >
<code><<field>></code>: <<diff-count>> difference<%if [<diff-count>!match[1]]%>s<%endif%>
</$diff-text>
</$list>""">>
</$list>""">>

0 comments on commit 2468776

Please sign in to comment.