Template:Italy Labelled Map Scalable/sandbox

![]() | __EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Italy Labelled Map Scalable (diff). See also the companion subpage for test cases. |
Template:Italy Labelled Map Scalable
- Map showing the first-level constituent entities of the Italian Republic.
- Location labels in the map are clickable wiki-links, leading to the respective article(s) and 'hoverable' with pop-ups etc.
Parameters
Parameter | Description |
---|---|
float | alignment for template display: |float=left or |float=right (default is right)
|
image-width | width for displayed template in px (default is 455) |
border-width | border width in px (default is 0, no border) |
border-color | border colour specified as CSS colour (default is silver) |
- Note: At sizes below about 300px, type may start to "collide" due to the label size supplied by
{{Image label small}}
. - If such small sizes are really required, it would be best to create a new version with better font-size specifications, or use a different method like Image map, and include the type in the svg image so it scales properly.
Example usage
<syntaxhighlight lang="wikitext" style="width:60%">
</syntaxhighlight>
- Example using Image frame
General Image label documentation
General Image label documentation
| ||||||
---|---|---|---|---|---|---|
This template is a self-reference and thus is part of the Wikipedia project rather than the encyclopaedic content. UsageConsider this example, adapted from Template:Australia Labelled Map: <syntaxhighlight lang="wikitext" style="overflow:auto;"> </syntaxhighlight> Parameterswidth/scaleA number of pixels. Default is 400. (Do not include "px" after the number.) If For earthly geographic maps, conforming to these specifications can allow easier conversion to for any other purposes such as for the use of {{Location map+}}. x/yX values are always between 0 and 1. For square images, Y values are also between 0 and 1. The maximum Y value is higher for tall images, lower for wide images. The X and Y values represent the fraction of the width where the label will be placed. The exact point is the top-left corner of the image label. x=0 |y=0 will place the top-left corner of the label at the top-left of a square image x=0 |y=1 will place the top-left corner of the label at the bottom-left of a square image x=1 |y=1 will place the top-left corner of the label at the bottom-right of a square image x=1 |y=0 will place the top-left corner of the label at the top-right of a square image x=0.5|y=0.5 will place the top-left corner of the label at the centre of a square image imageThe title of the wiki page of the image without the "Image:" prefix. textThe text label to display as wiki markup. floatThree options:
font-sizeOptional. If given, specifies a font size for the labels. For example,
font-stretchAvailable only in {{image label}}. If given, alters text width for a label. The proper value could be text-alignOptional. If given, affects the line-by-line alignment within labels with line breaks. If omitted, the default text alignment is centered. linkSpecifies where the image should link to. If altSpecifies text to be used in the image's "alt" attribute. If captionSpecifies text to be used in the image's "title" attribute. In certain browsers, this text will appear in a tooltip when the mouse pointer is rolled over it. Template set
ToolSample labelled imageslist
Tracking categories |
See also
Templatedata
Italy Labelled Map Scalable
Parameter | Description | Type | Status | |
---|---|---|---|---|
float | float | template alignment: left or right (default is right)
| String | optional |
image-width | image-width | width for displayed template in px (default is 455)
| Number | optional |
border-width | border-width | border width in px (default is 0, no border)
| Number | optional |
border-color | border-color | border colour specified as CSS colour (default is silver)
| String | optional |