fbpx
วิกิพีเดีย

มอดูล:Infobox body of water tracking

คู่มือการใช้งานมอดูล[สร้าง]
local p = {}  function p.tracking(frame)  function isblank( val )  return (val == nil) or val:match('^[%s]*$')  end   local cats = ''  local args = frame:getParent().args   if (isblank(args['image']) and isblank(args['image_lake']) and isblank(args['image_ocean'])  and isblank(args['image_Ocean']) and isblank(args['image_bay']) ) then  cats = cats .. '[[Category:Wikipedia infobox body of water articles without image]]'  end   if isblank(args['coords']) and (isblank(args['latd']) or isblank(args['longd'])) then  cats = cats .. '[[Category:Wikipedia infobox body of water articles without coordinates]]'  end   if (args[1]) then  cats = cats .. '[[Category:Wikipedia infobox body of water articles needing maintenance]]'  end   local duplicate_parameters = 0  local unknown_parameters = 0   if (args['catchment_km2'] and args ['catchment']) then  duplicate_parameters = duplicate_parameters + 1  end  if (args['length_km'] and args['length']) then  duplicate_parameters = duplicate_parameters + 1  end  if (args['width_km'] and args['width']) then  duplicate_parameters = duplicate_parameters + 1  end  if (args['area_km2'] and args['area']) then  duplicate_parameters = duplicate_parameters + 1  end  if (args['depth_m'] and args['depth']) then  duplicate_parameters = duplicate_parameters + 1  end  if (args['max-depth_m'] and args['max-depth']) then  duplicate_parameters = duplicate_parameters + 1  end  if (args['volume_km3'] and args['volume']) then  duplicate_parameters = duplicate_parameters + 1  end  if (args['shore_km'] and args['shore']) then  duplicate_parameters = duplicate_parameters + 1  end  if (args['elevation_m'] and args['elevation']) then  duplicate_parameters = duplicate_parameters + 1  end  if ( (args['image'] and 1 or 0) + (args['image_lake'] and 1 or 0)  + (args['image_ocean'] and 1 or 0) + (args['image_Ocean'] and 1 or 0)  + (args['image_bay'] and 1 or 0) > 1 ) then  duplicate_parameters = duplicate_parameters + 1  end  if ( (args['name'] and 1 or 0) + (args['lake_name'] and 1 or 0)  + (args['ocean_name'] and 1 or 0) + (args['Ocean_name'] and 1 or 0)  + (args['bay_name'] and 1 or 0) > 1 ) then  duplicate_parameters = duplicate_parameters + 1  end  if (duplicate_parameters > 0) then  cats = cats .. '[[Category:Wikipedia infobox body of water articles using duplicate parameters]]'  end   local deprecated_parameters = 0  if (args['catchment'] or ''):match('^[%s]*[0-9\.,]+[^%s]*$') then  deprecated_parameters = deprecated_parameters + 1  end  if (args['length'] or ''):match('^[%s]*[0-9\.,]+[^%s]*$') then  deprecated_parameters = deprecated_parameters + 1  end  if (args['width'] or ''):match('^[%s]*[0-9\.,]+[^%s]*$') then  deprecated_parameters = deprecated_parameters + 1  end  if (args['area'] or ''):match('^[%s]*[0-9\.,]+[^%s]*$') then  deprecated_parameters = deprecated_parameters + 1  end  if (args['depth'] or ''):match('^[%s]*[0-9\.,]+[^%s]*$') then  deprecated_parameters = deprecated_parameters + 1  end  if (args['max-depth'] or ''):match('^[%s]*[0-9\.,]+[^%s]*$') then  deprecated_parameters = deprecated_parameters + 1  end  if (args['volume'] or ''):match('^[%s]*[0-9\.,]+[^%s]*$') then  deprecated_parameters = deprecated_parameters + 1  end  if (args['shore'] or ''):match('^[%s]*[0-9\.,]+[^%s]*$') then  deprecated_parameters = deprecated_parameters + 1  end  if (args['elevation'] or ''):match('^[%s]*[0-9\.,]+[^%s]*$') then  deprecated_parameters = deprecated_parameters + 1  end   if isblank(args['shore_m']) then  else  unknown_parameters = unknown_parameters + 1  end  if isblank(args['latitude']) then  else  unknown_parameters = unknown_parameters + 1  end  if isblank(args['longitude']) then  else  unknown_parameters = unknown_parameters + 1  end  if isblank(args['code']) then  else  unknown_parameters = unknown_parameters + 1  end  if isblank(args['map_type']) then  else  unknown_parameters = unknown_parameters + 1  end  if isblank(args['elevation_reference']) then  else  unknown_parameters = unknown_parameters + 1  end  if (args['elevation_ref'] or ''):match('^[%s]*[A-Z%-]+[^%s]*$') then  unknown_parameters = unknown_parameters + 1  end   if (deprecated_parameters > 0) then  cats = cats .. '[[Category:Wikipedia infobox body of water articles using deprecated parameters]]'  end    if (unknown_parameters > 0) then  cats = cats .. '[[Category:Pages using infobox body of water articles using unsupported parameters]]'  end   return cats end  return p 

