WikiTask Tutorial/Temperature table


Wolfgang Fahl

Freemarker template for Wiki table of triples[edit]

The id of this template is id='tripletable'

<#assign triples=tripleStore.getTriples()/>
== Triple table ==
{|class="wikitable sortable"
!subject!!predicate!!object
|-
<#list triples as triple>
| ${triple.subject} || ${triple.predicate} || ${triple.object}
|-
</#list>
|}

WikiTask for wikitable from temperature example[edit]

{{wikitask|cmd=runtemplate|input=temperature|template=tripletable|targetpage=WikiTask Tutorial/temperatureTable}}

runtemplate -> WikiTask Tutorial/temperatureTable

Expected result[edit]

{|class="wikitable sortable"
!subject!!predicate!!object
|-
| Temperature || today || cool
|-
| Temperature || yesterday || modest
|-
| Temperature || tomorrow || warm
|-
| Cloud || today || cloudy
|-
| Cloud || yesterday || partly
|-
| Cloud || tommorrow || sunny
|-
|}
subject predicate object
Temperature today cool
Temperature yesterday modest
Temperature tomorrow warm
Cloud today cloudy
Cloud yesterday partly
Cloud tommorrow sunny

SiDIF input for temperature example[edit]

This is some SiDIF input. It has the id='temperature'

Temperature today cool
Temperature yesterday modest
Temperature tomorrow warm
Cloud today cloudy
Cloud yesterday partly
Cloud tommorrow sunny
1
WikiTask Tutorial/Temperature table Wolfgang Fahl
🖨 🚪