mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-04 23:39:57 +00:00
78 lines
1.7 KiB
Plaintext
78 lines
1.7 KiB
Plaintext
|
created: 20150203173506000
|
||
|
modified: 20150203181725000
|
||
|
title: $:/editions/tw5.com/operator-template
|
||
|
tags: $:/tags/ViewTemplate
|
||
|
list-before: $:/core/ui/ViewTemplate/body
|
||
|
|
||
|
\define .op-place()
|
||
|
<$macrocall $name=".if"
|
||
|
cond="""$(op-name)$"""
|
||
|
then="<<.place '$(op-name)$'>> = "
|
||
|
else=""/>
|
||
|
\end
|
||
|
|
||
|
\define .op-row()
|
||
|
<$macrocall $name=".if"
|
||
|
cond="""$(op-body)$"""
|
||
|
then="""<tr><th align="left">$(op-head)$</th><td><<.op-place>>$(op-body)$</td></tr>"""
|
||
|
else=""/>
|
||
|
\end
|
||
|
|
||
|
<$set name="op-head" value="">
|
||
|
<$set name="op-body" value="">
|
||
|
<$set name="op-name" value="">
|
||
|
<$list filter="[all[current]tag[Filter Operators]]">
|
||
|
<table class="doc-table before-tiddler-body">
|
||
|
<!-->
|
||
|
<$set name="op-head" value="purpose">
|
||
|
<$set name="op-body" value={{!!op-purpose}}>
|
||
|
<<.op-row>>
|
||
|
</$set>
|
||
|
</$set>
|
||
|
<!-->
|
||
|
<$set name="op-head" value="[[input|Filter Syntax]]">
|
||
|
<$set name="op-body" value={{!!op-input}}>
|
||
|
<<.op-row>>
|
||
|
</$set>
|
||
|
</$set>
|
||
|
<!-->
|
||
|
<$set name="op-head" value="`!` input">
|
||
|
<$set name="op-body" value={{!!op-neg-input}}>
|
||
|
<<.op-row>>
|
||
|
</$set>
|
||
|
</$set>
|
||
|
<!-->
|
||
|
<$set name="op-head" value="[[suffix|Filter Step]]">
|
||
|
<$set name="op-body" value={{!!op-suffix}}>
|
||
|
<$set name="op-name" value={{!!op-suffix-name}}>
|
||
|
<<.op-row>>
|
||
|
</$set>
|
||
|
</$set>
|
||
|
</$set>
|
||
|
<!-->
|
||
|
<$set name="op-head" value="[[parameter|Filter Parameter]]">
|
||
|
<$set name="op-body" value={{!!op-parameter}}>
|
||
|
<$set name="op-name" value={{!!op-parameter-name}}>
|
||
|
<<.op-row>>
|
||
|
</$set>
|
||
|
</$set>
|
||
|
</$set>
|
||
|
<!-->
|
||
|
<$set name="op-head" value="output">
|
||
|
<$set name="op-body" value={{!!op-output}}>
|
||
|
<<.op-row>>
|
||
|
</$set>
|
||
|
</$set>
|
||
|
<!-->
|
||
|
<$set name="op-head" value="`!` output">
|
||
|
<$set name="op-body" value={{!!op-neg-output}}>
|
||
|
<<.op-row>>
|
||
|
</$set>
|
||
|
</$set>
|
||
|
<!-->
|
||
|
</table>
|
||
|
</$list>
|
||
|
</$set>
|
||
|
</$set>
|
||
|
</$set>
|