Sandbox: Difference between revisions

Editor (talk | contribs)
mNo edit summary
Editor (talk | contribs)
mNo edit summary
Line 1: Line 1:
{{FormatName| D^{max}_{film} foo}}
{{FormatName| D^{max}_{film} foo}}


 
{| class="wikitable"
{{#replace:
{{#lua:
{{#lua:
   desulfurococcales = {}
   desulfurococcales = {}
   sulfolobales ={}
   sulfolobales = {}
   thermoproteales = {}
   thermoproteales = {}
   thermococcales = {}
   thermococcales = {}
Line 14: Line 15:
   methanopyrales = {}
   methanopyrales = {}
   methanosarcinales = {}
   methanosarcinales = {}
  function printtable(name, t) print("\n&-\n&"..name.." && ") for k,v in pairs(t) do print(k) end end
   for ref, sp, id in stdin:gmatch("&?&?([%w\. ]+)&&([%w\., ]+)&&([^\n]+)") do
   for ref, sp, id in stdin:gmatch("&?&?([%w\. ]+)&&([%w\., ]+)&&([^\n]+)") do
     if (string.match(sp,"Aeropyrum") or string.match(sp,"Desulfurococcus") or string.match(sp,"Pyrolobus"))
     if (string.match(sp,"Aeropyrum") or string.match(sp,"Desulfurococcus") or string.match(sp,"Pyrolobus"))
       then desulfurococcales[ string.byte(id,4) ] = true
       then desulfurococcales[ string.sub(id,4,4) ] = true
     else if (string.match(sp,"Acidianus") or string.match(sp,"Sulfolobus"))
     elseif (string.match(sp,"Acidianus") or string.match(sp,"Sulfolobus"))
       then sulfolobales[ string.byte(id,4) ] = true
       then sulfolobales[ string.sub(id,4,4) ] = true
     else if (string.match(sp,"Pyrobaculum") or string.match(sp,"Thermoproteus"))
     elseif (string.match(sp,"Pyrobaculum") or string.match(sp,"Thermoproteus"))
       then thermoproteales[ string.byte(id,4) ] = true
       then thermoproteales[ string.sub(id,4,4) ] = true
     else if (string.match(sp,"Pyrococcus") or string.match(sp,"Thermococcus"))
     elseif (string.match(sp,"Pyrococcus") or string.match(sp,"Thermococcus"))
       then thermococcales[ string.byte(id,4) ] = true
       then thermococcales[ string.sub(id,4,4) ] = true
     else if (string.match(sp,"Thermoplasma"))
     elseif (string.match(sp,"Thermoplasma"))
       then thermoplasmatales[ string.byte(id,4) ] = true
       then thermoplasmatales[ string.sub(id,4,4) ] = true
     else if (string.match(sp,"Haloarcula") or string.match(sp,"Halobacterium") or string.match(sp,"Halococcus") or string.match(sp,"Haloferax") or string.match(sp,"Halorubrum") or string.match(sp,"Natrialba") or string.match(sp,"Natronobacterium") or string.match(sp,"Natronococcus"))
     elseif (string.match(sp,"Haloarcula") or string.match(sp,"Halobacterium") or string.match(sp,"Halococcus") or string.match(sp,"Haloferax") or string.match(sp,"Halorubrum") or string.match(sp,"Natrialba") or string.match(sp,"Natronobacterium") or string.match(sp,"Natronococcus"))
       then halobacteriales[ string.byte(id,4) ] = true
       then halobacteriales[ string.sub(id,4,4) ] = true
     else if (string.match(sp,"Methanobacterium") or string.match(sp,"Methanobrevibacter") or string.match(sp,"Methanosphaera") or string.match(sp,"Methanothermobacter"))
     elseif (string.match(sp,"Methanobacterium") or string.match(sp,"Methanobrevibacter") or string.match(sp,"Methanosphaera") or string.match(sp,"Methanothermobacter"))
       then methanobacteriales[ string.byte(id,4) ] = true
       then methanobacteriales[ string.sub(id,4,4) ] = true
     else if (string.match(sp,"Methanothermococcus") or string.match(sp,"Methanococcus") or string.match(sp,"Methanocaldococcus"))
     elseif (string.match(sp,"Methanothermococcus") or string.match(sp,"Methanococcus") or string.match(sp,"Methanocaldococcus"))
       then methanococcales[ string.byte(id,4) ] = true
       then methanococcales[ string.sub(id,4,4) ] = true
     else if (string.match(sp,"Methanomicrobium") or string.match(sp,"Methanospirillum"))
     elseif (string.match(sp,"Methanomicrobium") or string.match(sp,"Methanospirillum"))
       then methanomicrobiales[ string.byte(id,4) ] = true
       then methanomicrobiales[ string.sub(id,4,4) ] = true
     else if (string.match(sp,"Methanopyrus"))
     elseif (string.match(sp,"Methanopyrus"))
       then methanopyrales[ string.byte(id,4) ] = true
       then methanopyrales[ string.sub(id,4,4) ] = true
     else if (string.match(sp,"Methanococcoides") or string.match(sp,"Methanohalophilus") or string.match(sp,"Methanolobus") or string.match(sp,"Methanosarcina"))
     elseif (string.match(sp,"Methanococcoides") or string.match(sp,"Methanohalophilus") or string.match(sp,"Methanolobus") or string.match(sp,"Methanosarcina"))
       then methanosarcinales[ string.byte(id,4) ] = true
       then methanosarcinales[ string.sub(id,4,4) ] = true
     end
     end
   end
   end
   print(methanosarcinales)
   printtable("desulfurococcales", desulfurococcales)
  printtable("sulfolobales",sulfolobales)
  printtable("thermoproteales",thermoproteales)
  printtable("thermococcales",thermococcales)
  printtable("thermoplasmatales",thermoplasmatales)
  printtable("halobacteriales",halobacteriales)
  printtable("methanobacteriales",methanobacteriales)
  printtable("methanococcales",methanococcales)
  printtable("methanomicrobiales",methanomicrobiales)
  printtable("methanopyrales",methanopyrales)
  printtable("mehtanosarcinales",methanosarcinales)
|
|
{{#SearchLine:&&LBA|Reference}}
{{#SearchLine:&&LBA|Reference}}
}}
}}
|&|{{#bar:}}}}
|}

Revision as of 10:56, 9 March 2013

Dmax
film
     foo

{{#lua: desulfurococcales = {} sulfolobales = {} thermoproteales = {} thermococcales = {} thermoplasmatales = {} halobacteriales = {} methanobacteriales = {} methanococcales = {} methanomicrobiales = {} methanopyrales = {} methanosarcinales = {} function printtable(name, t) print("\n|-\n|"..name.." || ") for k,v in pairs(t) do print(k) end end for ref, sp, id in stdin:gmatch("|?|?([%w\. ]+)||([%w\., ]+)||([^\n]+)") do if (string.match(sp,"Aeropyrum") or string.match(sp,"Desulfurococcus") or string.match(sp,"Pyrolobus")) then desulfurococcales[ string.sub(id,4,4) ] = true elseif (string.match(sp,"Acidianus") or string.match(sp,"Sulfolobus")) then sulfolobales[ string.sub(id,4,4) ] = true elseif (string.match(sp,"Pyrobaculum") or string.match(sp,"Thermoproteus")) then thermoproteales[ string.sub(id,4,4) ] = true elseif (string.match(sp,"Pyrococcus") or string.match(sp,"Thermococcus")) then thermococcales[ string.sub(id,4,4) ] = true elseif (string.match(sp,"Thermoplasma")) then thermoplasmatales[ string.sub(id,4,4) ] = true elseif (string.match(sp,"Haloarcula") or string.match(sp,"Halobacterium") or string.match(sp,"Halococcus") or string.match(sp,"Haloferax") or string.match(sp,"Halorubrum") or string.match(sp,"Natrialba") or string.match(sp,"Natronobacterium") or string.match(sp,"Natronococcus")) then halobacteriales[ string.sub(id,4,4) ] = true elseif (string.match(sp,"Methanobacterium") or string.match(sp,"Methanobrevibacter") or string.match(sp,"Methanosphaera") or string.match(sp,"Methanothermobacter")) then methanobacteriales[ string.sub(id,4,4) ] = true elseif (string.match(sp,"Methanothermococcus") or string.match(sp,"Methanococcus") or string.match(sp,"Methanocaldococcus")) then methanococcales[ string.sub(id,4,4) ] = true elseif (string.match(sp,"Methanomicrobium") or string.match(sp,"Methanospirillum")) then methanomicrobiales[ string.sub(id,4,4) ] = true elseif (string.match(sp,"Methanopyrus")) then methanopyrales[ string.sub(id,4,4) ] = true elseif (string.match(sp,"Methanococcoides") or string.match(sp,"Methanohalophilus") or string.match(sp,"Methanolobus") or string.match(sp,"Methanosarcina")) then methanosarcinales[ string.sub(id,4,4) ] = true end end printtable("desulfurococcales", desulfurococcales) printtable("sulfolobales",sulfolobales) printtable("thermoproteales",thermoproteales) printtable("thermococcales",thermococcales) printtable("thermoplasmatales",thermoplasmatales) printtable("halobacteriales",halobacteriales) printtable("methanobacteriales",methanobacteriales) printtable("methanococcales",methanococcales) printtable("methanomicrobiales",methanomicrobiales) printtable("methanopyrales",methanopyrales) printtable("mehtanosarcinales",methanosarcinales)

}}