Help:Images and other uploaded files/pt-br

From The Scuba Wiki

Jump to: navigation, search
MediaWiki Handbook: Contents, Readers, Editors, Moderators, System admins +/-

Você pode transferir arquivos por MediaWiki e pode os embutir em páginas textuais. Em outras palavra, para embutir uma imagem, o arquivo de imagem tem que ser transferido. Também outros arquivos podem ser transferido, see below. Em versões mais atuais de MediaWiki, a termo "image" era usada para qualquer arquivo transferido; a versão atual usa o termo (e namespace) "file": ao invés.

Quando um arquivo é transferido, um file page (também chamou "image description page") será criado, com um page name consistindo no nome de arquivo (inclusive extensão), prefixou com "File": (ou em geral o valor de variável {{ns:File}} (MediaWiki 1.14 following) ou {{ns:Image}} (MediaWiki 1.13 ou mais recente).

Arquivos de Mídia como imagens pode ser incorporado em texto que usa o regular internal link syntax. Imagens também podem ser redimensionadas para ajustar melhor dentro da página, see below.

Um grupo de wikis podem ser designado a pessoa "wiki preferida" para transferir arquivos para, com o compartilhar desses arquivos habilitado. Entre wikis de Wikimedia, Wikimedia Commons trabalha para isto. Se imagens forem transferidas para Wikimedia Commons, eles podem ser usados em todo os wikis de Wikimedia. Imagens transferidas de outro wiki (por exemplo Wikipedia) só pode ser usado em páginas desse wiki. Assim isto só deveria ser feito se houver uma razão especial para isto, como substituir uma imagem localmente de Câmara dos Comuns com uma versão local sem trocar as ligações.

Imagens também podem ser produzidas pelo sistema de especificações em wikitext:

Contents

Tipos de Arquivos Suportados

Por padrão, MediaWiki só lhe permite transferir certos tipos de arquivos (extensões gif , jpg , jpeg , ogg e png ). Isto é administrado pelas ordens contida no arquivo includes/DefaultSettings.php[2]: <source lang="php"> /**

* Esta é a lista de extensões preferidas para transferir arquivos. Arquivos  
* transferidos com extensões não contidas nesta lista ativará uma advertência.
*/

$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );

