Tuesday, August 6, 2013

Wiktionary - Recent changes [en]: Module:User:CodeCat

Wiktionary - Recent changes [en]
Track the most recent changes to the wiki in this feed. // via fulltextrssfeed.com 
Module:User:CodeCat
Aug 6th 2013, 23:54, by CodeCat

Line 1: Line 1:
  +

local m_debug = require("Module:debug")

  +
 

local export = {}

 

local export = {}

   
Line 4: Line 6:
 

local m = require("Module:labels")

 

local m = require("Module:labels")

 

local l = m.get_label(frame.args[1])

 

local l = m.get_label(frame.args[1])

local ret = "{"

+

return m_debug.dump(l)

 

for key, val in pairs(l) do

 

ret = ret .. key .. "="

 

if type(val) == "table" then

 

ret = ret .. "{"

 

for key2, val2 in pairs(val) do

 

ret = ret .. key2 .. "=" .. val2 .. ","

 

end

 

ret = ret .. "}"

 

else

 

ret = ret .. val

 

end

 

ret = ret .. ","

 

end

 
 

return ret .. "}"

 
 

end

 

end

   

This module lacks a documentation page. Please create it.
  local m_debug = require("Module:debug")     local export = {}     function export.test(frame)      local m = require("Module:labels")      local l = m.get_label(frame.args[1])      return m_debug.dump(l)  end     function export.compound_hyphens(frame)      local args = frame:getParent().args         local term1 = args[1]; if term1 == "" then term1 = nil end      local term2 = args[2]; if term2 == "" then term2 = nil end      local term3 = args[3]; if term3 == "" then term3 = nil end      local term4 = args[4]; if term4 == "" then term4 = nil end      local term5 = args[5]; if term5 == "" then term5 = nil end      local term6 = args[6]; if term6 == "" then term6 = nil end      local term7 = args[7]; if term7 == "" then term7 = nil end         local terms = {term1, term2, term3, term4, term5, term6, term7}         for i, term in ipairs(terms) do          if mw.ustring.find(term, "^[-־]") or mw.ustring.find(term, "[-־]$") then              return "[[Category:Compound with hyphen]]"          end      end         return ""  end     return export  

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions