Teamplaid:Picdic
Picture dictionary | |
---|---|
|
Use this template to add a Picture dictionary to an entry.
Usage (see four different ways to use this template below):
Picture dictionary | |
---|---|
| |
{{ Picdic
| image=Solar_sys8.jpg
| detail1=
- {{ Picdicimg | image=Milky Way Galaxy.jpg | link=heavenly body |lang=en}}
| detail2=
- {{ Picdicimg | image=Celestia sun.jpg | link=Sun | altlink=The sun |lang=en}}
- {{ Picdicimg | image=Mercury in color - Prockter07 centered.jpg | link=Mercury |lang=en}}
}}
Parameters for this template:
- image
- Image that describes the entry.
- detail1
- Any content, in most cases clickable image(s) describing a en:hypernym.
- A clickable image can be inserted by adding a line with Teamplaid:Picdicimg for each image.
Optional parameters
- detail2
- detail3
- detail4
- Any content, in most cases clickable images describing the en:hyponyms.
- A clickable image can be inserted by adding a line with Teamplaid:Picdicimg for each image.
- detail2, detail3 and detail4 are optional, in that case en:hyponyms should be described elsewhere.
- Within parameters detail1, detail2, detail3 and detail4 the full wiki syntax can be used. The only restriction is the use of the | character in tables (and complex templates). That character should be replaced by the template {{!}}. For tables {|, |-, |, ||, |} etc. should be replaced by {{{!}}, {{!}}-, {{!}}, {{!}}{{!}}, {{!}}} etc. Alternatively the (X)HTML syntax for tables can be used like <table><tr><td> </td></tr></table>.
- scrollable
- Fill scrollable=yes to have a scroll bar at the bottom of the details
- text
- The name of the entry. The default value is the page name of the entry.
- width
- Maximum width of the image.
- This parameter is optional, the default width is 310.
- height
- Maximum height of the image.
- This parameter is optional, the default height is 310.
- imagemap
- This parameter is optional, and only to be used in case of an image map instead of other visual content describing the en:hyponyms.
- The parameter imagemap cannot be used in combination with the parameter labels
- To use image maps this parameter should be filled with a valid defintion of the imagemap areas.
- The coordinates are the number of pixels from the upper-left-hand corner of the default size of the image, so are independent of the size shown on screen.
- Example of this parameter:
- imagemap=
- circle 1035 572 13 [[:en:Mercury]]
- circle 860 483 234 [[:en:Sun]]
- A tutorial to use image maps can be found at Wikipedia:Wikipedia Signpost/2008-03-03.
- labels
- This parameter is optional, and only to be used in case of text labels to be inserted on the main image instead of other visual content describing the en:hyponyms.
- The parameter labels cannot be used in combination with the parameter imagemap
- The labels itself should be inserted by adding a line with Teamplaid:Picdiclabel for each label.
- The coordinates are the number of pixels from the upper-left-hand corner of the visible size of the image, so are dependent of the size shown on screen. See the template for further info.
- Examples of this parameter:
- labels=
- {{ Picdiclabel | posx=181 | posy= 86 | link=Sun |lang=en}}
- {{ Picdiclabel | posx=214 | posy=119 | link=Mercury | style="text-align:right;" |lang=en}}
Examples
deasaichFour different ways to use Picture dictionary (using Template:Picdic), en:Solar System examples with comparable links.
Picture dictionary with clickable images |
Picture dictionary with legend and wikilinks |
Picture dictionary with image map |
Picture dictionary with labels | ||||||||||||||||||||||||||||
|
|
| |||||||||||||||||||||||||||||
Code: {{ Picdic
| detail2=
}} |
Code: {{ Picdic
| detail2=
}} |
Code: {{ Picdic
| detail1=Click on parts of the image
}} |
Code: {{ Picdic
| detail1=Click on labels in the image
}} |
The above documentation is transcluded from Teamplaid:Picdic/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |