TaskForSaid: Difference between revisions

From Openresearch
Jump to navigation Jump to search
Said (talk | contribs)
No edit summary
Said (talk | contribs)
No edit summary
Line 1: Line 1:
{{ #ask:[[IsA::Event]] {{#ifeq:{{#urlget:limit}}}} [[Ordinal::{{#urlget:ordinal|1}}]]  
{{ #ask:[[IsA::Event]] {{#ifeq:{{#urlget:limit}}}} [[Ordinal::{{#urlget:ordinal}}]]  
  |?Acronym
  |?Acronym
  |mainlabel=Event
  |mainlabel=Event

Revision as of 21:23, 8 April 2021

 AcronymEnd dateStart dateHas location cityOrdinal
3PGIC 20103PGIC 201018 February 201015 February 2010Krakow4
3dui 20103DUI 202021 March 201020 March 2010Waltham15
5GU 20175GU 20179 June 20178 June 2017Melbourne2
5GWN 20175GWN 201723 April 201721 April 2017Beijing1
AAAI 1980AAAI 198021 August 198018 August 1980Stanford1
AAAI 1982AAAI 198220 August 198218 August 1982Pittsburgh2
AAAI 1983AAAI 198326 August 198322 August 1983Washington3
AAAI 1984AAAI 198410 August 19846 August 1984Austin4
AAAI 1986AAAI 198615 August 198611 August 1986Philadelphia5
AAAI 1987AAAI 198717 July 198713 July 1987Seattle6
AAAI 1988AAAI 198826 August 198821 August 1988St. Paul7
AAAI 1990AAAI 19903 August 199029 July 1990Boston8
AAAI 1991AAAI 199119 July 199114 July 1991Anaheim9
AAAI 1992AAAI 199216 July 199212 July 1992San Jose10
AAAI 1993AAAI 199315 July 199311 July 1993Washington11
AAAI 1994AAAI 19944 August 198431 July 1994Seattle12
AAAI 1996AAAI 19968 August 19964 August 1996Portland13
AAAI 1997AAAI 199731 July 199727 July 1997Providence14
AAAI 1998AAAI 199830 July 199826 July 1998Madison15

<ul><li>"]]" is not a number.</li> <!--br--><li>Some use of "[[" in your query was not closed by a matching "]]".</li></ul>


Solution

1. this can be done by changing configuration parameters by the site administrators according to the configurations of the server. The maximum number of rows printed is set by the configuration parameter $smwgQMaxInlineLimit (500 by default) for setting the maximal number of rows ever printed by queries or the configuration parameter $smwgQMaxLimit (1000 by default) setting the maximal number of rows ever retrieved by queries in the "LocalSettings.php" file. The limit parameter will not normally help to increase the number beyond this limit.

2-4. please see the query above. Please use the following URL to pass limit and ordinal parameters (https://www.openresearch.org/mediawiki/index.php?title=TaskForSaid?limit=10?ordinal=1).

5. The issue is not clear. What is meant by hide [[Category:{{#urlget:field}}]] in the #ask queries? In addition, there is no ‘field’ in the above query. Anyway, #urlget: is used to get a parameter from the URL to assign it to a property. A default value is used to set the value if the URL does not contain this parameter. e.g., it should be [[Category:{{#urlget:field|chemistry}}]].

What improvements to that extension you could imagine?

The extension could support multi-value fields for the same parameter. e.g., consider the parameter city. If the user wants to retrieve conferences hold in only Berlin and Hannover, the parameter might be passed in the URL as ?city=Berlin, Hannover. The values then can be easily retrieved by .split(',') method.

Another code improvement: The code should handle the case of parameters like city[[0] and city[0]].