/** Arquivos com estas extensões, nunca serão permitidos sua transferência. */ $wgFileBlacklist = array(

   # HTML pode conter JavaScript cookies-roubando e bug de web
   'html', 'htm', 'js', 'jsb', 'mhtml', 'mht',
   # Manuscritos de PHP podem executar código arbitrário no servidor
   'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
   # Outros tipos que podem ser interpretados por alguns servidores
   'shtml', 'jhtml', 'pl', 'py', 'cgi',
   # Pode conter executáveis prejudiciais para vítimas de Windows
   'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );

/** Arquivos com estes mime types nunca serão permitidos para transferência

* se $wgVerifyMimeType estiver habilitado.
*/

$wgMimeTypeBlacklist= array(

   # HTML pode conter JavaScript rouba-cookies e bug de web
   'text/html', 'text/javascript', 'text/x-javascript',  'application/x-shellscript',
   # Manuscritos de PHP podem executar código arbitrário no servidor
   'application/x-php', 'text/x-php',
   # Outros tipos que podem ser interpretados por alguns servidores
   'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
   # Metafile de Windows, vulnerabilidade do lado do cliente em alguns sistemas,
   'application/x-msmetafile'

);

/** Esta é uma flag para determinar a qual ou não extensões de arquivos

*  inspecionar em transferência. */

$wgCheckFileExtensions = false;

/**

* Se este é tornado off, os usuários podem anular a advertência para arquivos 
* não cobertos por $wgFileExtensions.
*/

$wgStrictFileExtensions = true;

/** Adverte se arquivos a serem transferidos forem maiores que isto (em bytes),

*  ou false para desabilitar */

$wgUploadSizeWarning = false; </source>

Leve em conta que há uma lista negra de extensões de arquivo e tipos mime type. Por motivo de segurança programas executáveis não são permitidos através de padrão. Também alguns tipos de arquivo que poderiam ser transferido no passado já não podem ser transferido, mas os arquivos já transferidos ainda podem ser usados.

SVG transferir imagens podem ser unidos, mas não podem ser incorporados diretamente, por exemplo Media:Wikipedia3fnlc1.svg (image description page) - veja também m:SVG image support.

Para vídeos veja m:Video policy.

Transferindo

Para transferir um arquivo, em geral, vão para Câmara dos Comuns,log in there, e transfira o arquivo usando o link de transferência commons:Special:Upload. No menu na esquerda abaixo da "caixa de ferramentas" você terá uma ligação nominada "Upload file". Se você quiser transferir o arquivo para um do outro wikis, você pode seguir os mesmos passos como a Câmara dos Comuns, mas esteja seguro de recorrer às diretrizes locais.

Antes de transferir por favor assegure-se que você tem direitos para transferir e redistribuir o arquivo(s) em questão, e que eles concordam com qualquer projeto adicional licensing requirements do Wikimedia da Câmara dos Comuns e outros criteria for inclusion. Por favor note que como as páginas de wiki, podem ser editadas por outros ou apagadas sua transferência se eles pensarem que serve o projeto, e você pode ser bloqueado de transferir se você abusar do sistema.

Os formatos preferidos são JPEG para imagens fotográficas com milhões de cores e sombras; PNG para imagens de pixelated de cor fixada como ícones; SVG para desenhos estruturados, logotipos; e OGG para audio.

Uma vez que você recebeu a página de transferência, na maioria dos navegadores, você verá um botão "Navegue... " que exporá o arquivo de padrão de seu sistema operacional diálogo aberto. Escolhendo um arquivo encherão o nome desse arquivo no campo de texto próximo ao botão. Transfira o arquivo debaixo de um nome satisfatório, porque renomear o arquivo depois de transferir não é possível. O nome de arquivo não necessita estar igual ao nome de arquivo armazenado em seu computador. Por favor nomeie seus arquivos descritivelmente para evitar confusão e ter certeza que o nome de arquivo tem o próprio extension. Os nomes de arquivo são caso-sensíveis (isto solicita até mesmoa extensão de nome de arquivo) exceto, na maioria do wikis, para o primeiro caractere.

Ao escolher um nome para um arquivo em Câmara dos Comuns, não use um nome que já está em uso em qualquer projeto no qual o arquivo pode ser usado. Este é porque um arquivo em Câmara dos Comuns com o mesmo nome como um no local não é acessível para incorporar no projeto local. Porém, se o arquivo novo em Câmara dos Comuns deveria substituir o local, e o local serão apagados então, você pode usar o mesmo nome.

Você também tem que conferir o box que afirma que você não está violando nenhum direito autorais transferindo o arquivo. Aperte o botão "Transferir arquivos" para terminar a transferência. Isto pode levar algum tempo se você tiver uma conexão de internet lenta.

Quando um arquivo for transferido com o mesmo nome como um existindo a pessoa, o antigo é substituído, e o sistema advertirá contra sobrescrever. Quando um arquivo de mídia é substituído transferindo um novo com o mesmo nome (por exemplo uma imagem em um artigo é substituída), este não se aparece na história de página do artigo, nem no Related changes do artigo, nem na história de revisão da página de descrição de imagem (a menos que a seção de descrição também seja trocada). Porém, é gravado na seção de História de Imagem da página de descrição de imagem, e troca m:Upload log. Então, para assistir trocas em imagens em um artigo, não é suficiente assistir o próprio artigo. Assistindo as páginas de descrição de imagem lhe ajudarão a encontrar a troca no arquivo (de MediaWiki 1.13).

Protection de uma página de imagem é automaticamente também proteção da própria imagem: exemplo. uma imagem nova debaixo do nome da imagem existente pode ser só transferido por um sysop.

Quando substitur ou apagar um arquivo em Câmara dos Comuns, todos os projetos que usam o arquivo são afetados. Então é importante que a página de imagem em Câmara dos Comuns seja unida às páginas de imagem locais desse arquivo em todos os projetos que usam isto. Nestes, até mesmo se eles nunca foram criados explicitamente e então tenha um editable vazio partir, o " arquivo une " seção mostra as páginas locais que usam o arquivo.

Veja commons:Commons:First steps para mais detalhes.

Special:Imagelist provê a mesma informação como o Upload log, mas usa a hora local do usuário em vez do tempo de padrão (ajuste para Coordinated Universal Time para projetos de Wikimedia). além dá os tamanhos de arquivo. Mais adiante permite carregar partes e ordenar através de tamanho além de ordenar através de data, e não só tem ligações à descrição de imagem pagina, mas também diretamente para as imagens.

Embutindo arquivos internos

Para embutir um arquivo interno em um texto, você tem só que especificar seu nome de arquivo com a sintaxe de ligação interna ([[ ]]). Assim, [[image:tst.png]] File:Tst.png.

Aqui,"internal" recorre ao mesmo projeto e Câmara dos Comuns. É assumido que um nome de imagem se refere a um no mesmo projeto se existir, caso contrário para um em Câmara dos Comuns. Se nenhum existe uma ligação à página de transferência se aparece, com classe = novo " (ligação " " vermelha). A ligação é feita igual a um para o edite página da página de imagem não-existente, a não ser que os exibe anteriores a forma canônica do nome da página.

Só imagens própria podem ser apresentadas automaticamente, som não é executado automaticamente.

Uma imagem interna incorporada automaticamente ligações para o image page que exibe a imagem completa, ou, dependendo de preferências, uma versão reduzida com uma ligação para a versão completa. A página também provê informação sobre a imagem.

Não podem ser incorporadas imagens em lista de imagem MediaWiki:Bad ; eles aparecem como uma ligação regular à página de imagem. Podem ser adicionadas exceções para permitir uma imagem listada em artigos pertinentes particulares. Por exemplo, veja lista de imagem de w:en:MediaWiki:Bad.

Options

The internal-link style markup for embedding a file can take various options separated with a pipe character ("|"). In brief, they are [[Image:{name}|{type}|{location}|{size}|{upright}|{border}|{caption}]].

Type
'thumb' / 'thumbnail' or 'frame'. Causes image to be displayed with specific formatting (see below).
Location
'right', 'left', 'center' or 'none'. Determines placement of the image on the page. Defaults to 'right', when combined with 'thumb' or 'frame'.
Size
{width}px or {width}x{height}px, scales the image to be no greater than the given width and height, keeping its aspect ratio.
Upright
for use only on images that are taller than they are wide. This scales the image differently, considering both width and height instead of only width.
Border
adds a border around the image.
Caption
Any element which cannot be identified as one of the above is assumed to be caption text.
Link
To allow an image to link to an arbitrary title, URL or just nowhere.
Alt
For changing the alternative text (alt="") of an image.

Type

Image embedding syntax without type specification displays the image inline without any frame or visible caption.

For example, [[image:tst.png|abc]] gives abc. The caption substitutes the 'title' attribute of the generated HTML image tag.

To add the uploaded image to an article as a thumbnail, one can write [[Image: file name including extension |thumb|caption]].

Therefore [[image:tst.png|thumb|abc]] and [[Image:Gelderland-Position.png|thumb|abc]] respectively give the images on the right. Both the images themselves and the "enlarge" icon in the frame link to the image pages. Template:-

You can also specify the size of the image. However, the default thumbnail width can be set in the preferences, so typically it is better not to specify "px", in order to respect the users' preferences. If the original size of the image is smaller than the specified size, it will not be enlarged.

Thus [[image:tst.png|thumb|50px|abc]] is not enlarged, while [[Image:Gelderland-Position.png|thumb|50px|abc]] is shown at 50px-wide (see on the right). Template:-

If you use the "frame" option the image will not be scaled, and size specifiers will be invalid. See [[image:tst.png|frame|abc]] and [[Image:Gelderland-Position.png|frame|50px|abc]] on the right for example. Template:-

Use <br clear="all" />, or on projects that have Template:Clr or Template:- {{clr}} or {{-}} to stop the text floating around the image.

Location

The location of the image within the page can be specified as 'right', 'left', 'center' or 'none'. Once specified, you cannot align the images horizontally, unless you use other markups such as those for a table.

For example, [[image:tst.png|left]] puts the image at the left; text that follows floats to the right of it; if a second image immediately comes after the first, the second vertically follows the first.

[[image:tst.png|left]][[image:tst.png|left]]
''Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh
[[image:tst.png|left]]
euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.''

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh

euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Template:-

Compare this with

[[image:tst.png]][[image:tst.png]]
''Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh
[[image:tst.png]]
euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.''

File:Tst.pngFile:Tst.png Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh File:Tst.png euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Template:-

[[image:tst.png|thumb|left]] or [[image:tst.png|frame|left]] also works.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

Template:-

If you specify "right", the image is placed at the right.

[[image:tst.png|right]]
''zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet 
dolore magna aliquam erat volutpat.''

zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Template:-

When used with a type specifier, the result is the same with when you did not specify any location.

[[image:tst.png|thumb|right]]
''zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet 
dolore magna aliquam erat volutpat.''

zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Template:-

You can also combine them.

[[image:tst.png|left]][[image:tst.png|right]]
''zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet 
dolore magna aliquam erat volutpat.''

zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Template:-

[[image:tst.png|thumb||left]][[image:tst.png|thumb]]
''zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet 
dolore magna aliquam erat volutpat.''

zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Template:-

With [[image:tst.png|none]], the image is put at the left, and text that follows starts below it, not floating to its right.

[[image:tst.png|none]]
''Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat,
vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim
qui blandit praesent lupta''

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent lupta

Size

The size of the images can be reduced and enlarged by specifying with px. You can either specify its width or width and height. In the latter case the image will keep its original aspect ratio: either the width or the height will be equal to the specified maximum, whichever allows the other to be <= the maximum.

Therefore, [[image:tst.png|40px|abc]] gives abc and [[image:tst.png|70x60px|abc]] gives abc.

Or

text [[image:Quill and ink.png]] text [[image:Quill and ink.png|5px|]]
text [[image:Quill and ink.png|100px|demo]] text

gives

text File:Quill and ink.png text File:Quill and ink.png text demo text

Caption

Giving a caption is strongly recommended for the sake of accessibility. Inline images cannot have a caption, but they can have a "title"-attribute (often misidentified as the "alt" attribute, which has a different purpose), which is shown in the hoverbox (in the cases above, for the image it is the same as the caption, and for the enlarge icon it is "Enlarge").

Be careful not to place a pipe character ("|") at the end of the syntax, unless you are doing it on purpose. Because of the piped link function, if the syntax ends with a pipe character, the file name will be treated as the caption.

[[image:tst.png|abc]]
[[image:tst.png|abc|]]
[[image:tst.png|40px|abc]]
[[image:tst.png|40px|abc|]]
[[image:tst.png|abc|40px]]
[[image:tst.png|abc|40px|]]

abc File:Tst.png abc File:Tst.png 40px File:Tst.png

File:Middle east.jpg
Middle East; for more detailed pdf-version see [1]

The caption can contain links. See right for an example. Template:-

Link

Important note: This should only be used with images that don't require attribution (mostly Public Domain images). Other images must link to the image description page, otherwise they violate copyrights
  • Without link: [[Image:Pic.jpg|link=]]
  • With internal link: [[Image:Pic.jpg|link=Main_Page]]
  • With external link: [[Image:Pic.jpg|link=http://google.com/]]

Alt

[[Image:Pic.jpg|alt=This is displayed if the image isn't shown! Furthermore, IE may show this as tooltip.]]

Gallery

The gallery-tag is a quick way to show thumbnails in a number of columns. The images will have a single fixed width. The gallery-tag also allows text to take the position of an image. The resulting HTML is that of a table with class="gallery", with cells with class="gallerybox".

Each entry is of the form Image:image name or Image:image name|caption, possibly with links.

A title to the gallery can be given with "gallery caption" parameter. The number of images per row can be set by "perrow"; the default is 4, but perrow is ignored on Commons (as of 2009-01-15). The width and height per image ("widths" and "heights") can be set as well. The height of the caption depends on the image width and varies per image with the length of the caption. The height of each table row is the maximum height needed in that row for an image with a caption.

Example:

<gallery caption="Sample gallery" widths="100px" heights="100px" perrow="6">
Image:Drenthe-Position.png|[[w:Drenthe|Drenthe]], the least crowded province
Image:Flevoland-Position.png
Image:Friesland-Position.png|[[w:Friesland|Friesland]] has many lakes
Image:Gelderland-Position.png
Image:Groningen-Position.png
Image:Limburg-Position.png
Image:Noord_Brabant-Position.png
Image:Noord_Holland-Position.png
Image:Overijssel-Position.png
Image:Zuid_Holland-Position.png|[[w:South Holland|South Holland]], the most crowded province
lakes
Image:Zeeland-Position.png
</gallery>
[[Category: Locator maps of municipalities of Flevoland]] 

gives:

Galleries in categories

A gallery of images on a category page is automatically shown as the fourth section of this category page. The first 20 characters of the image name are shown, with dots if that is not the full name. Both the image and the name link to the image page, instead of just the image. No alternative text or other links are possible. The file size is also shown.

For a comparison, see commons:Category:William-Adolphe Bouguereau and commons:William-Adolphe Bouguereau.

Images in a table

Using table syntax, with images in separate cells, and the image syntax explained elsewhere on this page, gives more control over size, layout, captions, etc. than each of the two methods above. However, only a category page automatically gives file sizes.

Example of an image table:

{| border="1"
|+'''Provinces of the Netherlands'''
|-
| valign="top"|
[[Image:Drenthe-Position.png|thumb|left|150px|[[w:Drenthe|Drenthe]], the least crowded province]]
| valign="bottom"|
[[Image:Flevoland-Position.png|thumb|left|100px|]]
| valign="top"|
[[Image:Friesland-Position.png|thumb|left|100px|]]
|-
|
|-
| valign="top"|
[[Image:Gelderland-Position.png|thumb|left|100px|]]
| valign="top"|
[[Image:Zuid_Holland-Position.png|thumb|left|100px|[[w:South Holland|South Holland]], the most crowded province]]
| valign="top"|
[[Image:Utrecht-Position.png|thumb|left|50px|]]
|}

gives:

Provinces of the Netherlands
File:Drenthe-Position.png
Drenthe, the least crowded province

Note that, with this method, each image has a width specified by the size option, if any, and a height depending on whether there is caption or not, and how long the caption is. The width of a column is determined by the widest image in it, and the height of the row is determined by the tallest image in it.

template:gallery ( talk edit history links ) supports making a gallery using table syntax.

The parameters "left" and "right" may give complications inside a table (and may not be needed anyway), depending on the browser. In IE the first table sometimes (!) displays text through the image:

{| border="1"
| [[Image:Crystal_Clear_app_clock.png|left]]
|abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz
|}
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
{| border="1"
| [[Image:Crystal_Clear_app_clock.png]]
|abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz
|}
File:Crystal Clear app clock.png abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz

Linking

To link to an uploaded file, e.g. Flag of Somalia.svg, use [[Media:Flag of Somalia.svg]] instead of [[Image:Flag of Somalia.svg]], giving Media:Flag of Somalia.svg; to link to the image description page, use [[:Image:Flag of Somalia.svg]], giving Image:Flag of Somalia.svg (the first colon is not displayed). In the case of non-image uploads, e.g. office files (if allowed by the system), the keyword 'media' is used even though office documents are not typically classed as media, in the context of audio/video etc.

Piped links work as usual. Existence detection, with a link to the edit page if the page does not exist, works as usual, but is applicable for the image page, not the file.

Interwiki linking style gives a link to the image page. If interlanguage links would be applicable, use a colon in front of the language code, e,g. [[:de:Bild:Europa-Pos.png]], to avoid the link being put in the margin. For embedding (if possible, see below) and linking to the file itself, use external link style.

External link syntax is as usual. However, if you want a link to an image proper on a page of a project that allows embedded external images, use a bracketed link syntax and not just the URL, to prevent embedding.

Below one can see the result of the three types of internal link style and external link style on this project. To test this in another project, copy the wikitext there. If applicable, check also the interlanguage links at the margin of the page. Note that some links go to the image description page, others just to the image itself.

Navigational maps

Navigational maps like [4] have map areas linked to pages. The html with <area> tags can not be put in the wikitext. However, there are the following possibilities:

  • With ImageMap (MW 1.9+) you can define areas in an image and link to wiki pages when clicking on that area.
  • EasyTimeline allows the creation of an image and a page embedding that image, with rectangular map areas defined by <area> tags in the html. The title of a link to a non-internal page is only the domain name, e.g. "en.wikipedia.org/..". The length and width of the rectangle can not be controlled, except that it depends on the length of the link label and its font size. In case of overlap of rectangles one has to look at the hoverbox or statusbar to avoid following the wrong link. In case of much overlap it may not be possible to use all links.
  • One can divide an image in rectangles, like in these chess and go positions, or superimpose an area with images (see above) and link each rectangle/image to the desired target by means of a redirect on the image page (provided that the target is internal).

See also:

Example using ImageMap

Example:

<imagemap>
Image:Sudoku dot notation.png|300px
circle  320  315 165 [[w:1|1]]
circle  750  315 160 [[w:2|2]]
circle 1175  315 160 [[w:3|3]]
circle  320  750 160 [[w:4|4]]
circle  750  750 160 [[w:5|5]]
circle 1175  750 160 [[w:6|6]]
circle  320 1175 160 [[w:7|7]]
circle  750 1175 160 [[w:8|8]]
circle 1175 1175 160 [[w:9|9]]
default [[w:Number|Number]]
</imagemap>

Output of this example: <imagemap> Image:Sudoku dot notation.png|300px circle 320 315 165 1 circle 750 315 160 2 circle 1175 315 160 3 circle 320 750 160 4 circle 750 750 160 5 circle 1175 750 160 6 circle 320 1175 160 7 circle 750 1175 160 8 circle 1175 1175 160 9 default Number </imagemap>

See also:

Examples using EasyTimeline

Example 1

<timeline>
ImageSize  = width:400 height:150
PlotArea   = width:400 height:150 left:0 bottom:0
TimeAxis  = orientation:vertical # dummy, required
Period    = from:0 till:1 # dummy, required
Define $s = fontsize:XL
TextData  =
  pos:(50,120) $s text:[http://en.wikipedia.org/wiki/Leiden|o Leiden]
  pos:(150,110) $s text:[http://en.wikipedia.org/wiki/Alphen%20aan%20den%20Rijn|o Alphen aan den Rijn]
  pos:(10,80) $s text:[http://en.wikipedia.org/wiki/The%20Hague|o The Hague]
  pos:(50,40) $s text:[http://en.wikipedia.org/wiki/Rotterdam|o Rotterdam]
</timeline>

gives

<timeline> ImageSize = width:400 height:150 PlotArea = width:400 height:150 left:0 bottom:0 TimeAxis = orientation:vertical # dummy, required Period = from:0 till:1 # dummy, required Define $s = fontsize:XL TextData =

 pos:(50,120) $s text:Leiden
 pos:(150,110) $s text:Alphen aan den Rijn
 pos:(10,80) $s text:The Hague
 pos:(50,40) $s text:Rotterdam

</timeline>

Example 2

<timeline>
Preset     = TimeHorizontal_AutoPlaceBars_UnitYear
ImageSize = width:500 barincrement:50
Period     = from:0 till:12
BarData=
  bar:a
  bar:b
  bar:c
Define $s = fontsize:XL
BackgroundColors = canvas:white
PlotData=
  width:20
  shift:(45,-5)
  bar:a from:3 till:4 $s text:[http://en.wikipedia.org/wiki/Leiden|Leiden]
  bar:a  from:6 till:7 $s text:[http://en.wikipedia.org/wiki/Alphen%20aan%20den%20Rijn|Alphen aan den Rijn]
  bar:b  from:1 till:2 $s text:[http://en.wikipedia.org/wiki/The%20Hague|The Hague]
  bar:c  from:3 till:4 $s text:[http://en.wikipedia.org/wiki/Rotterdam|Rotterdam]
</timeline>

gives

<timeline> Preset = TimeHorizontal_AutoPlaceBars_UnitYear ImageSize = width:500 barincrement:50 Period = from:0 till:12 BarData=

 bar:a
 bar:b
 bar:c

Define $s = fontsize:XL BackgroundColors = canvas:white PlotData=

 width:20
 shift:(45,-5)
 bar:a from:3 till:4 $s text:[5]
 bar:a  from:6 till:7 $s text:aan den Rijn
 bar:b  from:1 till:2 $s text:Hague
 bar:c  from:3 till:4 $s text:[6]

</timeline>

Alternatives

Some attempts for other alternatives (note the hover boxes):

o
o
o

Ascii art map, with both the city outline and the label clickable:

    x
   xxx Leiden
    x

 xx
xxxx The Hague
xxx

        xx
       xxxxx Rotterdam
        xxxx

When external images can be embedded:

http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png

The HTML titles are "w: Leiden", etc., the alt attribute is "Tst.png". Opera shows the title in the hoverbox, and also the url, IE only shows the titles.

With labels:

http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png Leiden
http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png The Hague
http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png Rotterdam

See also m:Maps, m:Maps' clickability.

For using an image as a link to another document, see Help:Navigational image. For more possibilities, see en:Wikipedia:Extended image syntax. Also, the source of existing pages with images are useful as examples.

Template for showing links to files with appropriate icons

For a template to enable files to be shown as links with relevant icons, as well as a link to the file's wiki page, see here.

This is for wikis that support embedding external images - which is most personal, corporate and organizational wikis based on MediaWiki. Notable exceptions are Wikipedia and Meta. Because Meta can't render this template, here is an image of how the template appears: MetaWikiPedia:Image:PDF file example.png

See also

External links

Template:Ph:Images and other uploaded files/pt-br

Links to other help pages

Help contents
Meta | Wikinews | Wikipedia | Wikiquote | Wiktionary | commons: | mw: | b: | s: | mw:Manual | google
Versions of this help page (for other languages see below)
Meta | Wikinews | Wikipediahttp://en.wikipedia.org/Help:Images_and_other_uploaded_files/pt-br | Wikiquote | Wiktionary
What links here on Meta or from Meta | Wikipedia | MediaWiki
Reading
Go | Search | Stop words | URL | Namespace | Page name | Section
Backlinks | Link | Piped link | Interwiki link | Redirect | Category | Image page
Logging in and preferences
Logging in | Preferences | User style
Editing
Advanced editing | Editing FAQ | Edit toolbar | Export | Import | Shortcuts
Tracking changes
Recent changes (enhanced) | Related changes | Watching pages | Diff
Page history | Edit summary | User contributions | Minor edit | Patrolled edit
Style & formatting
Wikitext examples | Reference card | HTML in wikitext | List | Table | Sorting | Colors
Special input and output
Inputbox | Special characters | Displaying a formula | Images (uploads) | EasyTimeline
Advanced functioning
Template | Advanced templates | Parser function | ParserFunctions | Parameter default
Variable | Magic word | System message | Substitution | Array | Calculation
Page management
Starting a new page | Renaming (moving) a page | Protecting pages | Deleting a page
Special pages
Talk page | Testing | Sandbox | CentralNotice

Template:-

Personal tools
support the site