Module:QueryBelleSummary: Difference between revisions

no edit summary
(Created page with "local p = {} local cargo = mw.ext.cargo function p.Main( frame ) local tables = 'MISC_BelleMoreInfo' local fields = 'MISC_BelleMoreInfo.TXT_Summary' -- optional parameters are grouped in one table -- you can omit any or all of them, except join if you use more than one table local args = { where = 'FK_Belle = "{{#replace:{{PAGENAME}}|'|\'}}"', join = 'table1.fieldA = table2.fieldB,table2.fieldC=table3.fieldD, etc.', default ='De...")
 
No edit summary
Line 5: Line 5:
     local tables = 'MISC_BelleMoreInfo'
     local tables = 'MISC_BelleMoreInfo'
     local fields = 'MISC_BelleMoreInfo.TXT_Summary'
     local fields = 'MISC_BelleMoreInfo.TXT_Summary'
    -- optional parameters are grouped in one table
 
    -- you can omit any or all of them, except join if you use more than one table
     local args = {
     local args = {
         where = 'FK_Belle = "{{#replace:{{PAGENAME}}|'|\'}}"',
         where = 'FK_Belle = "{{#replace:{{PAGENAME}}|'|\'}}"',
        join = 'table1.fieldA = table2.fieldB,table2.fieldC=table3.fieldD, etc.',
default ='Description not defined'
default ='Description not defined'
     }
     }