2015-02-03 19:29:25 +00:00
|
|
|
created: 20150203173506000
|
|
|
|
list-before: $:/core/ui/ViewTemplate/body
|
2023-06-03 13:27:59 +00:00
|
|
|
modified: 20230602181119360
|
2022-03-16 12:38:49 +00:00
|
|
|
tags: $:/tags/ViewTemplate
|
2024-02-14 16:20:32 +00:00
|
|
|
code-body: yes
|
2022-03-16 12:38:49 +00:00
|
|
|
title: $:/editions/tw5.com/operator-template
|
2015-02-03 19:29:25 +00:00
|
|
|
|
|
|
|
\define .op-place()
|
|
|
|
<$macrocall $name=".if"
|
2024-02-14 16:20:32 +00:00
|
|
|
cond="""$(op-name)$"""
|
|
|
|
then="<<.place '$(op-name)$'>> = "
|
|
|
|
else=""/>
|
2015-02-03 19:29:25 +00:00
|
|
|
\end
|
|
|
|
|
|
|
|
\define .op-row()
|
|
|
|
<$macrocall $name=".if"
|
2024-02-14 16:20:32 +00:00
|
|
|
cond="""$(op-body)$"""
|
|
|
|
then="""<tr><th align="left">$(op-head)$</th><td><<.op-place>>$(op-body)$</td></tr>"""
|
|
|
|
else=""/>
|
2015-02-03 19:29:25 +00:00
|
|
|
\end
|
|
|
|
|
2024-02-14 16:20:32 +00:00
|
|
|
\whitespace trim
|
2022-03-16 12:38:49 +00:00
|
|
|
|
2024-02-14 16:20:32 +00:00
|
|
|
<$list filter="[all[current]tag[Filter Operators]]">
|
|
|
|
<$let op-head="" op-body="" op-name="">
|
|
|
|
<table class="doc-table before-tiddler-body">
|
|
|
|
<!-- purpose -->
|
|
|
|
<$let op-head="purpose" op-body={{!!op-purpose}}>
|
|
|
|
<<.op-row>>
|
|
|
|
</$let>
|
|
|
|
<!-- input -->
|
|
|
|
<$let op-head="[[input|Filter Syntax]]" op-body={{!!op-input}}>
|
|
|
|
<<.op-row>>
|
|
|
|
</$let>
|
|
|
|
<!-- input negated -->
|
|
|
|
<$let op-head="`!` input" op-body={{!!op-neg-input}}>
|
|
|
|
<<.op-row>>
|
|
|
|
</$let>
|
|
|
|
<!-- suffix -->
|
|
|
|
<$let op-head="[[suffix|Filter Step]]" op-body={{!!op-suffix}} op-name={{!!op-suffix-name}}>
|
|
|
|
<<.op-row>>
|
|
|
|
</$let>
|
|
|
|
<!-- parameter -->
|
|
|
|
<$let op-head="[[parameter|Filter Parameter]]" op-body={{!!op-parameter}} op-name={{!!op-parameter-name}}>
|
|
|
|
<<.op-row>>
|
|
|
|
</$let>
|
|
|
|
<!-- output -->
|
|
|
|
<$let op-head="output" op-body={{!!op-output}}>
|
|
|
|
<<.op-row>>
|
|
|
|
</$let>
|
|
|
|
<!-- output negated -->
|
|
|
|
<$let op-head="`!` output" op-body={{!!op-neg-output}}>
|
|
|
|
<<.op-row>>
|
|
|
|
</$let>
|
|
|
|
</table>
|
|
|
|
<p>
|
|
|
|
[[Learn more about how to use Filters|Filters]]
|
|
|
|
</p>
|
2022-03-16 12:38:49 +00:00
|
|
|
|
2024-02-14 16:20:32 +00:00
|
|
|
<$list filter="[all[current]has[from-version]]" variable="listItem">
|
|
|
|
<$macrocall $name=".from-version" version={{!!from-version}}/>
|
|
|
|
</$list>
|
|
|
|
</$let>
|
2015-02-03 19:29:25 +00:00
|
|
|
</$list>
|