Skip to content

Wikipedia (customblocks.generates.wikipedia)

Generates a linkcard from from a lemma for the Wikipedia.

The difference with a linkcard is that instead of the full url to the article you just must provide the lemma/title.

Options

lemma
The lemma for the article
lang (keyword only, default en)
Language (or wikipedia instance)
*args
extra positional arguments are appended as classes for the top level element
**kwds
any extra keyword argument is used like in a linkcard

Examples

::: wikipedia "Sant Joan Despí"

Sant Joan Despí - Wikipedia

Sant Joan Despí (Catalan pronunciation: [ˈsaɲ ʒuˈan dəsˈpi]; Old Catalan for '"Saint John of the Pine"') is a city and municipality located in the Baix Llobregat area (Barcelona province in Catalonia, Spain). It is situated on the left bank of the Llobregat river.

Read more
::: wikipedia "Sant Joan Despí" lang=ca

Sant Joan Despí - Viquipèdia, l'enciclopèdia lliure

Sant Joan Despí és un municipi dins de la comarca del Baix Llobregat, situat al pla del Llobregat, a l'esquerra del riu. El municipi confronta amb els de Sant Feliu de Llobregat, Sant Just Desvern, Esplugues de Llobregat, Cornellà de Llobregat, Sant Boi i Santa Coloma de Cervelló.

Read more
::: wikipedia "Sant Joan Despí" wideimage

Sant Joan Despí - Wikipedia

Sant Joan Despí (Catalan pronunciation: [ˈsaɲ ʒuˈan dəsˈpi]; Old Catalan for '"Saint John of the Pine"') is a city and municipality located in the Baix Llobregat area (Barcelona province in Catalonia, Spain). It is situated on the left bank of the Llobregat river.

Read more

Styling

Generated Wikipedia cards are just linkcards with an additional wikipedia class to target them specifically, if you need to. Refer to linkcard styling section. Examples above use the stylesheet referred there.