Beskrivelse
In the spirit of Hello Dolly, this plugin displays a random line from Kaamelott on your site.
- A “Kaamelott quote” block, with filters by book or character.
- Quote of the day mode: the same quote for every visitor, changing at midnight.
- A
[rep-kaa]shortcode with its own settings page and built-in documentation. - Three display templates: full (quote, character, book, episode), character only, quote only.
- Optional “Another quote” button, refreshed without reloading the page.
- Page-cache friendly mode (quote picked in the browser).
- Fonts bundled and served locally (no Google Fonts request): MedievalSharp, Uncial Antiqua and Luciole, a typeface designed for visually impaired readers. Papyrus is used when installed on the visitor’s device.
- CSV import with duplicate detection.
No quotes are included. Add your own quotes manually or import them from a CSV file (see exemple-import.csv).
This is an unofficial fan plugin made by DS-Web. It is not affiliated with, endorsed or sponsored by Alexandre Astier, CALT Production or the rights holders of Kaamelott.
Credits
- MedievalSharp by wmk69 – SIL Open Font License 1.1
- Uncial Antiqua by Astigmatic – SIL Open Font License 1.1
- Luciole by Laurent Bourcellier & Jonathan Perez – Creative Commons Attribution 4.0
Blokke
Dette plugin giver 1 blok.
- Kaamelott quote Displays a random Kaamelott quote with its character and book.
Installation
- Install and activate the plugin.
- Go to Kaamelott Quotes > Import (CSV) to import your quotes, or Kaamelott Quotes > Add quote to add them one by one.
- Insert the “Kaamelott quote” block, or use the
[rep-kaa]shortcode (settings and parameters under Kaamelott Quotes > Settings).
FAQ
-
What CSV format is expected?
-
A header row
replique;personnage;livre;episode(quote, character, book, episode), separator;or,, UTF-8 or Windows-1252. The book can be written “Livre II”, “Book II”, “II”, “2” or “Premier volet”. -
Which shortcode parameters are available?
-
tirage (aleatoire, jour),
police(medievalsharp, uncial, papyrus, luciole),modele(complet, personnage, replique),bouton(oui, non),livre,personnage,navigateur(oui, non). Example:[rep-kaa modele="personnage" bouton="non"]. -
Why does Papyrus not show up?
-
Papyrus is a commercial font and cannot be bundled. It is only displayed on devices where it is already installed (Windows, macOS); other visitors see MedievalSharp.
Anmeldelser
Der er ingen anmeldelser for denne widget.
Bidragsydere & udviklere
“DS-Web Random Quotes for Kaamelott” er open source-software. Følgende personer har bidraget til dette plugin.
BidragsydereOversæt “DS-Web Random Quotes for Kaamelott” til dit eget sprog.
Interesseret i udvikling?
Gennemse koden, tjek SVN repository, eller abonner på udviklerloggen via RSS.
Ændringslog
1.1.0
- New: quote of the day mode (block, shortcode
tirage="jour"and settings). - Faster random selection: matching quotes are cached, no more ORDER BY RAND() query.
1.0.0
- First release.
