diff --git a/Wikiapi.js b/Wikiapi.js
index fc92694..6b8affa 100644
--- a/Wikiapi.js
+++ b/Wikiapi.js
@@ -1007,7 +1007,9 @@ function Wikiapi_SPARQL(SPARQL, options) {
// --------------------------------------------------------
/**
- *
+ * @description Tool function to access page list.
+ * Please refer to all supported types (search "get_list.type =").
+ *
* @example
const wiki = new Wikiapi;
diff --git a/docs/Wikiapi.html b/docs/Wikiapi.html
index 0c35700..08ec5bb 100644
--- a/docs/Wikiapi.html
+++ b/docs/Wikiapi.html
@@ -237,7 +237,7 @@ (static) <
Source:
@@ -380,7 +380,7 @@ category
Source:
@@ -600,7 +600,7 @@ conver
Source:
@@ -1084,7 +1084,7 @@ deleteSource:
@@ -1296,7 +1296,7 @@ downloadSource:
@@ -1551,7 +1551,7 @@ editSource:
@@ -2039,7 +2039,7 @@ for_each
Source:
@@ -2318,7 +2318,7 @@ g
Source:
@@ -2506,7 +2506,7 @@ listenSource:
@@ -4328,7 +4328,7 @@ redirec
Source:
@@ -4538,7 +4538,7 @@ redirec
Source:
@@ -4748,7 +4748,7 @@ reg
Source:
@@ -5004,7 +5004,7 @@ searchSource:
@@ -5215,7 +5215,7 @@ Source:
@@ -5317,7 +5317,7 @@ site_nameSource:
@@ -6001,7 +6001,7 @@ uploadSource:
@@ -6245,7 +6245,7 @@ Returns:
diff --git a/docs/global.html b/docs/global.html
index 1a6a41b..1473544 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -136,7 +136,7 @@
Source:
@@ -193,8 +193,8 @@ Example
- // <code>
-await wiki.for_each_page_in_list('allredirects', page_data => console.log('page_data: ', page_data), { namespace: 'Category' });
+ // <code>
+await wiki.for_each_page_in_list('allredirects', page_data => console.log('page_data: ', page_data), { namespace: 'Category' });
// </code>
@@ -408,7 +408,7 @@ Wikiapi_l
Source:
@@ -447,6 +447,10 @@ Wikiapi_l
+
+ Tool function to access page lists.
Please refer to all supported types (search "get_list.type =").
+
+
@@ -459,67 +463,67 @@ Examples
- // <code>
-const wiki = new Wikiapi;
-let page_list = await wiki.categorymembers('Chemical elements');
-console.log(page_list);
-// Working on multiple pages
-await wiki.for_each_page(
- // {Array} title liat / page data list
- page_list,
- page_data => {
- // ...
- });
+ // <code>
+const wiki = new Wikiapi;
+let page_list = await wiki.categorymembers('Chemical elements');
+console.log(page_list);
+// Working on multiple pages
+await wiki.for_each_page(
+ // {Array} title liat / page data list
+ page_list,
+ page_data => {
+ // ...
+ });
// </code>
- // <code>
-const wiki = new Wikiapi;
-let page_list = await wiki.embeddedin('Template:Periodic table');
-console.log(page_list);
+ // <code>
+const wiki = new Wikiapi;
+let page_list = await wiki.embeddedin('Template:Periodic table');
+console.log(page_list);
// </code>
- // <code>
-// Get the list of all pages at once first.
-const page_list = await wiki.categorymembers('Category:Articles not listed in the vital article list');
-await page_list.each((page_data) => { }, options);
-
-// Imperative code, for huge pages.
-for await (const page_data of wiki.categorymembers('Category:Articles not listed in the vital article list')) {
- console.trace(`page_data #${count}:`, page_data);
-}
-
-// Declarative code(?), for huge pages.
-await wiki.categorymembers('Category:Articles not listed in the vital article list', {
- for_each_page(page_data) {
- console.log('page_data:', page_data);
- }
-});
+ // <code>
+// Get the list of all pages at once first.
+const page_list = await wiki.categorymembers('Category:Articles not listed in the vital article list');
+await page_list.each((page_data) => { }, options);
+
+// Imperative code, for huge pages.
+for await (const page_data of wiki.categorymembers('Category:Articles not listed in the vital article list')) {
+ console.trace(`page_data #${count}:`, page_data);
+}
+
+// Declarative code(?), for huge pages.
+await wiki.categorymembers('Category:Articles not listed in the vital article list', {
+ for_each_page(page_data) {
+ console.log('page_data:', page_data);
+ }
+});
// </code>
- // <code>
-let count = 0;
-for await (const page_data of wiki.allpages({ namespace: 'Talk', apfrom: wiki.remove_namespace('ABC') })) {
- console.trace(`page_data #${count}:`, page_data);
- if (++count > 5) break;
-}
-console.log('Done.');
+ // <code>
+let count = 0;
+for await (const page_data of wiki.allpages({ namespace: 'Talk', apfrom: wiki.remove_namespace('ABC') })) {
+ console.trace(`page_data #${count}:`, page_data);
+ if (++count > 5) break;
+}
+console.log('Done.');
// </code>
- // <code>
-let count = 0;
-for await (const page_list of wiki.allpages({ namespace: 'Talk', apfrom: wiki.remove_namespace('ABC'), batch_size: 5 })) {
- console.trace('page_list:', page_list);
- if (++count > 2) break;
-}
-console.log('Done.');
+ // <code>
+let count = 0;
+for await (const page_list of wiki.allpages({ namespace: 'Talk', apfrom: wiki.remove_namespace('ABC'), batch_size: 5 })) {
+ console.trace('page_list:', page_list);
+ if (++count > 2) break;
+}
+console.log('Done.');
// </code>
@@ -562,7 +566,7 @@ Examples
diff --git a/docs/index.html b/docs/index.html
index 8227010..e016725 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -466,7 +466,7 @@
diff --git a/docs/wikiapi.js.html b/docs/wikiapi.js.html
index 803f7ec..b167ea8 100644
--- a/docs/wikiapi.js.html
+++ b/docs/wikiapi.js.html
@@ -1051,7 +1051,9 @@ wikiapi.js
// --------------------------------------------------------
/**
- *
+ * @description Tool function to access page lists.<br />
+ * Please refer to <a href="https://github.com/kanasimi/CeJS/blob/master/application/net/wiki/list.js#:~:text=get_list.type%20=">all supported types</a> (search "get_list.type =").
+ *
* @example <caption>get list of [[w:en:Category:Chemical_elements]]</caption>
// <code>
const wiki = new Wikiapi;
@@ -2262,7 +2264,7 @@ wikiapi.js