Template:Italy Labelled Map Scalable/doc: Difference between revisions

Content deleted Content added
m syntaxhighlight lang="wikitext"
 
(28 intermediate revisions by 2 users not shown)
Line 1:
{{Documentation subpage}}
{{==Template:Italy Labelled Map Scalable|image-width=350}}=
{{Italy Labelled Map Scalable|float=right}}
<div style="font-size:110%;">
*Map showing the first-level [[Administrative division|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.
</prediv>
 
==Parameters==
{|class="wikitable" border="1" style="width:42%"
|-
! style="text-align:left" | '''Parameter'''
! style="text-align:left" | '''Description'''
|-
| '''image-widthfloat''' || widthalignment for displayed template indisplay: pixels,{{para|float|left}} defaultsor to{{para|float|right}} 455(default is '''right''')
|-
| '''floatimage-width''' || alignmentwidth for displayed template display,in {{para|float|left}}px or(default {{para|float|right}}is '''455''')
|-
| '''border-width''' || border width in px (default is '''0''', no border)
|-
| '''border-color''' || border colour specified as [[Web colors|CSS colour]] (default is '''silver''')
|}
 
*'''Note:''' At sizes below about 300px, type may start to "collide" due to the label size supplied by {{tlx|Image label small}}.<br />
*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 [[mw:Extension:ImageMap|Image map]], and include the type in the svg image so it scales properly.
 
==Example usage==
<presyntaxhighlight lang="wikitext" style="width:4060%">
{{Italy Labelled Map Scalable|float=left|image-width=350|border-width=1}}
{{Italy Labelled Map Scalable|float=left|image-width=350|border-width=1|border-color=#770453}}
</pre>
</syntaxhighlight>
{{Italy Labelled Map Scalable|image-width=350}}
{{Italy Labelled Map Scalable|float=left|image-width=350|border-width=1}}
{{Italy Labelled Map Scalable|float=left|image-width=350|border-width=1|border-color=#770453}}
 
{{-}}
 
 
;Example using [[:Template:Image frame|Image frame]]
<syntaxhighlight lang="wikitext">{{Image frame
|content={{Italy Labelled Map Scalable
|float=right
|border-width=1
|image-width=375
}}
|caption=The first-level [[Administrative division|constituent entities]] of the Italian Republic
|innerstyle=border:none;
}}</syntaxhighlight>
{{Image frame
|content={{Italy Labelled Map Scalable
|float=right
|border-width=1
|image-width=375
}}
|caption=The first-level [[Administrative division|constituent entities]] of the Italian Republic
|innerstyle=border:none;
}}
 
{{-}}
 
==General Image label documentation==
{{collapse top|bg=#F0F2F5|bg2=#ecfcf4|1=General Image label documentation}}
<div style="background-color:#ecfcf4">{{Template:Image label begin/doc}}</div>
{{collapse bottom}}
 
==See also==
*[[:Template:Italy Labelled Map]]
 
==Templatedata==
<templatedata>
{
"params": {
"float": {
"label": "float",
"description": "template alignment: left or right (default is right)",
"example": "left",
"type": "string"
},
"border-width": {
"label": "border-width",
"description": "border width in px (default is 0, no border) ",
"example": "1",
"type": "number"
},
"border-color": {
"label": "border-color",
"description": "border colour specified as CSS colour (default is silver) ",
"example": "blue",
"type": "string"
},
"image-width": {
"label": "image-width",
"description": "width for displayed template in px (default is 455) ",
"example": "400",
"type": "number"
}
},
"description": "Italy Labelled Map Scalable",
"paramOrder": [
"float",
"image-width",
"border-width",
"border-color"
]
}
</templatedata>