มอด, infobox, body, water, tracking, อการใช, งานมอด, สร, าง, ณอาจจะต, องการสร, างค, อการใช, งานของมอด, ลน, เข, ยนสามารถทำการทดลองได, กระบะทราย, สร, าง, ดลอก, และช, ดทดสอบ, สร, าง, ของมอด, ลน, โปรดเพ, มหมวดหม, ไปท, หน, าย, อย, หน, าย, อยของมอด, ลน, local, funct. khumuxkarichnganmxdul srang khunxaccatxngkarsrangkhumuxkarichngankhxngmxdulniphuekhiynsamarththakarthdlxngidthikrabathray srang khdlxk aelachudthdsxb srang khxngmxdulnioprdephimhmwdhmuipthihnayxy doc hnayxykhxngmxdulnilocal p function p tracking frame function isblank val return val nil or val match s end local cats local args frame getParent args if isblank args image and isblank args image lake and isblank args image ocean and isblank args image Ocean and isblank args image bay then cats cats Category Wikipedia infobox body of water articles without image end if isblank args coords and isblank args latd or isblank args longd then cats cats Category Wikipedia infobox body of water articles without coordinates end if args 1 then cats cats Category Wikipedia infobox body of water articles needing maintenance end local duplicate parameters 0 local unknown parameters 0 if args catchment km2 and args catchment then duplicate parameters duplicate parameters 1 end if args length km and args length then duplicate parameters duplicate parameters 1 end if args width km and args width then duplicate parameters duplicate parameters 1 end if args area km2 and args area then duplicate parameters duplicate parameters 1 end if args depth m and args depth then duplicate parameters duplicate parameters 1 end if args max depth m and args max depth then duplicate parameters duplicate parameters 1 end if args volume km3 and args volume then duplicate parameters duplicate parameters 1 end if args shore km and args shore then duplicate parameters duplicate parameters 1 end if args elevation m and args elevation then duplicate parameters duplicate parameters 1 end if args image and 1 or 0 args image lake and 1 or 0 args image ocean and 1 or 0 args image Ocean and 1 or 0 args image bay and 1 or 0 gt 1 then duplicate parameters duplicate parameters 1 end if args name and 1 or 0 args lake name and 1 or 0 args ocean name and 1 or 0 args Ocean name and 1 or 0 args bay name and 1 or 0 gt 1 then duplicate parameters duplicate parameters 1 end if duplicate parameters gt 0 then cats cats Category Wikipedia infobox body of water articles using duplicate parameters end local deprecated parameters 0 if args catchment or match s 0 9 s then deprecated parameters deprecated parameters 1 end if args length or match s 0 9 s then deprecated parameters deprecated parameters 1 end if args width or match s 0 9 s then deprecated parameters deprecated parameters 1 end if args area or match s 0 9 s then deprecated parameters deprecated parameters 1 end if args depth or match s 0 9 s then deprecated parameters deprecated parameters 1 end if args max depth or match s 0 9 s then deprecated parameters deprecated parameters 1 end if args volume or match s 0 9 s then deprecated parameters deprecated parameters 1 end if args shore or match s 0 9 s then deprecated parameters deprecated parameters 1 end if args elevation or match s 0 9 s then deprecated parameters deprecated parameters 1 end if isblank args shore m then else unknown parameters unknown parameters 1 end if isblank args latitude then else unknown parameters unknown parameters 1 end if isblank args longitude then else unknown parameters unknown parameters 1 end if isblank args code then else unknown parameters unknown parameters 1 end if isblank args map type then else unknown parameters unknown parameters 1 end if isblank args elevation reference then else unknown parameters unknown parameters 1 end if args elevation ref or match s A Z s then unknown parameters unknown parameters 1 end if deprecated parameters gt 0 then cats cats Category Wikipedia infobox body of water articles using deprecated parameters end if unknown parameters gt 0 then cats cats Category Pages using infobox body of water articles using unsupported parameters end return cats end return p ekhathungcak https th wikipedia org w index php title mxdul Infobox body of water tracking amp oldid 6202098, wikipedia, วิกิ หนังสือ, หนังสือ, ห้องสมุด,

บทความ

, อ่าน, ดาวน์โหลด, ฟรี, ดาวน์โหลดฟรี, mp3, วิดีโอ, mp4, 3gp, jpg, jpeg, gif, png, รูปภาพ, เพลง, เพลง, หนัง, หนังสือ, เกม, เกม