Module:Favilink Utility: Difference between revisions

319 bytes removed ,  15:47, 28 October 2019
m
no edit summary
(Created page with "local p = {} local cargo= mw.ext.cargo function p.main(frame, searchtype, fieldsin) local name local fields = fieldsin or '_pageName=Page, DisplayName, Image, DisplayChar, P...")
 
mNo edit summary
Line 6: Line 6:
local name
local name
local fields = fieldsin or '_pageName=Page, DisplayName, Image, DisplayChar, PlainName'
local fields = fieldsin or '_pageName=Page, DisplayName, Image, DisplayChar, PlainName'
frame=mw.getCurrentFrame()


searchtype = searchtype or 'PlainName'
searchtype = searchtype or 'PlainName'
   
   
if frame.args ~= nil and frame.args ~= '' then
name = mw.text.trim(frame)
  if frame.args[1] ~= nil and frame.args[1] ~= '' then
  name = mw.text.trim(frame:preprocess(frame.args[1]))
  modifier = mw.text.trim(frame:preprocess(frame.args[2]))
  else
    error "There is no argument specified! [[Category:pages with favilink errors]]"
  end
end


local wherestr = ''
local wherestr = ''