Predloga:Maplink/testniprimeri
To je stran testnih primerov za peskovnik predloge Predloga:Maplink. za osvežitev primerov. Če je predloga zapletena z veliko primeri, lahko pride do tega, da se spodnji primeri ne naložijo zaradi omejitev v MediaWiki. Testiraš lahko tudi kako stran izgleda v različni koži s pomočjo spodnjih povezav: |
Maplink tag
[uredi kodo]{{Maplink||from=Sandbox/Evad37/St Georges Terrace.map |type=data}}
{{Maplink}}
{{Maplink|type=point|coord={{koord novi|-15.4|17.2}}}}
{{Maplink}}
Napaka Lua v Modul:Mapframe v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Napaka Lua v Modul:Mapframe/peskovnik v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
{{Maplink|type=circle|radius=1000|coord={{koord novi|-31.95|115.85}}}}
{{Maplink}}
Napaka Lua v Modul:Mapframe v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Napaka Lua v Modul:Mapframe/peskovnik v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Mapframe tag
[uredi kodo]{{Maplink|frame=yes |frame-lat=42.4934 |frame-long=-82.9166 |id=Q2108 |type=line |zoom=8}}
{{Maplink}}
{{Maplink|frame=yes|frame-coordinates={{koord novi|41.9|N|82.7|W}}|zoom=7|type=line|id=Q2108}}
{{Maplink}}
{{Maplink|frame=yes |frame-lat=42.4934 |frame-long=-82.9166 |id=Q2108 |plain=yes |type=line |zoom=8}}
{{Maplink}}
{{Maplink||frame=yes |from=Sandbox/Evad37/St Georges Terrace.map |type=data}}
{{Maplink}}
{{Maplink||frame=yes|type=data|raw={{Wikipedia:Map data/Wikipedia KML/Interstate 45}}}}
{{Maplink}}
|lat|long
){{Maplink|frame=yes|type=point|coord={{koord novi|-15.4|17.2}}}}
{{Maplink}}
Napaka Lua v Modul:Mapframe v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Napaka Lua v Modul:Mapframe/peskovnik v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
|lat|S|long|E
){{Maplink|frame=yes|type=point|coord={{koord novi|15.4|S|17.2|E}}}}
{{Maplink}}
|lat_d|lat_m|S|long_d|long_m|E
){{Maplink|frame=yes|type=point|coord={{koord novi|15|24|S|17|12|E}}}}
{{Maplink}}
|lat_d|lat_m|lat_s|S|long_d|long_m|long_s|E
){{Maplink|frame=yes|type=point|coord={{koord novi|15|24|10|S|17|12|15|E}}}}
{{Maplink}}
{{Maplink|frame=yes |id=Q2327957 |type=point}}
{{Maplink}}
Napaka Lua: Coordinates not found on Wikidata
Napaka Lua: Coordinates not found on Wikidata
{{Maplink|frame=yes|type=circle|radius=1000|coord={{koord novi|-31.95|115.85}}}}
{{Maplink}}
Napaka Lua v Modul:Mapframe v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Napaka Lua v Modul:Mapframe/peskovnik v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Multiple features
[uredi kodo]Maplink
[uredi kodo]{{Maplink|id=Q1318331 |id2=Q1544264 |type=line |type2=line}}
{{Maplink}}
{{Maplink|from=MAX Light Rail (Perth).map |from2=Sandbox/Evad37/St Georges Terrace.map |type=data |type2=data}}
{{Maplink}}
{{Maplink|type=point|coord={{koord novi|32|S|116|E}}|type2=point|coord2={{koord novi|31.8|S|115.8|E}}}}
{{Maplink}}
{{Maplink|id=Q1318331|type=line|type2=point|coord2={{koord novi|32|S|116|E}}}}
{{Maplink}}
{{Maplink|type=shape|id=Q3495894|type2=point|coord2={{koord novi|32|S|116|E}}}}
{{Maplink}}
{{Maplink|id=Q3495894 |id2=Q1318331 |type=shape |type2=line}}
{{Maplink}}
{{Maplink|type=shape|id=Q3495894|type2=line|id2=Q1318331|type3=point|coord3={{koord novi|32|S|116|E}}}}
{{Maplink}}
{{Maplink||type=circle|coord={{koord novi|32|S|116|E}}|type2=point|coord2={{koord novi|32|S|116|E}}}}
{{Maplink}}
{{Maplink|id=Q3495894 |id2=Q1318331 |radius=2000 |type=circle |type2=line}}
{{Maplink}}
{{Maplink|type=line|id=Q1318331|type2=shape-inverse|id2=Q3495894|type3=point|coord3={{koord novi|32|S|116|E}}}}
{{Maplink}}
Mapframe tag
[uredi kodo]{{Maplink|frame=yes |id=Q1318331 |id2=Q1544264 |type=line |type2=line}}
{{Maplink}}
{{Maplink|frame=yes |id=Q100 |id2=Q1384 |type=shape |type2=shape}}
{{Maplink}}
{{Maplink|frame=yes |from=MAX Light Rail (Perth).map |from2=Sandbox/Evad37/St Georges Terrace.map |type=data |type2=data}}
{{Maplink}}
{{Maplink|frame=yes|type=point|coord={{koord novi|32|S|116|E}}|type2=point|coord2={{koord novi|31.8|S|115.8|E}}}}
{{Maplink}}
{{Maplink|frame=yes|id=Q1318331|type=line|type2=point|coord2={{koord novi|32|S|116|E}}}}
{{Maplink}}
{{Maplink|frame=yes|type=shape|id=Q3495894|type2=point|coord2={{koord novi|32|S|116|E}}}}
{{Maplink}}
{{Maplink|frame=yes |id=Q3495894 |id2=Q1318331 |type=shape |type2=line}}
{{Maplink}}
{{Maplink|frame=yes|type=shape|id=Q3495894|type2=line|id2=Q1318331|type3=point|coord3={{koord novi|32|S|116|E}}}}
{{Maplink}}
{{Maplink|frame=yes |frame-height=280 |frame-lat=29.185 |frame-long=76.225 |frame-width=250 |id=Q1174 |id2=Q200663 |plain=yes |stroke-width=3 |title2=Faridabad |type=shape-inverse |type2=point |zoom=7}}
{{Maplink}}
{{Maplink|frame=yes|type=line|id=Q1318331|type2=shape-inverse|id2=Q3495894|type3=point|coord3={{koord novi|32|S|116|E}}}}
{{Maplink}}
Styles
[uredi kodo]{{Maplink|frame=yes |id=Q100 |stroke-color=#008888 |stroke-width=3 |type=line |zoom=9}}
{{Maplink}}
{{Maplink|fill=#00ff00 |frame=yes |id=Q100 |stroke-color=#008888 |stroke-width=3 |type=shape |zoom=9}}
{{Maplink}}
{{Maplink|fill=#888888 |frame=yes |id=Q100 |stroke-color=#00ffff |stroke-width=3 |type=shape-inverse |zoom=9}}
{{Maplink}}
{{Maplink|frame=yes |id=Q100 |marker=star |marker-color=#888800 |type=point |zoom=9}}
{{Maplink}}
{{Maplink|fill=#00ff00 |fill-opacity=0.4 |frame=yes |id=Q100 |stroke-color=#008888 |stroke-opacity=0.4 |stroke-width=3 |type=shape |zoom=9}}
{{Maplink}}
{{Maplink|fill=#00ff00 |fill-opacity=0.4 |frame=yes |id=Q100 |stroke-color=#008888 |stroke-opacity=0.4 |stroke-width=3 |type=shape-inverse |zoom=9}}
{{Maplink}}
{{Maplink|fill=#00ff00 |frame=yes |id=Q100 |radius=10000 |stroke-color=#008888 |stroke-width=3 |type=circle |zoom=9}}
{{Maplink}}
{{Maplink|fill=#00ff00 |fill-opacity=0.4 |frame=yes |id=Q100 |radius=10000 |stroke-color=#008888 |stroke-opacity=0.4 |stroke-width=3 |type=circle |zoom=9}}
{{Maplink}}
Circles
[uredi kodo]{{Maplink|type=circle|radius_m=1110|coord={{koord novi|-31.95|115.85}}}}
{{Maplink}}
Napaka Lua v Modul:Mapframe v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Napaka Lua v Modul:Mapframe/peskovnik v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
{{Maplink|type=circle|radius_km=10|coord={{koord novi|-31.95|115.85}}}}
{{Maplink}}
Napaka Lua v Modul:Mapframe v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Napaka Lua v Modul:Mapframe/peskovnik v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
{{Maplink|type=circle|radius_mi=10|coord={{koord novi|-31.95|115.85}}}}
{{Maplink}}
Napaka Lua v Modul:Mapframe v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Napaka Lua v Modul:Mapframe/peskovnik v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
{{Maplink|type=circle|radius_ft=200|coord={{koord novi|-31.95|115.85}}}}
{{Maplink}}
Napaka Lua v Modul:Mapframe v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Napaka Lua v Modul:Mapframe/peskovnik v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
{{Maplink|type=circle|radius=1000|edges=8|coord={{koord novi|-31.95|115.85}}}}
{{Maplink}}
Napaka Lua v Modul:Mapframe v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Napaka Lua v Modul:Mapframe/peskovnik v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
{{Maplink|type=circle|radius=1000|edges=68|coord={{koord novi|-31.95|115.85}}}}
{{Maplink}}
Napaka Lua v Modul:Mapframe v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Napaka Lua v Modul:Mapframe/peskovnik v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
{{Maplink|type=circle|radius_m=1110|coord={{koord novi|-31.95|115.85}}}}
{{Maplink}}
Napaka Lua v Modul:Mapframe v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Napaka Lua v Modul:Mapframe/peskovnik v vrstici 384: attempt to perform arithmetic on local 'lat_d' (a nil value).
Geomasks
[uredi kodo]{{Maplink|frame=yes |frame-align=center |frame-height=200 |frame-width=135 |id=Q16567 |plain=y |stroke-color=#808080 |stroke-width=2 |title=Columbus |type=shape-inverse |zoom=9}}
{{Maplink}}
Multi switcher
[uredi kodo]{{Maplink|frame=yes |id=Q100 |plain=yes |switch=zoomed out; zoomed mid; zoomed in |type=point |zoom=SWITCH:5;8;11}}
{{Maplink}}
{{Maplink|frame=yes |frame-align=left |id=Q100 |id2=SWITCH:Q578170, Q771, Q100 |plain=yes |stroke-width2=1 |switch=country, state, city |type=point |type2=line}}
{{Maplink}}
Inside an infobox
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{Maplink|frame=yes |id=Q100 |switch=zoomed out; zoomed mid; zoomed in |text=Captiony thingy |type=point |zoom=SWITCH:5;8;11}}
{{Maplink}}
{{Maplink|frame=yes |frame-align=left |id=Q100 |id2=SWITCH:Q578170, Q771, Q100 |stroke-width2=1 |switch=country, state, city |type=point |type2=line}}
{{Maplink}}
{{Maplink|frame=yes |frame-align=center |id=Q100 |switch=zoomed out; zoomed mid; zoomed in |type=point |zoom=SWITCH:3,7,11}}
{{Maplink}}
{{Maplink|frame=yes |frame-align=center |id=SWITCH:Q30, Q771, Q100 |id2=Q100 |switch=demo #1, demo#2, demo#3 |text=Foo [[bar]] baz |type1=shape-inverse |type2=point |zoom=SWITCH:2,6,10}}
{{Maplink}}
{{Maplink|frame=yes |frame-align=center |switch=demo #1, demo#2, demo#3 |zoom=SWITCH:2,6,10 |type1=point |id1=Q100 |frame-coord=SWITCH:{{koord novi|1|23|N|2|34|E}}###{{koord novi|32|1|S|115|6|E}}###{{koord novi|32|1|N|115|6|W}}}}
{{Maplink}}
Errors expected
[uredi kodo]Razširjena vsebina
|
---|
No SWITCH: lists {{Maplink|frame=yes |id=Q100 |plain=yes |switch=zoomed out; zoomed in |type=point |zoom=5}} {{Maplink}} Napaka Lua: At least one parameter must have a SWITCH: list Napaka Lua: At least one parameter must have a SWITCH: list Not enough labels {{Maplink|frame=yes |id=Q100 |plain=yes |switch=zoomed out; zoomed in |type=point |zoom=SWITCH:5;8;11}} {{Maplink}} Napaka Lua: Found 3 switch values but only 2 labels in |switch= Napaka Lua: Found 3 switch values but only 2 labels in |switch= Only one label {{Maplink|frame=yes |id=Q100 |plain=yes |switch=zoomed out |type=point |zoom=SWITCH:5;8;11}} {{Maplink}} Napaka Lua: Found only one label in |switch= Napaka Lua: Found only one label in |switch= Only one value in SWITCH: list {{Maplink|frame=yes |id=Q100 |plain=yes |switch=zoomed out, zoomed in |type=point |zoom=SWITCH:5}} {{Maplink}} Napaka Lua: Found only one switch value in |zoom= Napaka Lua: Found only one switch value in |zoom= Differing numbers values in SWITCH: list {{Maplink|frame=yes |id=SWITCH:Q30, Q100 |plain=yes |switch=zoomed out; zoomed in |type=point |zoom=SWITCH:5;8;11}} {{Maplink}} Napaka Lua: All SWITCH: lists must have the same number of values Napaka Lua: All SWITCH: lists must have the same number of values |
Named coordinates test data
[uredi kodo]Point | Coordinates (links to map & photo sources) |
---|---|
Dudley Port Junction | 52°31′19″N 2°02′36″W / 52.52204°N 2.04331°W |
Groveland Bridge (Tipton Road, A457) | 52°31′03″N 2°02′51″W / 52.51758°N 2.04760°W |
Tividale Aqueduct (Old BCN Main Line) | 52°30′59″N 2°02′54″W / 52.51640°N 2.04843°W |
Northern tunnel portal | 52°30′55″N 2°02′58″W / 52.51534°N 2.04948°W |
Aston Road air vent | 52°30′31″N 2°03′19″W / 52.50850°N 2.05518°W |
Regent Road air vent | 52°30′25″N 2°03′25″W / 52.50697°N 2.05708°W |
Approx. tunnel midpoint | 52°30′16″N 2°03′34″W / 52.50435°N 2.05932°W |
Named coordinates
[uredi kodo]Southern tunnel portal | 52°29′36″N 2°04′09″W / 52.49335°N 2.06916°W |
Windmill End Junction | 52°29′30″N 2°04′13″W / 52.49157°N 2.07019°W |
{{Maplink|frame=yes |type=named}}
{{Maplink}}
Napaka Lua: No named coordinates found in Predloga:Maplink/testniprimeri
{{Maplink|frame=yes |from=#Named coordinates |type=named}}
{{Maplink}}
Napaka Lua: No named coordinates found in #Named coordinates
{{Maplink|frame=yes |from=List of bridges in Perth, Western Australia |type=named}}
{{Maplink}}
Napaka Lua: Stran »List of bridges in Perth, Western Australia« ni najdena
Napaka Lua: Stran »List of bridges in Perth, Western Australia« ni najdena
{{Maplink|frame=yes |id2=Q23124 |id3=Q23124 |type=named |type2=shape-inverse |type3=line}}
{{Maplink}}
Napaka Lua: No named coordinates found in Predloga:Maplink/testniprimeri
{{Maplink|frame=yes |from=#Named coordinates |marker=star |marker-color=#ff0000 |type=named}}
{{Maplink}}
Napaka Lua: No named coordinates found in #Named coordinates
Overlays
[uredi kodo]{{Maplink|frame=yes|plain=yes|type=point|id=Q100|overlay={{mapframe|frame=yes|plain=yes|frame-width=100|frame-height=100|type=shape|id=Q100|zoom=5}} }}
{{Maplink}}