Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:CargoNotes: Difference between revisions

From Dragdown
Content added Content deleted
(Created page with "--This module was created by Tarkus Lee from Dustloop Wiki -- local p = {} function p.drawDataNotes(frame) local name = frame.args[1] local wikitext = "" if (name ~= "") then wikitext = "'''" .. name .. ":'''\n" end for token in string.gmatch(frame.args[2], '([^;]+)') do note = token wikitext = wikitext .. "*" .. note .. "\n" end return wikitext end return p")
 
No edit summary
 
Line 1: Line 1:
--[[ This module was created by Tarkus Lee from Dustloop Wiki --]]
-- This module was created by Tarkus Lee from Dustloop Wiki


local p = {}
local p = {}

Latest revision as of 03:38, 30 October 2022

Documentation for this module may be created at Module:CargoNotes/doc

-- This module was created by Tarkus Lee from Dustloop Wiki

local p = {}

function p.drawDataNotes(frame)
  local name = frame.args[1]

  local wikitext = ""

  if (name ~= "")
  then
    wikitext = "'''" .. name .. ":'''\n"
  end
  
  for token in string.gmatch(frame.args[2], '([^;]+)') do
    note = token

    wikitext = wikitext .. "*" .. note .. "\n"

  end

  return wikitext
end

return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.