Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
Line 176: Line 176:
 
     async function getDcts() {
 
     async function getDcts() {
 
         // TEST TEST TEST TEST TEST TEST TEST
 
         // TEST TEST TEST TEST TEST TEST TEST
         const fq = '[[Category:Function_category]]';
+
        const CKEY = 'children'
 +
         const fq = '[[Category:Function_category]]' +
 +
                    '|?-Subproperty_of=' + CKEY;
 +
 
 
         const qUrl = '/api.php?action=ask&format=json&query=' + encodeURIComponent(fq);
 
         const qUrl = '/api.php?action=ask&format=json&query=' + encodeURIComponent(fq);
 
         const fRes = await fetch(qUrl).then(response => response.json());
 
         const fRes = await fetch(qUrl).then(response => response.json());
 
         console.log('Func result', fRes);
 
         console.log('Func result', fRes);
 +
 +
        const re = /^.+:(.+)$/;
 
         // TEST TEST TEST TEST TEST TEST TEST
 
         // TEST TEST TEST TEST TEST TEST TEST
  

Revision as of 13:10, 30 August 2022

Development verstion of the DCT List.
Not ready for production!