Module:NzIcewayInline

Revision as of 21:22, 23 August 2026 by upgradewastaken (talk | contribs) (Created page with "local p = {} --p stands for package local fileModule = require("Module:FileExists") --1: IGN 2: TYPE 3: VARIANT 4: SIZE function p.template( frame ) local lineCode = frame.args[1] if lineCode:sub(1, 2) == "Hi" then lineCode = lineCode:sub(3) return frame:preprocess("20px|border|link=Nostra:Highway "..lineCode.." (New Zealand)") end return frame:preprocess("20px|border") end...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local p = {} --p stands for package

local fileModule = require("Module:FileExists")

--1: IGN 2: TYPE 3: VARIANT 4: SIZE
function p.template( frame )
	local lineCode = frame.args[1]
	if lineCode:sub(1, 2) == "Hi" then
		lineCode = lineCode:sub(3)
		return frame:preprocess("[[File:New Zealand Highway "..lineCode..".png|20px|border|link=Nostra:Highway "..lineCode.." (New Zealand)]]")
	end
    return frame:preprocess("[[File:"..lineCode.." shield..png|20px|border]]")
end

return p