Help:Images
From STIQ
| Important note: When you edit this page, you agree to release your contribution into the public domain. If you don't want this or can't do this because of license restrictions, please don't edit. This page is one of the Public Domain Help Pages, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Help:Contents for an overview of all pages. |
Contents |
Typically you would upload an image file to the wiki (See Help:Managing files) ...before you use the following wiki text to place the image on an article:
| Description | You type | You get |
| Embed image (with alt text) |
| |
| Link to description page |
| |
| Link directly to file |
| |
| Thumbnail (centered, 100 pixels wide, with caption) |
| |
| Border (100 pixels) Results in a very small gray border |
| |
| Frameless Like thumbnail, respect user preferences for image width but without border and no right float. |
|
Syntax
The full syntax for displaying an image is:
[[Image:{name}|{options}]]
Where options can be zero or more of the following, separated by pipes:
thumb,thumbnail, orframe: Controls how the image is formattedleft,right,center,none: Controls the alignment of the image on the page{width}px: Resizes the image to the given width in pixels{caption text}
The options can be given in any order. If a given option does not match any of the other possibilities, it is assumed to be the caption text. Caption text can contain wiki links or other formatting.
Other files
You can link to an external file using the same syntax used for linking to an external web page.
[http://url.for/some/image.png]
Or with different text:
[http://url.for/some/image.png link text here]
If it is enabled on your wiki (see Manual:$wgAllowExternalImages), you can also embed external images. To do that, simply insert the image's url:
http://url.for/some/image.png
Gallery of images
It's easy to make a gallery of thumbnails with the <gallery> tag. The syntax is:
<gallery>
Image:{filename}|{caption}
Image:{filename}|{caption}
{...}
</gallery>
Captions are optional, and may contain wiki links or other formatting.
for example:
<gallery> Image:Example.jpg|Item 1 Image:Example.jpg|a link to [[Help:Contents]] Image:Example.jpg Image:Example.jpg Image:Example.jpg|''italic caption'' </gallery>
is formatted as:
a link to Help:Contents |
|||
Administration of images/files
See here: Manual:Image Administration
External Links
| MetaWiki: Help:Images and other uploaded files |
>== Template ==
<onlyinclude><div class="LanguageLinks">
<table width="100%">
<tr valign="top" style="background: #EEF3E2">
<td style="width: 25px; padding-left: 0.5em;">
</td>
<td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;">Languages: </td><td style="padding: 1px 1em 0; background: #F6F9ED;">
English
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/ar | • {{#if: Help:Images|العربية| العربية}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/br | • {{#if: Help:Images|Brezhoneg| Brezhoneg}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/ca | • {{#if: Help:Images|Català| Català}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/cs | • {{#if: Help:Images|Česky| Česky}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/de | • {{#if: Help:Images|Deutsch| Deutsch}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/el | • {{#if: Help:Images|Ελληνικά| Ελληνικά}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/es | • {{#if: Help:Images|Español| Español}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/fa | • {{#if: Help:Images|فارسی| فارسی}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/fi | • {{#if: Help:Images|Suomi| Suomi}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/fr | • {{#if: Help:Images|Français| Français}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/he | • {{#if: Help:Images|עברית| עברית}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/hu | • {{#if: Help:Images|Magyar| Magyar}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/id | • {{#if: Help:Images|Bahasa Indonesia| Bahasa Indonesia}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/it | • {{#if: Help:Images|Italiano| Italiano}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/ja | • {{#if: Help:Images|日本語| 日本語}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/ko | • {{#if: Help:Images|한국어| 한국어}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/mr | • {{#if: Help:Images|मराठी| मराठी}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/nl | • {{#if: Help:Images|Nederlands| Nederlands}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/no | • {{#if: Help:Images|Norsk (bokmål)| Norsk (bokmål)}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/oc | • {{#if: Help:Images|Occitan| Occitan}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/pl | • {{#if: Help:Images|Polski| Polski}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/pt | • {{#if: Help:Images|Português| Português}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/ro | • {{#if: Help:Images|Română| Română}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/ru | • {{#if: Help:Images|Русский| Русский}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/sq | • {{#if: Help:Images|Shqip| Shqip}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/sr | • {{#if: Help:Images|Српски / Srpski| Српски / Srpski}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/sv | • {{#if: Help:Images|Svenska| Svenska}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/th | • {{#if: Help:Images|ไทย| ไทย}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/vi | • {{#if: Help:Images|Tiếng Việt| Tiếng Việt}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/yue | • {{#if: Help:Images|粵語| 粵語}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/zh | • {{#if: Help:Images|中文| 中文}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/zh-hans | • {{#if: Help:Images|中文(简体)| 中文(简体)}}|}}
{{#ifexist: {{#if: Help:Images | Help:Images | {{#if: Help | Help:}}Images}}/zh-hant | • {{#if: Help:Images|中文(繁體)| 中文(繁體)}}|}}
</td></tr></table></div></onlyinclude>
Syntax
{{{Languages|PageName}}}
- PageName (optional) - the name of the page to display language links for. If omitted then the English version of the current page is used. This parameter can normally be omitted, as it is only required if you want to link to a page other than the one you place the template on, which is very uncommon. If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on MediaWiki/fr you would need to use
{{{Languages|MediaWiki}}}and not{{{Languages|MediaWiki/fr}}}).
Usage
The template should only be placed on pages that exist in more than one language, and it should be placed in the same location on each translation of the page.
The English version of a page is always the main version, with all other languages as sub-pages, named using the appropriate language code (see below).
For example, on the Main Page you would include the text {{{Languages}}}, both on Main Page itself, and on each of its language sub-pages. The template automatically creates links to any language sub-pages that exist, e.g. Main Page/ja<tt>, <tt>Main Page/fr, and ignores non-existant languages.
See Project:Language policy for further details about translating pages.
Supported languages
This shows you the name of each language's sub-page (using Main Page as an example). Other languages may be added easily as necessary. Please use the appropriate prefix, as used on Wikipedia when adding a new language. Please do not add languages for which no pages exist yet, as this will increase the time needed to include the template without adding any benefit (languages are only displayed to the user when the relevant page exists).
The link on the language names goes to the Wikipedia in that language. If no Wikipedia in your language exists, do not add pages in that language to MediaWiki.org! This wiki is not the place for language advocacy - please go through the correct channels, and once your language has a Wikipedia then please return to add content here.
| Page Name | Language |
|---|---|
| Main Page | English |
| Main Page/ar | Arabic |
| Main Page/br | Breton |
| Main Page/ca | Catalan |
| Main Page/cs | Czech |
| Main Page/de | German |
| Main Page/el | Greek |
| Main Page/es | Spanish |
| Main Page/fa | Persian |
| Main Page/fi | Finnish |
| Main Page/fr | French |
| Main Page/he | Hebrew |
| Main Page/hu | Hungarian |
| Main Page/id | Indonesian |
| Main Page/it | Italian |
| Main Page/ja | Japanese |
| Main Page/ko | Korean |
| Main Page/mr | Marathi |
| Main Page/nl | Nederlands |
| Main Page/no | Norwegian |
| Main Page/oc | Occitan |
| Main Page/pl | Polish |
| Main Page/pt | Portugese |
| Main Page/ro | Romanian |
| Main Page/ru | Russian |
| Main Page/sq | Albanian |
| Main Page/sr | Serbian |
| Main Page/sv | Swedish |
| Main Page/th | Thai |
| Main Page/vi | Vietnamese |
| Main Page/yue | Cantonese |
| Main Page/zh | Chinese |
| Main Page/zh-hans | Chinese (Simplified) |
| Main Page/zh-hant | Chinese (Traditional) |
Example
Here is how the language bar looks on the MediaWiki page: Languages

