User:Betterkeks/sandbox

From Wikipedia, the free encyclopedia

Useful stuff[edit]

  • Formatting
    • char *p;
    • ^C
    • Ctrl+C

GeoJSON[edit]

Map
Example of three overlaying map data, as shown on Roter Faden. Map data seems to be more stable than querying OpenStreetMap (OSM) directly, and allows depiction of geographic features that are not included in OSM, such as historical features.

Use Overpass to create a draft GeoJSON (e.g., at Data:Sandbox/Betterkeks/xxx.map), and eventually expose (e.g., Data:Hannover/Roter_Faden.map), encased into Map Data by the below to which styling is then added for {{mapframe}}, and recorded in Wikidata as geoshape‪ (P3896‬); see Red Thread (Q2168375).

{
    "license": "ODbL-1.0",

    "zoom": 14,
    "latitude": 52.371993,
    "longitude": 9.7354699,

    "data": {
        "type": "FeatureCollection",
        "features": [
          // Replace this with the
          // GeoJSON, augmented with
          // the below.
        ]
    }
}

To style, add the below into "properties".

"name": "City Wall",
"stroke": "#8E5913",
"stroke-width": 1,
"stroke-opacity": 0.7,
"fill": "#CCB56C",
"fill-opacity": 0.4

Also add the following immediately below "properties".

"id": "myCityWall",

Alternatively, draw features in JOSM, possibly by hand-tracing from images such as the below transformed into a JOSM overlay using satellite imagery for reference, and handcrafting your exported GeoJSON into a map file (you may need to add a name and id). Even if the image is in the public domain, when using JOSM you may need to apply at least the ODbL-1.0 license. Make every reasonable effort to acknowledge the owners of copyright material, and be pleased to hear from any copyright owner who has been omitted or incorrectly acknowledged so you can correct.

Scan of a map in the public domain. Use current reference points, such as OSM or satellite imagery, to transform the image into a modern projection before tracing it.

To do[edit]

I would like to get |from={{wikidata |property |‪P3896‬ }} working.

Palette[edit]

Scheme[edit]

Secondary   C60C30
Historic   7B6660
Art   5D5FB4
Formal   161A22
Serious   213929
Education   1F2F57
Entertain   BE1596
Nature   759F4F
Public Transport   009D58
Health Care   009639

Maps[edit]

Soft Hard Dark
Red   DB3123   AA1205   7A0101
Green   81AF81   538253   165916
Blue   77A1CB   5581A9   105396
Grey   AAAA88   777755   333322
Brown   CCB56C   AD7F14   8E5913

Points[edit]

Map
Major shipwrecks around Rottnest Island, in chronological order.
# Ship Date wrecked Location Notes
1 Transit 8 May 1842 Transit reef (Duck rock), Thomson Bay
31°58′59″S 115°33′00″E / 31.9831°S 115.55°E / -31.9831; 115.55 (Transit)
Wooden schooner, 124 tons, 27.1 metres (88.8 ft) long. Voyage from the Cape of Good Hope. There was a suggestion that her master had been careless or had deliberately wrecked the vessel. No lives lost.[1][2]
2 Gem 18 May 1876 Thomson Bay
31°59′15″S 115°33′41″E / 31.9875°S 115.561317°E / -31.9875; 115.561317 (Gem)[3]
Wooden cutter, 52 tons. Carrying 500 tons of wheat from Port Irwin to Fremantle, Western Australia. The day after she left port, the assistant lighthouse keeper on Rottnest reported seeing her 3 kilometres (1.9 mi) east of the island. The lighthouse keeper at Arthur Head also saw the vessel, but later saw only the top mast and crosstree visible above the water. The Fremantle harbour master found the vessel sunk with no sign of survivors. Two days later, divers found a rug in the captain’s cabin. Three days later decking, personal possessions and sacks of grain began washing ashore. “A cover-up by the harbour-master was also suggested because of the discrepancies in the information he gave about the vessel’s position. He is thought to have profited from unlawful salvage.”[4][5][6]
3 Lady Elizabeth 30 June 1878 near Dyer Island
32°01′03″S 115°32′58″E / 32.01754°S 115.54946°E / -32.01754; 115.54946 (Lady Elizabeth)
Wooden barque, 658 tons. From Fremantle for Shanghai, one life lost. Wreck lies on a sandy bottom in Bickley Bay with the bow wedged into a reef in about 10 metres (33 ft) with a portion of her hull and ribs exposed. Some artefacts remain.[7][8]
4 Macedon 21 March 1883 Transit Reef
31°59′12″S 115°33′25″E / 31.98669°S 115.55702°E / -31.98669; 115.55702 (Macedon)
Iron steamship, 826/796 tons. Carrying passengers, luggage and a cargo of horses from Fremantle to Beagle Bay. She struck a reef and began taking water quickly filling the engine room with water. Rough weather quickly destroyed the vessel. The hull was sold for salvage at auction for £170.[9][10][11]
5 Mira Flores 30 January 1886 Horseshoe Reef (north)
32°00′19″S 115°28′15″E / 32.0054°S 115.470917°E / -32.0054; 115.470917 (Mira Flores)
German-owned iron barque, 500 tons, 161.5 feet (49.2 m). From London under charter by the Western Australian Shipping Association. Crew saved. Lies on a shallow reef in about 10 metres (33 ft) of water showing considerable damage to her stern and midships.[10][12][13]
6 Janet 11 December 1887 Transit Reef

31°59′11″S 115°33′30″E / 31.9864°S 115.558267°E / -31.9864; 115.558267 (Janet)

Three masted wooden schooner, 211 tons built in Fremantle (at the time, the largest vessel having been built there). Wrecked while inward bound to Fremantle from Colombo. Wreckage including two anchors lies in about 5 metres (16 ft) of water a short distance from Macedon and Denton Holme.[10][14][15]
7 Denton Holme 25 September 1890 Transit Reef
31°59′09″S 115°33′24″E / 31.98588°S 115.55673°E / -31.98588; 115.55673 (Denton Holme)
Iron barque, 998 tons 213.2 feet (65.0 m) long. Built as Star Of Denmark in 1889, name changed. From Glasgow to Fremantle, wrecked almost on top of Macedon in about 6 metres (20 ft) of water.[10][16]
8 Raven 11 May 1891 Dyer's Island Reef
32°01′16″S 115°33′05″E / 32.021°S 115.55133°E / -32.021; 115.55133 (Raven)
Wooden barque, 344 tons, 121.1 feet (36.9 m) long. Lies partly buried in the sand at a depth of about 6 metres (20 ft).[17][18]
9 Ulidia 18 May 1893 Stragglers Reef south of Rottnest
32°03′28″S 115°37′44″E / 32.057667°S 115.628833°E / -32.057667; 115.628833 (Ulidia)[19]
Iron ship, 2405 tons, 300 feet (91 m) long. Left Fremantle for Newcastle, England.[20]
10 City of York 12 July 1899 200 metres (660 ft) offshore at Cape of York Bay
31°59′39″S 115°29′20″E / 31.99415°S 115.48899°E / -31.99415; 115.48899 (City of York)[21]
1218 tons, 229.8 feet (70.0 m) long. On a voyage from San Francisco to Fremantle carrying timber cargo. Wrecked during a storm after receiving confused signals from the lighthouse operator on the island. Eleven men drowned.[22]
11 Uribes 1 July 1942 Just north of False Jetty at Phillip Rock, Thompson Bay
32°00′10″S 115°33′26″E / 32.00274°S 115.55734°E / -32.00274; 115.55734 (Uribes)
Auxiliary powered three-masted wooden schooner, 250 tons, 110 feet (34 m) long. Built in Stockton-on-Tees. Engines failed and she dragged her anchors, going ashore. Cargo included 150 six-inch shells and two motor vehicles. Lies in shallow water about 12 metres (39 ft) from shore.[23]
12 Anitra II 26 November 1979 Cape Vlamingh (West End)
32°01′33″S 115°26′55″E / 32.0258°S 115.4485°E / -32.0258; 115.4485 (Anitra)
26 ton ketch. Was competing in the 14,000-nautical-mile (26,000 km) Parmelia Yacht Race and nearing the finish at Fremantle. Hull was salvaged and was on display near main settlement.[24]
13 Kiryo Maru 1 6 August 1984 Cathedral Rocks
32°01′13″S 115°26′58″E / 32.020345°S 115.449514°E / -32.020345; 115.449514 (Kiryo Maru)
Japanese tuna boat, 36 metres (118 ft).[25]

OSM Location Map[edit]

Edith Cowan University
The main campus of Joondalup (1) is north of Mount Lawley (2), both of which are north of Bunbury (3).

Combining Template:Infobox university, Template:coord and Template:OSM Location map.

SPARQL[edit]

Wikidata Query Service

Hierarchy[edit]

#defaultView:Table
# Hierarchy 
CONSTRUCT {
  ?item1 wdt:P131 ?item2.
  ?item1 rdfs:label ?item1Label.
  ?item2 rdfs:label ?item2Label.
}
WHERE {
  SELECT ?item1 ?item2 ?item1Label ?item2Label
   WHERE {
    wd:Q1715 (wdt:P131*) ?item1, ?item2.
    FILTER(EXISTS { ?item1 wdt:P131 ?item2. })
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }
}

Click here to launch the Wikidata query

Quarries around Boya[edit]

