Modul:Coordinates: Unterschied zwischen den Versionen
StadtbahnBI>Verdy p KKeine Bearbeitungszusammenfassung |
Tt (Diskussion | Beiträge) K Remove Kartographer maplink (not installed here); keep coordinate text |
||
| (2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 771: | Zeile 771: | ||
local ID = args.wikidata | local ID = args.wikidata | ||
if ID == nil then | if ID == nil then | ||
entity = mw.wikibase.getEntity() | entity = (mw.wikibase and mw.wikibase.getEntity()) | ||
elseif type(ID) == 'string' and ID:match( '^[QqMm]%d+$' ) then | elseif type(ID) == 'string' and ID:match( '^[QqMm]%d+$' ) then | ||
entity = mw.wikibase.getEntity(ID) | entity = (mw.wikibase and mw.wikibase.getEntity(ID)) | ||
elseif type(ID) ~= 'string' and ID.id then | elseif type(ID) ~= 'string' and ID.id then | ||
entity = ID -- entities can be passed from outside | entity = ID -- entities can be passed from outside | ||
| Zeile 862: | Zeile 862: | ||
icon = 'camera' | icon = 'camera' | ||
end | end | ||
OSM = | OSM = '' -- map element removed: no Kartographer on this wiki, <maplink> rendered as raw text | ||
end | end | ||
local external_link = p._externalLinksSection(args) -- external link section | local external_link = p._externalLinksSection(args) -- external link section | ||