說明:上傳檔案

你可以透過MediaWiki上傳圖片,並將其插入文本中,也可以上傳其他類型的檔案(見本頁支援的檔案類型章節)。在早期的MediaWiki系統中,任何檔案都稱為「圖片(Image)」,而現在用「檔案(File)」或「媒體(Media)」代稱。

檔案上傳後,系統會自動建立一個該檔案的說明頁,頁面名稱包含檔案名(含副檔名)和「File:」前綴(或通常是 {{ns:File}} (MediaWiki 1.14 以上)、{{ns:Image}} (MediaWiki 1.13 或更早)變數的值)。

圖片等多媒體檔案可以透過內部連結插入文本中。可以變更圖片顯示尺寸以適應頁面,具體方法見本頁#插入內部圖案

維基媒體有一個「專門用於上傳檔案」的維基項目,上傳的檔案可用於其他維基項目,這個項目就是維基共享資源(僅限自由版權內容,無『正當使用(Fair use)』內容)。上傳於維基共享資源的圖片可以被所有維基專案使用。而上傳到其他維基的檔案不能用於其他專案,且在該專案上無法使用維基共享資源上的同名檔案。所以若無特殊理由(例如:以局部版本取代維基共享資源上之圖 ,而不變更連結),請將自由版權內容上傳到維基共享資源。

有些圖片並不是用戶上傳的,而是系統根據代碼自動生成的,例如:

表格通常是由HTML代碼自動生成的,不屬於圖片的範疇。

上傳

編輯

欲上傳一個自由版權的檔案,可前往維基共享資源登入後點擊位於左側列表「Participate」下的「上傳檔案」連結,根據指引上傳檔案。如果你希望僅向某個維基項目(例如維基百科)上傳檔案,可以在該維基參照以上步驟上傳,但請留意該維基的方針。

上傳前,請務必確認上傳該檔案是合法的,並且檔案符合特許協議條件收錄標準。您上傳的檔案和其他維基頁面一樣可被其他用戶編輯或提出刪除請求。若用戶屢次違反上傳檔案的政策規定,可能會被禁止再上傳檔案。

若要上傳檔案,照片的推薦格式是JPEG格式,無損壓縮的位圖(例如圖示)的格式最好是PNG,結構圖紙、LOGO最好是SVG,音訊則推薦使用OGG格式。請給檔案取一個描述性的名稱,以避免歧義,詳見本章「檔案名稱」。

上傳時,請根據頁面提示選擇檔案,並留意版權說明,確定你可以合法上傳該檔案。如果你的網絡速度較慢,上傳過程耗時可能會較長,請耐心等待。

上傳一個與現有檔案同名的檔案,舊檔將被取代。當一個檔案被取代時(例如條目中的圖片被取代),這個變更不會在條目歷史中記錄下來,也不會在條目的相關變更中顯示,亦不會在圖片描述頁的歷史中記錄(除非描述也被同時變更)。但是,這會在圖片描述頁的「歷史版本」中被記錄,並且上傳日誌中會留下記錄。因此,欲檢視條目中的圖片、檔案變更歷史,應當檢視檔案描述頁(MediaWiki 1.13之後的版本)。

Special:Imagelist provides the same information as the Upload log, but it uses the user's local time instead of the default time (set to Coordinated Universal Time for Wikimedia projects). In addition it gives the file sizes. Further it allows loading of portions and sorting by size in addition to sorting by date, and it has not only links to the image description pages, but also directly to the images.

當一個圖片頁被保護時,圖片本身也會被保護。

取代或刪除維基共享資源上的檔案時,所有使用該檔案的維基專案都會受到影響。所以必須連結維基共享上之檔案頁至各維基子專案內之相同檔案。縱使這些檔案未被「正式製造」(created explicitly)而無可編輯之內容,「Image links」一節仍顯示各子專案內有用此檔之頁。

維基共享資源的更多細節見入門須知

檔案名稱

編輯

