Content deleted Content added
m →Example usage: . |
m syntaxhighlight lang="wikitext" |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1:
{{Documentation subpage}}
==Template:Italy Labelled Map Scalable==
{{Italy Labelled Map Scalable|float=right}}
<div style="font-size:110%;">
*Location labels in the map are clickable wiki-links, leading to the respective article(s) and 'hoverable' with pop-ups etc.
==Parameters==
{|class="wikitable
! style="text-align:left" | '''Parameter'''
! style="text-align:left" | '''Description'''
|-
| '''
|-
| '''
|-
| '''border-width''' || border width in px (default is '''0''', no border)
|-
| '''border-color''' || border colour
|}
*'''Note:''' At sizes below about 300px, type may start to "collide" due to the label size supplied by {{tlx|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 [[mw:Extension:ImageMap|Image map]], and include the type in the svg image so it scales properly.
==Example usage==
<
{{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}}
</syntaxhighlight>
▲</pre>
{{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}}
Line 31 ⟶ 36:
;Example using [[:Template:Image frame|Image frame]]
<
|content={{Italy Labelled Map Scalable
▲|caption=The first-level [[Administrative division|constituent entities]] of the Italian Republic <small>''{{nbsp}}(clickable labels…)''</small>
|border-width=1
|image-width=375
{{Image frame|caption=The first-level [[Administrative division|constituent entities]] of the Italian Republic <small>''{{nbsp}}(clickable labels…)''</small>|content={{Italy Labelled Map Scalable|float=right|image-width=400}}}}▼
}}
▲
|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;
}}
{{-}}
Line 46 ⟶ 64:
==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>
|