Module:visual-dict/documentation
This module allows the creation of annotated images, akin to existing visual dictionaries. Below is an example invokation of the module along with its rendering.
{{#invoke:visual-dict|labeled_image|image=Reading-Glasses.jpg| caption=Eyeglasses parts| width=300px| annotations= sta from 62.8 25.2 to 30.1 -21.3 [[temple#English|temple]], sta from 165.2 93 to 218.1 30.2 [[screw#English|screw]], sta from 75.4 89.8 to 25.4 152 [[nose pad#English|nose pad]], sta from 33.6 90.3 to 2.5 110.3 [[rim#English|rim]], sta from 128.8 100.2 to 143.2 161.2 [[lens#English|(left) lens]], sta from 178.4 95.2 to 247.9 121.8 [[hinge#English|hinge]], sta from 164.8 99.3 to 228.4 154.2 [[endpiece#English|endpiece]], sta from 106.2 11.8 to 73.1 -49.7 [[temple tip#English|temple tip]], sta from 84.7 78.4 to 84.7 56.1 [[nose bridge#English|nose bridge]], }}
Annotations for a given image are specified like so:
sta from start_pos_x start_pos_y to end_pos_x end_pos_y link
where the x and y positions are measured relative to the upper left corner of the annotated image. Position 0, 0 is therefore the upper left corner. Text labels are specified using wikicode links as shown in the example above.
Transclusion
editA single annotated image can appear in multiple pages through the transclusion mechanism.
For instance, the below figure is transcluded from User:Jeran_Renz/Sandbox.
Notes
edit⚠ This module is under construction. ⚠
References
edit