Template:picdiclabel

Definition from Wiktionary, the free dictionary
Jump to: navigation, search
picdiclabelG50.png
About this image
link missing

The following documentation is located at Template:picdiclabel/documentation. [edit]


Use this template to insert text labels on the main image of Picture dictionary.

To be used in combination with Template:picdic.

Usage (feel free to amend this template):

{{ picdic
| image=Solar_sys8.jpg
| text=Solar System
| width=310
| labels=

{{ picdiclabel | color=white | fontsize=18 | posx=181 | posy= 86 | link=Sun | altlink=The sun |lang=en}}
{{ picdiclabel | color=white | fontsize=12 | posx=214 | posy=119 | link=Mercury | align=right |lang=en}}

| detail1=Click on labels in the image
}}

Parameters for this template:

posx
posy
The coordinates are the number of pixels from the upper-left-hand corner of the visable size of the image, so are dependent of the size shown on screen.
These parameters are mandatory. In case these are missing the link is shown centered at the top of the image.
link
The name of the entry, used for linking to the wiktionary entry


Optional parameters

lang
The ISO code of the language of the entry, used for linking within the wiktionary entry
This parameter is optional, the default is "en", resulting in an anchor #English (as this is used througout wiktionary)
anchor
A section within the entry, used for linking to a section within the wiktionary entry
This parameter is optional, the default is the language name of the ISO language specified by the lang parameter (#English)
altlink
The alternate text shown for the entry
This parameter is optional, the default is the text of the link parameter
Tip: Use altlink=x for preview mode editing to finetune the position
fontsize
The fontsize of the link
This parameter is optional. The default value is 12
color
The color of the link.
This parameter is optional. The default value is blue, but might be unreadable on some images
align
The alignment of the label. Valid values are left, center and right
This parameter is optional. The default value is center