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

Content deleted Content added
Extension:ImageMap
m syntaxhighlight lang="wikitext"
 
(11 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="text-align:left" | '''Parameter'''
! style="text-align:left" | '''Description'''
|-
| '''image-width''' || width for displayed template in px (default is '''455''')
|-
| '''float''' || alignment for template display: {{para|float|left}} or {{para|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)
Line 20 ⟶ 25:
 
==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=#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]]
<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>