thought2/elm-wikimedia-commons/1.0.1

Renamed to m-bock/elm-wikimedia-commons. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as thought2/elm-wikimedia-commons still install under that name. 2 versions of 2 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/m-bock/elm-wikimedia-commons.

What we checked: The repo moved to github.com/m-bock/elm-wikimedia-commons. Rebuilt with git archive from commit 95b4c44da6b2 of https://github.com/m-bock/elm-wikimedia-commons (zip prefix thought2-elm-wikimedia-commons-9042bfe/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 54abb5d74b462db6d9947c1c8193ee270a245807.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/thought2/elm-wikimedia-commons/zipball/1.0.1/

WikimediaCommons.RandomPictures

A library for working with the WikimediaCommons API

type alias PictureResource =
PictureResource

Main type of the library, a picture resource from WikiMedia Commons.

getUrl : Int -> PictureResource -> Maybe Url

Get an Url from a PictureResource if the given width is valid.

getMaxUrl : PictureResource -> Url

Get an Url from a PictureResource pointing to a picture in the largest possible size.

getMaxSize : PictureResource -> ( Int, Int )

Get the maximum size in which the resource is available.

type alias Url =
Url

An URL String

fetchResources : Int -> Task Error (List PictureResource)

Fetches a number of picture resources from the API.