Back to the main page.

Bug 2434 - Suggested further reading: lists with OR instead of AND?

Reported 2014-01-09 10:02:00 +0100
Modified 2014-03-12 12:19:54 +0100
Product: FieldTrip
Component: documentation
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Jörn M. Horschig
Depends on:
See also:

Jörn M. Horschig - 2014-01-09 10:02:18 +0100

In at the bottom the following related FAQs are linked: {{topic>faq +preprocessing +timelock &list}} This results in one FAQ only. Wouldn't it be more wise to link all preprocessing FAQs and all timelock FAQs instead of those which are tagged with preprocessing AND timelock (making this a logical OR rather than a logical AND)?

Robert Oostenveld - 2014-01-09 17:15:56 +0100

Please look here for the documentation of the plugin that we use for it. It does seem to support both AND and OR. But I don't know whether you can make faq AND preprocessing OR timelock work as faq AND (preprocessing OR timelock) or whether that would be parsed as (faq AND preprocessing) OR timelock

Jörn M. Horschig - 2014-01-10 09:17:33 +0100

From that Wiki: Example: {{topic>tag1 -tag2}} – Lists all pages tagged with tag1 but not with tag2. {{topic>tag1 +tag2}} – Lists all pages tagged with tag1 and tag2. {{topic>tag1 tag2}} – Lists all pages tagged with either tag1 or tag2 or both. I tested on our wiki: {{topic>tag1 tag2 +tag3}} is ((tag1 OR tag2) AND tag3). So we can use {{topic>timelock preprocessing +faq&list}} It does *not* work if +faq is put upfront, it needs to be last. +tag apparantly inherently terminates a statement, so tag1 +tag2 tag3 is equivalent to ((tag1 AND tag2)OR tag 3) while +tag tag2 tag3 is (AND tag1 OR tag2 or tag3). Tests with four tags seem to support this, though I did not test in more detail (and because the lists got really long ^^) In conclusion: {{topic>tag1 tag2 tag3 ... +faq&list}} can be used.

Jörn M. Horschig - 2014-01-22 09:57:10 +0100

Some tutorials did not have a FAQ or example list, changed accordingly on most locations. Some tutorials just do not have FAQs, e.g. TMS+EEG tutorial and the spike tutorials. also see bug 2446 which I encountered during my endeavor