Template:Image label end
This template is a self-reference and so is part of the Wikipedia project rather than the encyclopaedic content.
This template will automatically categorise the current template into: Category:Labelled image map templates.
How to use
[edit source]Consider this example for Template:Australia Labelled Map:
{{Image label begin|width={{{width|400}}}|image=Australia location map recolored.png|float={{{float|none}}}}} {{Image label small|scale={{{width|400}}}|x=0.260|y=0.3450|text=[[Western Australia|Western Australia]]}} {{Image label small|scale={{{width|400}}}|x=0.480|y=0.2000|text=[[Northern Territory|Northern Territory]]}} {{Image label small|scale={{{width|400}}}|x=0.505|y=0.4025|text=[[South Australia|South Australia]]}} ... {{Image label end}}
Width/Scale
[edit source]In this example, all widths must be set to the same number of 400 as the default width. They must all be the same number of 400 for the template to be functionally scalable. This means they can be displayed at a different size by supplying a width parameter to the template when in use. For example, {{Australia Labelled Map|width=500}} will display the labelled image as a larger one of 500 pixels in width instead of 400.
To change the default size, put the wiki markup in Notepad, and search and replace "{{{width|400}}}" with "{{{width|500}}}".
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/Y
[edit source]X and Y values are always between 0 and 1. They represent the percentages of the width and height respectively 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 the image x=0 |y=1 will place the top-left corner of the label at the bottom-left of the image x=1 |y=1 will place the top-left corner of the label at the bottom-right of the image x=1 |y=0 will place the top-left corner of the label at the top-right of the image x=0.5|y=0.5 will place the top-left corner of the label at the centre of the image
Image
[edit source]The title of the wiki page of the image without the "Image:" prefix.
Text
[edit source]The text label to display as wiki markup.
Float
[edit source]Three options:
{{{float|none}}} makes the image sit on its own line of the page by default {{{float|left}}} makes the image pushed to the left of the page by default {{{float|right}}} makes the image pushed to the right of the page by default
Template set
[edit source]- {{Image label begin|image=Example.png|width=400|float=right}}
- {{Image label|x=0.25|y=0.75|scale=400|text=[[Wikipedia]]}}
- {{Image label small|x=0.25|y=0.75|scale=400|text=[[Wikipedia]]}}
- {{Image label end}}
Tool
[edit source]- Labelled Image Editor
- Labelled Image Editor 2 - Coming Soon -- Zondor 07:38, 24 October 2007 (UTC)
Sample labelled images
[edit source]- {{Africa Labelled Map}}
- {{Armenia Labelled Map}}
- Template:T1
- {{AtL Labelled Map}}
- {{Australia Labelled Map}}
- {{Bulgaria Provinces}}
- {{Brazil Labelled Map}}
- {{Caribbean Labelled Map}}
- {{Caucasus Labelled Map}}
- {{Chile Labelled Map}}
- {{Colombia Labelled Map}}
- {{Dhaka City Labelled Map}}
- {{Earth Labelled Map}}
- {{England Labelled Map}}
- {{Europe Labelled Map}}
- {{European Union Labelled Map (blue)}}
- {{European Union Labelled Map (brown)}}
- {{Eurovision Labelled Map}}
- {{Eurozone Labelled Map}}
- {{France Regions Labelled Map}}
- {{Fußball-Bundesliga teams 07-08 Labelled Map}}
- {{Gaza Strip Labelled Map}}
- {{Georgia Labelled Map}}
- {{IBL}}
- {{India States and Territories Labelled Map}}
- {{Indonesia provinces}}
- {{Iraq football labelled map}}
- {{Iran football labelled map}}
- {{Jericho TV series map}}
- {{La Liga teams map 2006-07}}
- {{La Liga teams map 2007-08}}
- {{La Liga teams map 2008-09}}
- {{Lebanon Labelled Map}}
- {{Middle-earth Labelled Map}}
- {{Peru Labelled Map}}
- {{Poland Labelled Map}}
- {{Provinces of Iran Labelled Map}}
- Qingzang railway/Map
- {{Schengen Agreement Labelled Map}}
- {{Shanghai Labelled Map}}
- {{Singapore Urban Planning Areas Labelled Map}}
- {{South America Labelled Map}}
- {{Switzerland Cantons Labelled Map}}
- {{Sydney Urban Areas Labelled Map}}
- {{Syria Labelled Map}}
- {{Al-Hasakah Labelled Map}}
- {{Aleppo Labelled Map}}
- {{Ar-Raqqah Labelled Map}}
- {{As-Suwayda Labelled Map}}
- {{Daraa Labelled Map}}
- {{Deir ez-Zor Labelled Map}}
- {{Hama Labelled Map}}
- {{Homs Labelled Map}}
- {{Idlib Labelled Map}}
- {{Latakia Labelled Map}}
- {{Quneitra Labelled Map}}
- {{Rif Dimashq Labelled Map}}
- {{Tartus Labelled Map}}
- {{Turkey Labelled Map}}
- {{Ukraine Labelled Map}}
- {{United States Labelled Map}}
- User:Henry Flower/Map
- {{West Bank Labelled Map}}
- {{World Labelled Map}}
- {{Yugoslavia Labelled Map}}