Module:Coordinates: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 4: Line 4:
-- Attempt is not really to write a nice and proper module from scratch :D
-- Attempt is not really to write a nice and proper module from scratch :D
local math_mod = require "Module:Math";
local math_mod = require "Module:Math";
local wikitext = require "Module:Wikitext"


globalFrame = nil
globalFrame = nil
Line 12: Line 11:
function displaytitle (s)
function displaytitle (s)
local l = "[[Geographic coordinate system|Coordinates]]: " .. s
local l = "[[Geographic coordinate system|Coordinates]]: " .. s
local co = wikitext.tag({name="span",contents=l,params={id="coordinates"}})
local co = "<span id='coordinates'>" .. l .. "</span>";
return "<span font-size='small'>" .. co .. "</span>";
local p = {}
p["font-size"] = "small"
return wikitext.tag({name="span",contents=co,params=p})
end
end