User:Jean-Louis²/Maplink


 * fr:Utilisateur:Hens Jean-Louis/Maplink
 * de:Benutzer:Hens_Jean-Louis/Maplink

2 coordinates
Template:Coord, Module:Coordinates


 * 52.49904°N, -2.06403°W
 * 52.49635°N, -2.06646°W

 .mw-parser-output .geo-default,.mw-parser-output .geo-dms,.mw-parser-output .geo-dec{display:inline}.mw-parser-output .geo-nondefault,.mw-parser-output .geo-multi-punct,.mw-parser-output .geo-inline-hidden{display:none}.mw-parser-output .longitude,.mw-parser-output .latitude{white-space:nowrap}    52°29′57″N 2°03′51″W / ﻿              52.499036°N 2.064032°W / 52.499036; -2.064032﻿ ( Air vent No. 4 )  

2 coordinates again

 * 52.49335°N, -2.06916°W
 * 52.49157°N, -2.07019°W

Maplink Mapframe
template:Maplink Module:Mapframe

--nil} page Page name, or name#section, to get named coordinates  from. If the name is omitted, i.e. #section or nil or empty string, then  the current page will be used. @returns {table} sequence of {coord, name, description} tables where coord is  the coordinates in a format suitable for #util.parseCoords, name is a string,  and description is a string (coordinates in a format suitable for displaying  to the reader). If for some reason the name can't be found, the description  is nil and the name contains display-format coordinates. @throws {L10n.error.noNamedCoords} if no named coordinates are found. -- function util.getNamedCoords(page) if transcluder == nil then -- load Module:Transcluder lazily so it is only transcluded on pages that -- actually use named coordinates transcluder = require("Module:Transcluder") end local parts = mw.text.split(page or "", "#", true) local name = parts[1] == "" and mw.title.getCurrentTitle.prefixedText or parts[1] local section = parts[2] local pageWikitext = transcluder.get(section and name.."#"..section or name) local coordTemplates = util.extractCoordTemplates(pageWikitext) if #coordTemplates == 0 then error(string.format(L10n.error.noNamedCoords, page or name), 0) end local frame = mw.getCurrentFrame local sep = "________" local expandedContent = frame:preprocess(table.concat(coordTemplates, sep)) local expandedTemplates = mw.text.split(expandedContent, sep) local namedCoords = {} for _, expandedTemplate in pairs(expandedTemplates) do		local coord = mw.ustring.match(expandedTemplate, "(.-) ") if coord then local name = (				-- name specified by a wrapper template, e.g Name				mw.ustring.match(expandedTemplate, "(.-) ") or				-- name passed into coord template				mw.ustring.match(expandedTemplate, "(.-) ") or				-- default to the coordinates if the name can't be retrieved				coord			) local description = name ~= coord and coord local coord = mw.ustring.gsub(coord, "[° ]", "_") table.insert(namedCoords, {coord=coord, name=name, description=description}) end end if #namedCoords == 0 then error(string.format(L10n.error.noNamedCoords, page or name), 0) end return namedCoords end

Belgium
Coord: Coordirection:
 * Bruxelles 50.84764°N, 4.35717°W
 * Namur 50.46494°N, 4.86507°W
 * Liège
 * Anvers