Template:Picdiclabel: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude><!-- this part is for testing --><div style="position: relative; white-space: nowrap; overflow: visible;">{{#tag:imagemap| image:G50.png{{!}}310px rect 0 0 1 1 [[{{PAGENAME}}]] }}<!-- this part is for testing --></noinclude><includeonly><!-- --><div class = "picdic-label" style="position: absolute; height:0px; line-height:{{{fontsize|12}}}px; font-size:{{{fontsize|12}}}px; width:100%; text-align:{{{align|center}}}; top:{{{posy|10}}}px; left:{{#expr:{{{posx|15...") |
No edit summary |
||
Line 13: | Line 13: | ||
-->{{#ifeq:{{FULLPAGENAMEE:{{{link}}}}}|{{FULLPAGENAMEE}}<!-- | -->{{#ifeq:{{FULLPAGENAMEE:{{{link}}}}}|{{FULLPAGENAMEE}}<!-- | ||
-->|<!-- | -->|<!-- | ||
--><strong style = "color: {{{color|black}}}">{{{altlink|{{{link|link missing}}}}}}</strong><!-- | --><strong style = "color: {{{color|black}}}; background-color:{{{background|}}};">{{{altlink|{{{link|link missing}}}}}}</strong><!-- | ||
-->|<!-- | -->|<!-- | ||
-->[[{{{link|link missing}}}{{{anchor|#{{langname|{{{1<noinclude>|und</noinclude>}}}}}}}}|<span style="color:{{{color|blue}}}">{{{altlink|{{{link|link missing}}}}}}</span>]]<!-- | -->[[{{{link|link missing}}}{{{anchor|#{{langname|{{{1<noinclude>|und</noinclude>}}}}}}}}|<span style="color:{{{color|blue}}}; background-color:{{{background|}}};">{{{altlink|{{{link|link missing}}}}}}</span>]]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->|<!-- | -->|<!-- | ||
-->[[{{{link|link missing}}}|<span style="color: {{{color|red}}}; font-style:italic;"> {{{altlink|{{{link|link missing}}}}}}</span>]]<!-- | -->[[{{{link|link missing}}}|<span style="color: {{{color|red}}}; font-style:italic; background-color:{{{background|}}};"> {{{altlink|{{{link|link missing}}}}}}</span>]]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Latest revision as of 00:36, 25 February 2024
Error: Image is invalid or non-existent.
- The following documentation is located at Template:Picdiclabel/documentation. [edit]
- Useful links: subpage list • transclusions • redirects • sandbox
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):
Picture dictionary | |
---|---|
|
{{ picdic
| image=Solar_sys8.jpg
| text=Solar System
| width=310
| labels=
- {{ picdiclabel | en | color=white | fontsize=18 | posx=181 | posy= 86 | link=Sun | altlink=The sun }}
- {{ picdiclabel | en | color=white | fontsize=12 | posx=214 | posy=119 | link=Mercury | style="text-align:right;" }}
| detail1=Click on labels in the image
}}
Parameters for this template:
- 1
- The ISO code of the language of the entry, used for linking within the wiktionary entry. Mandatory.
- posx
- posy
- 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.
- 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
- sc
- A script code. Must be specified if not the Latin script (Latn).
- 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
|1=
parameter. - 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 fine-tune 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