Module:Coordinates: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
BeeKayGodd (talk | contribs) m (1 revision imported: Infobox) |
Template>WOSlinker (use templatestyles) |
||
Line 24: | Line 24: | ||
local page_name = mw.uri.encode( current_page.prefixedText, 'WIKI' ); |
local page_name = mw.uri.encode( current_page.prefixedText, 'WIKI' ); |
||
local coord_link = '//geohack.toolforge.org/geohack.php?pagename=' .. page_name .. '¶ms=' |
local coord_link = '//geohack.toolforge.org/geohack.php?pagename=' .. page_name .. '¶ms=' |
||
local templatestyles = 'Module:Coordinates/styles.css' |
|||
--[[ Helper function, replacement for {{coord/display/title}} ]] |
--[[ Helper function, replacement for {{coord/display/title}} ]] |
||
Line 156: | Line 157: | ||
end |
end |
||
return mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = templatestyles} } |
|||
.. '<span class="plainlinks nourlexpansion">' |
|||
.. '[' .. coord_link .. uriComponents .. ' ' .. inner .. ']' |
|||
.. '</span>' |
|||
end |
end |
||