Cover up parts of an image which can be uncoverd per click.
The coding area must be enclosed with the <picturequiz>...</picturequiz>
-Tags.
The following options can be used:
image:
- image file (in DokuWiki-syntax)button:
- draws a button (rectangle) between the stated coordinatesedit_mode
- display a helping text area to design buttons - optionalhide_button
- hide text over buttons - optionsuncovered
- on start all boxes are uncoveredmin_width
- minimum width of the image (by default the image is sized to fit the screen). Can also be used to zoom images.
Example:
<picturequiz>
image: wiki:example.png
button: [x],[y],[x2],[y2]
edit_mode
hide_button_text
</picturequiz>
Tested with
- PHP 7.3
- DokuWiki / Hogfather
- Code CleanUp
- Translations
source:
-Tag
Ideas / Inspiration: