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

Content deleted Content added
.
m syntaxhighlight lang="wikitext"
 
(14 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%;">
|caption=The*Map showing the first-level [[Administrative division|constituent entities]] of the Italian Republic <small>''{{nbsp}}(clickable labels…)''</small>.
*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}}.
*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:60%">
{{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=#520536770453}}
</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=#520536770453}}
 
{{-}}
Line 31 ⟶ 36:
 
;Example using [[:Template:Image frame|Image frame]]
<presyntaxhighlight lang="wikitext">{{Image frame
|content={{Italy Labelled Map Scalable
|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}}
|border-width=1
}}</pre>
|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}}}}
}}
{{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>