上傳前,請先為檔案取個適當的名字,檔案一旦上傳就無法更名,所以請慬慎取檔案名。各空格、破折號、括號、大小寫都應符合習慣。好的檔案名應該是有描述性的,例如File:Rotating earth.gif,請不要使用類似DSC_4432.jpg的檔案名。檔名雖不會出現於插使用該檔案的頁面,但見於包含此檔案之分類(category)等地方。

檔案名的大小寫、繁簡體是有區分的,對大多數的維基專案,第一個字母不受此限制。為方便繁/簡體用戶查找,請盡量避免使用漢字作為檔名。

上傳檔案時,如果使用的檔案名已經存在,將會取代舊檔,系統會發出警告。如果不希望取代舊檔,請另取一個還未使用的檔案名。

支援的檔案類型

編輯

缺省情況下,MediaWiki只允許上傳確定類型的檔案(例如gifjpgjpegoggpng等副檔名),這由includes/DefaultSettings.php中的「$wgFileExtensions」來管理。

/**
 * This is the list of preferred extensions for uploading files. Uploading files
 * with extensions not in this list will trigger a warning.
 */
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'docx', 'xls', 'xlsx', 'pdf' );

/** Files with these extensions will never be allowed as uploads. */
$wgFileBlacklist = array(
    # HTML may contain cookie-stealing JavaScript and web bugs
    'html', 'htm', 'js', 'jsb', 'mhtml', 'mht',
    # PHP scripts may execute arbitrary code on the server
    'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
    # Other types that may be interpreted by some servers
    'shtml', 'jhtml', 'pl', 'py', 'cgi',
    # May contain harmful executables for Windows victims
    'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );

/** Files with these mime types will never be allowed as uploads
 * if $wgVerifyMimeType is enabled.
 */
$wgMimeTypeBlacklist= array(
    # HTML may contain cookie-stealing JavaScript and web bugs
    'text/html', 'text/javascript', 'text/x-javascript',  'application/x-shellscript',
    # PHP scripts may execute arbitrary code on the server
    'application/x-php', 'text/x-php',
    # Other types that may be interpreted by some servers
    'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
    # Windows metafile, client-side vulnerability on some systems
    'application/x-msmetafile'
);

/** This is a flag to determine whether or not to check file extensions on upload. */
$wgCheckFileExtensions = false;

/**
 * If this is turned off, users may override the warning for files not covered
 * by $wgFileExtensions.
 */
$wgStrictFileExtensions = true;

/** Warn if uploaded files are larger than this (in bytes), or false to disable*/
$wgUploadSizeWarning = false;

請注意,某些副檔名是被列入黑名單($wgFileBlacklist)的,譬如,出於安全考慮,通常不允許上傳執行檔(副檔名:「.exe」)。另外,有一些檔案類型,過去是被允許的,但現在禁止上傳,已上傳的這類檔案不會刪除,仍能繼續使用。

關於SVG圖像,見SVG image support

關於視訊,見Video policy

There may be a size limit, the largest one on en: is 6.5 megabytes (but please be reasonable).

The most common type of media apart from images is:

  • sound -- preferred format: Ogg Vorbis.

If you want to upload file types other than .jpg or .ogg, e.g., .pdf, in newer versions of mediawiki, you have to modify the file LocalSettings.php by copying the variable and its contents from DefaultSettings.php. Afterward, you can edit it accordingly: $wgFileExtensions = array( 'png', 'jpg', 'jpeg', 'ogg','doc','xls','ppt','mp3','sxc','pdf' );

You may also need to remove this extension from the filetype blacklist (in /includes/DefaultSettings.php).

Remarks:

上載非圖象檔

編輯

By default, MediaWiki only allows you to upload certain types of files (extensions gif, jpg, jpeg, ogg and png). This is managed by this order in includes/DefaultSettings.php:

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


If you want to be able to upload other file types, for instance ZIP files you must add this line to LocalSettings.php:

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

Caution: do not modify the line in DefaultSettings.php because it will break when updating

Also you may find php and apache limit the filesize of uploads too giving spurious messages on the upload page such as "The file you uploaded seems to be empty. This might be due to a typo in the file name. Please check whether you really want to upload this file." See Q: What affects the maximum file size which can be uploaded? on this page for details: http://meta.wikimedia.org/wiki/Uploading_files#Frequently_Asked_Questions. (It might be better to have this information conglomerated more centrally).

Take in account there is a blacklist of file extensions in includes/DefaultSettings.php:

$wgFileBlacklist = array(
# HTML may contain cookie-stealing JavaScript and web bugs
'html', 'htm',
# PHP scripts may execute arbitrary code on the server
'php', 'phtml', 'php3', 'php4', 'phps',
# Other types that may be interpreted by some servers
'shtml', 'jhtml', 'pl', 'py',
# May contain harmful executables for Windows victims
'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );


Apache has a directive "LimitRequestBody", which controls the maximum number of bytes allowed in ANY http request.

使用恰當的圖示表示連結

編輯

要想使檔案與其相應的圖示一起被放在連結處,同時也有檔案的維基頁面連結, 參見這裏.

這是適合任何支持嵌入外部圖像技術的維基,也是建立在MediaWiki技術之上的最具個性化的,組織性與編制能力的功能。需注意的例外是維基百科和Meta,因為Meta無法編譯此模板,以下為一例:圖像將如何在樣板上被顯示:File:PDF file example.png

圖象檔之修改史

編輯

存檔頁面頁面歷史包含維基文本與可能的參考指向模板和圖像。在舊模板和圖像仍然存在的情況下檢視一個較老版本的頁面時,它將會指向當前版本。因此,前複合的網頁並不會被重建。

連結

編輯

直接連結到檔案位址請用[[Media:檔案名]],例如:Media:tst.png。若要連結至圖之解釋頁,請用 [[:Image:檔案名]],效果:Image:tst.png(首冒號不會顯示)。使用[[Image:tst.png]]會直接顯示圖片,效果: 

在檔案不是圖像的情況下仍然可以使用「Media」關鍵詞,例如通常不認為DOC檔等Office檔案是多媒體檔,但[[Media:檔案名]]的格式仍然有效。

可以使用管道連結,例如[[:Image:tst.png|測試圖片]],效果:測試圖片

在一個維基專案上連結一個檔案時,若該維基專案上有這個檔案,則會優先使用,否則會自動連結到維基共享資源上的檔;即,本維基專案和維基共享資源有同名檔案時,只能使用本維基專案上的那個,這就是強烈建議盡可能將檔案上傳到維基共享資源的原因。若連結的檔案在本維基項目和維基共享資源上都不存在,則會顯示一個紅色連結,連至「上傳檔案」頁面,例如File:So.png

跨維基連結之格式將連結至該圖之描述頁。若要插入連結至圖檔本身(若可能時),請用外連結格式。

如果跨言維基內部連結可行,您可在語言編碼前後各加一個冒號(例:英語的編碼為en)。[[:de:Bild:Europa-Pos.png]],以避免連結被放置到頁邊。

外部連結的語法無特殊要求。然而,如果希望在一個允許外連圖片的維基專案上連結到圖片而不是嵌入,請使用帶方括號的URL,直接使用URL會嵌入圖片(若該維基專案允許外連圖片)。

若要使用圖像作為另一個檔案的連結,請見導覽圖.

插入內部圖案

編輯

此「內部」指專案內或維基共享上。An image name is assumed to refer to the one in the same project if it exists there, otherwise to one on Commons. If neither exists a link to the upload page appears, with class="new" ("red link"). The link is rendered the same as one to the edit page of the non-existing image page, except that the former shows the canonical form of the pagename.

Only images proper can be automatically presented, sound is not automatically played.

An embedded internal image automatically links to the image page, which shows the full image, or, depending on preferences, a reduced version with a link to the full version. The page also provides info about the image.

[[image:tst.png|abc]] gives  

[[image:tst.png|50px|abc]] gives  

The form [[image:tst.png|50px|thumb|abc]] does not allow enlargement, it gives (see on the right):

 
abc

To add the uploaded image to an article as a thumbnail, one can use [[Image: image name including extension |thumb|caption]] or [[Image: image name including extension |thumb|width in pixels px|caption]].

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 (unless, for a special reason, a specific size is required regardless of preferences, or a size is specified outside the range of widths 120-300 that can be set in the preferences).

The caption can contain links. Both the image itself and an icon link to the image page. The icon has the link title "Enlarge" in its hoverbox, even in cases where the image on the image page is smaller. Depending on preferences the image on the image page may be smaller than the thumbnail image, so a link may be convenient from the thumbnail straight to the image in actual size. E.g. [[image:tst.png|thumb|50px|[[Media:tst.png|actual size]]]]

 
Middle East; for more detailed pdf-version see [1]

欲知更多選擇,見en:Wikipedia:Extended image syntax. Also, the source of existing pages with images are useful as examples.

圖像在左

編輯

[[image:tst.png|left|thumb|50px|[[help:contents|demo]]]] 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 abuts to the right side of the first; if there is text in between then the second image is at the lower right of the first, under this text:

 
demo
 
demo
 
demo

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. between the 3rd and 4th images.

 
demo

Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. 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 luptatum zzril delenit augue duis dolore te feugait nulla facilisi. after the 4th image.

With [[image:tst.png|none|thumb|50px|[[help:contents|demo]]]] the image is put at the left, and text that follows starts below it.

 
demo

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

左圖

編輯

[[image:tst.png|right|thumb|50px|[[help:contents|demo]]]] puts the image at the right; text that follows floats to the left of it. The situation is not symmetric with the case above: a second image is put at the extreme right again, under the first.

 
demo

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. after the 1st image.

 
demo

after the 2nd image.

Using full width again

編輯
 
demo

Use <br clear="all" />, or on projects that have Template:Clr (Meta and en:): {{clr}}. Text floats around the image until it gets to {{clr}} (in Meta) like this.

After {{clr}}, however, text can float no longer, and restarts from under the image, using the full width again like this,...... like this, like this, like this, like this, like this, like this, like this.

字裏行間圖

編輯

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"). It is the last item of the image code, hence, if there is only the image name with prefix "image:" it gives that; if there is an empty item by ending with a pipe character ("|") it gives none; otherwise, it gives the image code item that happens to be last, unless a proper text is specified.

The size of the images can be reduced but they can not be enlarged.

Example (note the hoverbox too): "text [[File:Wikipedia icon size logo.gif]] text [[File:Wikipedia icon size logo.gif|5px|]] text [[File:Wikipedia icon size logo.gif|100px|demo]] text" gives "text File:Wikipedia icon size logo.gif text File:Wikipedia icon size logo.gif text demo text".

示範

編輯

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.

  • [[Image:Tile Hill train 550.jpg]]

 

  • [[:Image:Tile Hill train 550.jpg]]

Image:Tile Hill train 550.jpg

  • [[Media:Tile Hill train 550.jpg]]

Media:Tile Hill train 550.jpg

  • external, with label: [http://en.wikipedia.org/upload/d/d1/Tile_Hill_train_550.jpg train]

train

  • external, footnote style: [http://en.wikipedia.org/upload/d/d1/Tile_Hill_train_550.jpg]

[2]

編輯

The gallery-tag is a quick way to show thumbnails in four columns. Each entry is of the form "Image:image name or "Image:image name|caption, possibly with links". It also allows text taking the position of an image, but not with links: if a text entry contains a link, the whole entry is ignored; an image tag with square brackets is also ignored. It is possible to give a title to the gallery with the caption parameter.

<gallery caption="Sample gallery">
A-L
Image:Drenthe-Position.png|[[w:Drenthe|Drenthe]], the least crowded province
Image:Flevoland-Position.png
Image:Friesland-Position.png
[[Friesland]] is beautiful
Image:Gelderland-Position.png
Image:Groningen-Position.png
Image:Limburg-Position.png
M-Z
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
Image:Utrecht-Position.png
Image:Zeeland-Position.png
</gallery>

gives:

Note that, with the gallery tag, the images have a single fixed width.

Depending on the browser, a long caption may or may not widen a whole column of images:

  • even if it does, if necessary to fit the four columns on the screen, captions wrap automatically
  • alternatively, a long caption makes the whole row taller, because too long captions wrap to produce multiple lines in their container. See also w:Wikipedia:Gallery.

A gallery of images in a category is automatically shown as the fourth section of the 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. No alternative text or other links are possible. Also the file size is shown.

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

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 these two methods. However, only a category automatically gives file sizes.

Example of an image table:

{|
|+'''Provinces of the Netherlands'''
|-
| valign="top"|
[[Image:Drenthe-Position.png|thumb|left|150px|[[w:Drenthe|]], the least crowded province]]
| valign="top"|
[[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|]], the most crowded province]]
| valign="top"|
[[Image:Utrecht-Position.png|thumb|left|50px|]]
|}

gives:

Provinces of the Netherlands
 
Drenthe, the least crowded province
 
 
 
 
South Holland, the most 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.

導航地圖

編輯

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

  • 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:

EasyTimeline 例

編輯

例 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


en.wikipedia.org/..en.wikipedia.org/..en.wikipedia.org/..en.wikipedia.org/..


例 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


en.wikipedia.org/..en.wikipedia.org/..en.wikipedia.org/..en.wikipedia.org/..

其他方法

編輯

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.


保護

編輯

Images on MediaWiki:Bad image list can not be embedded, they appear as regular link to the image page. See e.g. w:en:MediaWiki:Bad image list.

Protection of an image page is automatically also protection of the image itself: i.e. a new image under the name of the existing image can only be uploaded by a sysop.

插入外部圖像

編輯

外部圖像不一定被允許嵌入,這取決於維基的的設定:該功能在元維基和許多其他維基(包括英文版和德文版)上被禁止以防止破壞和來自其他站點的「流量盜用」,但在一些維基上仍被允許,例如荷蘭語維基。

如果在LocalSettings.php中開啟:

$wgAllowExternalImages = true;

則圖像連結(例如http://en.wikipedia.org/upload/b/bc/Wiki.png)可以顯示為圖片,如果沒有開啟,則顯示為圖像位址的連結: http://en.wikipedia.org/upload/b/bc/Wiki.png

若被允許,外部圖像的維基文本為純URL位址,例如http://en.wikipedia.org/upload/b/bc/Wiki.png,圖像只能以實際大小顯示。

必要時,從一個企劃中下載圖片然後上傳至維基共享資源(假如該圖像是自由版權的並且不屬於合理使用(fair use)),該圖片將可以在所有企劃中使用。

下面的例子是為允許圖像嵌入的企劃所準備的。

使用圖像連結到一個特定頁面(外部URL或內部維基頁面)見導航圖片.

If enabled, use unbracketed external link style, i.e. just the URL (of the image itself, not of the image description page), e.g. http://en.wikipedia.org/upload/d/d1/Tile_Hill_train_550.jpg. The URL can be found by checking with your browser the properties of the image when it is displayed on a webpage.

Conversely, to go to the image description page of an image referred to with external link style, put the URL in the address bar and replace "upload/alphanumerics/alphanumerics/" with "wiki/image:".

For inline images, put the url, preceded and followed by a space, in the text: a http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png b gives a http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png b

Without special formatting, inline images are positioned like this:

text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text http://en.wikipedia.org/upload/b/bc/Wiki.png text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text

A table may be used to position the image(s) as desired. E.g.

{| 
| http://en.wikipedia.org/upload/b/bc/Wiki.png
| 
| http://en.wikipedia.org/upload/b/bc/Wiki.png
|-
|
| http://en.wikipedia.org/upload/b/bc/Wiki.png
|
|}

產生以下效果:

http://en.wikipedia.org/upload/b/bc/Wiki.png http://en.wikipedia.org/upload/b/bc/Wiki.png
http://en.wikipedia.org/upload/b/bc/Wiki.png

類似地,

{| 
| 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
|-
|
| 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
|
| 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 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 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 http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png

WikiTeX

編輯

WikiTeX ([4]) 是一個MediaWiki extension that can produce graphs of functions, various diagrams, etc. It is operational at http://wikisophia.org/ , but not yet at Wikimedia projects. Note that one can anyway produce an image on Wikisophia, and subsequently upload it on any MediaWiki project.

參閱

編輯

外部連結

編輯

Help:F