Module talk:EzTumblr

From MTG Wiki
Jump to navigation Jump to search

Proposal for nicer formatting for list of supported blogs

I don't have permission to edit Modules, but I was going to improve the formatting for supported blogs shown on Template:EzTumblr. The usability of the template would be improved if the doc clearly included blogs by title and author, not just URL. We can also link authors easily, all of whom currently have pages on this wiki (and I would guess anyone significant enough to be added to this template later would also have pages, or should).

I haven't had a chance to test this since I don't have the edit permission, so this is just a first draft and should be checked. I'd be happy to do this if someone wanted to grant permissions, or someone else could. The data is already there so we'd just need to update the second loop of the following function as shown:

function Ez.getSupportedBlogs()
  local sorted = {}
  local out = ""
  for url, data in pairs(Ez.tumblrs) do
    table.insert(sorted, url)
  end
  table.sort(sorted)
  for _, url in ipairs(sorted) do
    local data = Ez.tumblrs[url]
    out = out .. string.format("* %s.tumblr.com (''%s'' by [[%s]])\n", url, data.title, data.author)
  end
  return out
end

Thanks in advance for taking a look! - jerodast (talk) 17:43, 28 July 2025 (UTC)