Difference between revisions of "User:Alexey123"

From BASAbaliWiki
Line 1: Line 1:
Templates/Forms:
+
This page contains various examples of ASK queries supplied with similar API examples:
* [[:Template:Biography]] - [[:Form:Biography]]
+
 
** [[:Template:Biography/Example]]
+
== Fetch 10 balinese words sorted by first char ==
* [[:Template:Book]] - [[:Form:Book]]
+
 
* [[:Template:Environmental Initiative]] - [[:Form:Environmental Initiative]]
+
{{#ask: [[Category:Balinese Words]]
* [[:Template:Children Book]] - [[:Form:Children Book]]
+
|format=ul
* [[:Template:Folktale]] - [[:Form:Folktale]]
+
|limit=10
* [[:Template:Comics]] - [[:Form:Comics]]
+
|sort=Word title char
* [[:Template:Place]] - [[:Form:Place]]
+
|order=asc
* [[:Template:Lontar]] - [[:Form:Lontar]]
+
|searchlabel=
* [[:Template:Literature]] - [[:Form:Literature]]
+
}}
* [[:Template:Holiday]] - [[:Form:Holiday]]
+
 
* [[:Template:PageSponsor]]
+
<pre>
 +
API: https://dictionary.basabali.org/w/api.php?action=ask&format=json&query=[[Category:Balinese%20Words]]|limit=10|sort=Word%20title%20char|order=asc
 +
</pre>
 +
 
 +
== Fetch 10 balinese words with specific first character ==
 +
 
 +
{{#ask: [[Category:Balinese Words]] [[Word title char::A]]
 +
|format=ul
 +
|limit=10
 +
|sort=Word title char
 +
|order=asc
 +
|searchlabel=
 +
}}
 +
 
 +
<pre>
 +
API: https://dictionary.basabali.org/w/api.php?action=ask&format=json&query=[[Category:Balinese Words]] [[Word title char::A]]|limit=10|sort=Word%20title%20char|order=asc
 +
</pre>
 +
 
 +
== Fetch 10 balinese words with specific first characters (A or B) ==
 +
 
 +
{{#ask: [[Category:Balinese Words]] [[Word title char::A||B]]
 +
|format=ul
 +
|limit=10
 +
|sort=Word title char
 +
|order=asc
 +
|searchlabel=
 +
}}
 +
 
 +
<pre>
 +
API: https://dictionary.basabali.org/w/api.php?action=ask&format=json&query=[[Category:Balinese Words]] [[Word title char::A||B]]|limit=10|sort=Word%20title%20char|order=asc
 +
</pre>

Revision as of 11:27, 19 September 2019

This page contains various examples of ASK queries supplied with similar API examples:

Fetch 10 balinese words sorted by first char[edit]

API: https://dictionary.basabali.org/w/api.php?action=ask&format=json&query=[[Category:Balinese%20Words]]|limit=10|sort=Word%20title%20char|order=asc

Fetch 10 balinese words with specific first character[edit]

API: https://dictionary.basabali.org/w/api.php?action=ask&format=json&query=[[Category:Balinese Words]] [[Word title char::A]]|limit=10|sort=Word%20title%20char|order=asc

Fetch 10 balinese words with specific first characters (A or B)[edit]

API: https://dictionary.basabali.org/w/api.php?action=ask&format=json&query=[[Category:Balinese Words]] [[Word title char::A||B]]|limit=10|sort=Word%20title%20char|order=asc