#defaultView:Map
# Quarries around Boya
SELECT DISTINCT ?quarry ?quarryLabel ?coords {
    ?quarry (wdt:P31/(wdt:P279*)) wd:Q188040;
    wdt:P17 wd:Q408;
    wdt:P625 ?geo.
    wd:Q3420528 wdt:P625 ?gmLoc .

    SERVICE wikibase:around {
      ?quarry wdt:P625 ?coords .
      bd:serviceParam wikibase:center ?gmLoc .
      bd:serviceParam wikibase:radius "10" .
    }

  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" .
  }
}

Click here to launch the Wikidata query

Railway[edit]

SELECT distinct * WHERE {
  ?item wdt:P31/wdt:P279* wd:Q188040;
        wdt:P625 ?geo .
}

SELECT ?id (CONCAT("[[", ?idLabel, "]]") AS ?title) ?idLabel WHERE {
  ?id wdt:P31 wd:Q4022.
  ?id wdt:P17 wd:Q408.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  ?id wdt:P131 wd:Q3206.
}

SELECT ?railroad_line ?railroad_lineLabel ?sRGB_color_hex_triplet WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?railroad_line wdt:P31 wd:Q728937.
  
  ?railroad_line wdt:P137 wd:Q4285731.
  ?railroad_line wdt:P131 wd:Q3206.
  OPTIONAL { ?railroad_line wdt:P465 ?sRGB_color_hex_triplet. }
}
LIMIT 100

Click here to launch the Wikidata query

mapframe[edit]

Map

Montage[edit]

xxx
  • left
  • right
For something
Established1943 (1943)
Location
Close, but no cigar. There seems to be no way to get the vertical and horizontal gaps to be the same, and even no gap, and no way to zoom in on parts of images. What we need is a new montage template that uses an SVG of areas as 'scaffolding' for images shown as backgrounds in these areas.
Map
aaa
LocationAltstadt
CountryHanover
DenominationLutheran

custom mapframe[edit]

Hanover Historical Museum
Historisches Museum Hannover
The museum, including remnants of the city's medieval city wall [de] and in particular the Beguine Tower, [de] is located at the High Bank [de] on the eastern side of the Leine river.
Map
The museum is situated in the old town (), shown here within the approximate location of the former 13th-century city wall () within the 17th-century inner bastion (). [de ]
Established1903; 121 years ago (1903)
LocationHanover, Lower Saxony, Germany
TypeHistorical museum
DirectorThomas Schwark

Math[edit]

Lichtenberg ratio (‪), Golden ratio ().

References[edit]

References

  1. ^ Henderson, Vol. 1.
  2. ^ "wreck details: Transit" (database). National Shipwrecks database. Retrieved 2007-04-28.
  3. ^ "wreck details: Gem" (database). National Shipwrecks database. Retrieved 2008-10-28.
  4. ^ Passmore, N. et al., Bulletin of the Australian Institute for Maritime Archaeology, Vol. 8.1, p. 5–12.
  5. ^ Western Australian Museum – Maritime Archaeology/Shipwrecks
  6. ^ "wreck details: Gem". Historic Shipwrecks of Perth 1656–1942. Archived from the original (database) on 2007-12-20. Retrieved 2008-04-08.
  7. ^ Henderson, Vol. 2, p?
  8. ^ "wreck details: Lady Elizabeth" (database). National Shipwrecks database. Retrieved 2007-04-28.
  9. ^ Henderson., Vol. 3, p. 43–47.
  10. ^ a b c d Henderson., Vol. 3, p. 169–171.
  11. ^ "wreck details: Macedon" (database). National Shipwrecks database. Retrieved 2007-04-28.
  12. ^ Henderson., Vol. 3, p. 76–79.
  13. ^ "wreck details: Mira Flores" (database). National Shipwrecks database. Retrieved 2007-04-28.
  14. ^ Henderson., Vol. 3, p. 112–115.
  15. ^ "wreck details: Janet" (database). National Shipwrecks database. Retrieved 2007-04-28.
  16. ^ "wreck details: Denton Holme" (database). National Shipwrecks database. Retrieved 2007-04-28.
  17. ^ Henderson., Vol. 3, p. 181–183.
  18. ^ "wreck details: Raven" (database). National Shipwrecks database. Retrieved 2007-04-28.
  19. ^ "wreck details: Ulidia" (database). National Shipwrecks database. Retrieved 2008-10-28.
  20. ^ Henderson., Vol. 3, p. 214–217.
  21. ^ "wreck details: City of York" (database). National Shipwrecks database. Retrieved 2008-10-28.
  22. ^ Henderson., Vol. 3, p. 312–319.
  23. ^ "wreck details: Uribes" (database). National Shipwrecks database. Retrieved 2007-04-28.
  24. ^ "wreck details: Anitra II" (database). National Shipwrecks database. Retrieved 2007-04-28.
  25. ^ "wreck details: Kiryo Maru 1" (database). National Shipwrecks database. Retrieved 2008-10-28.