Query form template ask property for value1 or value 2

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Query form template ask property for value1 or value 2

Phil Legault-2
I'm trying to figure out in a query form template to search 1 value or another from a property.


{{#ask:[[Category:example]][[property::~*{{{property|}}}* || ~*{{{property|}}}* || ... ]]
|?Bproperty
}}


Thank you,

Phil
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Query form template ask property for value1 or value 2

Phil Legault-2


Actually it should be an arraymap

{{#ask:[[Category:example]]{{#arraymap:{{{property|}}}|,|x|[[Has Property::x]]|}}
|?Has Property
}}

Still not working
________________________________
From: Phil Legault <[hidden email]>
Sent: Friday, March 31, 2017 6:47 AM
To: semediawiki-user
Subject: [Semediawiki-user] Query form template ask property for value1 or value 2

I'm trying to figure out in a query form template to search 1 value or another from a property.


{{#ask:[[Category:example]][[property::~*{{{property|}}}* || ~*{{{property|}}}* || ... ]]
|?Bproperty
}}


Thank you,

Phil
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Semediawiki-user Info Page - SourceForge<https://lists.sourceforge.net/lists/listinfo/semediawiki-user>
lists.sourceforge.net
To see the collection of prior postings to the list, visit the Semediawiki-user Archives. Using Semediawiki-user: To post a message to all the list ...



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Query form template ask property for value1 or value 2

Cavila Contrafibularity
Hi Phil,

OR is your friend. For example:

{{#ask: {{#arraymap:{{{value|}}}|,|xx|[[Category:example]]  [[Property::xx]]|
OR
}}
|?Has Property
}}


("xx" is safer than "x", by the way.)


Best,

Cav

________________________________
From: Phil Legault <[hidden email]>
Sent: 31 March 2017 12:11
To: semediawiki-user
Subject: Re: [Semediawiki-user] Query form template ask property for value1 or value 2



Actually it should be an arraymap

{{#ask:[[Category:example]]{{#arraymap:{{{property|}}}|,|x|[[Has Property::x]]|}}
|?Has Property
}}

Still not working
________________________________
From: Phil Legault <[hidden email]>
Sent: Friday, March 31, 2017 6:47 AM
To: semediawiki-user
Subject: [Semediawiki-user] Query form template ask property for value1 or value 2

I'm trying to figure out in a query form template to search 1 value or another from a property.


{{#ask:[[Category:example]][[property::~*{{{property|}}}* || ~*{{{property|}}}* || ... ]]
|?Bproperty
}}


Thank you,

Phil
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Semediawiki-user Info Page - SourceForge<https://lists.sourceforge.net/lists/listinfo/semediawiki-user>
lists.sourceforge.net
To see the collection of prior postings to the list, visit the Semediawiki-user Archives. Using Semediawiki-user: To post a message to all the list ...


Semediawiki-user Info Page - SourceForge<https://lists.sourceforge.net/lists/listinfo/semediawiki-user>
Semediawiki-user Info Page - SourceForge<https://lists.sourceforge.net/lists/listinfo/semediawiki-user>
lists.sourceforge.net
To see the collection of prior postings to the list, visit the Semediawiki-user Archives. Using Semediawiki-user: To post a message to all the list ...


lists.sourceforge.net
To see the collection of prior postings to the list, visit the Semediawiki-user Archives. Using Semediawiki-user: To post a message to all the list ...



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Semediawiki-user Info Page - SourceForge<https://lists.sourceforge.net/lists/listinfo/semediawiki-user>
lists.sourceforge.net
To see the collection of prior postings to the list, visit the Semediawiki-user Archives. Using Semediawiki-user: To post a message to all the list ...


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Query form template ask property for value1 or value 2

Phil Legault-2
Thank you,

Now suppose I have an< or second or 3rd property > the same way?



________________________________
From: Cavila <[hidden email]>
Sent: Friday, March 31, 2017 7:27 AM
To: Phil Legault; semediawiki-user
Subject: Re: [Semediawiki-user] Query form template ask property for value1 or value 2


Hi Phil,

OR is your friend. For example:

{{#ask: {{#arraymap:{{{value|}}}|,|xx|[[Category:example]]  [[Property::xx]]|
OR
}}
|?Has Property
}}


("xx" is safer than "x", by the way.)


Best,

Cav

________________________________
From: Phil Legault <[hidden email]>
Sent: 31 March 2017 12:11
To: semediawiki-user
Subject: Re: [Semediawiki-user] Query form template ask property for value1 or value 2



Actually it should be an arraymap

{{#ask:[[Category:example]]{{#arraymap:{{{property|}}}|,|x|[[Has Property::x]]|}}
|?Has Property
}}

Still not working
________________________________
From: Phil Legault <[hidden email]>
Sent: Friday, March 31, 2017 6:47 AM
To: semediawiki-user
Subject: [Semediawiki-user] Query form template ask property for value1 or value 2

I'm trying to figure out in a query form template to search 1 value or another from a property.


{{#ask:[[Category:example]][[property::~*{{{property|}}}* || ~*{{{property|}}}* || ... ]]
|?Bproperty
}}


Thank you,

Phil
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Semediawiki-user Info Page - SourceForge<https://lists.sourceforge.net/lists/listinfo/semediawiki-user>
lists.sourceforge.net
To see the collection of prior postings to the list, visit the Semediawiki-user Archives. Using Semediawiki-user: To post a message to all the list ...


Semediawiki-user Info Page - SourceForge<https://lists.sourceforge.net/lists/listinfo/semediawiki-user>
Semediawiki-user Info Page - SourceForge<https://lists.sourceforge.net/lists/listinfo/semediawiki-user>
lists.sourceforge.net
To see the collection of prior postings to the list, visit the Semediawiki-user Archives. Using Semediawiki-user: To post a message to all the list ...


lists.sourceforge.net
To see the collection of prior postings to the list, visit the Semediawiki-user Archives. Using Semediawiki-user: To post a message to all the list ...



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Semediawiki-user Info Page - SourceForge<https://lists.sourceforge.net/lists/listinfo/semediawiki-user>
lists.sourceforge.net
To see the collection of prior postings to the list, visit the Semediawiki-user Archives. Using Semediawiki-user: To post a message to all the list ...


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Loading...