Template:Image label begin/doc: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (Oops...)
(Document alt text.)
Line 59: Line 59:


<includeonly>;</includeonly><noinclude>===</noinclude>How to use<noinclude>===</noinclude>
<includeonly>;</includeonly><noinclude>===</noinclude>How to use<noinclude>===</noinclude>
Consider this example for [[Template:Australia Labelled Map]]:
Consider this example, adapted from [[Template:Australia Labelled Map]]:
<div style="margin-right:0.5em; margin-left:0.5em; background:#f9f9f9; overflow:auto;">
<pre style="overflow:auto;">
{{Image label begin|image=Australia location map recolored.png|width=400|float=none
<code style="font-size:95%; white-space:nowrap;"><!--
|alt=Australia map. Western Australia in the west third with capital Perth, Northern Territory in the north center with capital Darwin, Queensland in the northeast with capital Brisbane, South Australia in the south with capital Adelaide, New South Wales in the northern southeast with capital Sydney, and Victoria in the far southeast with capital Melbourne. Tasmania, with capital Hobart, is off the coast of Victoria, across the Bass Strait. The Indian Ocean is to the west and northwest, the South Pacific Ocean to the east, the Southern Ocean to the south, and the Tasman Sea to the southeast. The Great Australian Bight to the south and the Gulf of Carpentaria to the north are the major bays. The Timor and Arafura Seas are off the north coast, and the Great Barrier Reef guards the northeast coast from the Coral Sea.}}
--><nowiki>{{Image label begin</nowiki> <!--
{{Image label small|x=0.26|y=0.345|scale={{{width|400}}}|text=[[Western Australia|Western<br/>Australia]]}}
-->|width={{color|red|<nowiki>{{{width|400}}}</nowiki>}} <!--
{{Image label small|x=0.46|y=0.20|scale={{{width|400}}}|text=[[Northern Territory|Northern<br/>Territory]]}}
-->|image={{color|green|Australia location map recolored.png}} <!--
{{Image label small|x=0.505|y=0.4025|scale={{{width|400}}}|text=[[South Australia|South<br/>Australia]]}}
-->|float={{color|purple|<nowiki>{{{float|none}}}</nowiki>}}<!--
...
-->|caption={{color|teal|<nowiki>{{{caption|}}}</nowiki>}}<!--
{{Image label end}}
-->}}<br/><!--
</pre>
--><nowiki>{{Image label small</nowiki> <!--
-->|scale={{color|red|<nowiki>{{{width|400}}}</nowiki>}} <!--
-->|x={{color|brown|0.260}} |y={{color|brown|0.3450}} <!--
-->|text={{color|blue|<nowiki>[[Western Australia]]</nowiki>}}<!--
-->}}<br/><!--
--><nowiki>{{Image label small</nowiki> <!--
-->|scale={{color|red|<nowiki>{{{width|400}}}</nowiki>}} <!--
-->|x={{color|brown|0.480}} |y={{color|brown|0.2000}} <!--
-->|text={{color|blue|<nowiki>[[Northern Territory]]</nowiki>}}<!--
-->}}<br/><!--
--><nowiki>{{Image label small</nowiki> <!--
-->|scale={{color|red|<nowiki>{{{width|400}}}</nowiki>}} <!--
-->|x={{color|brown|0.505}} |y={{color|brown|0.4025}} <!--
-->|text={{color|blue|<nowiki>[[South Australia]]</nowiki>}}<!--
-->}}<br/><!--
-->...<br/><!--
--><nowiki>{{Image label end}}</nowiki>
</code>
</div>


<div style="float:right;">__TOC__</div>
<div style="float:right;">__TOC__</div>